Embed

Free Fact Widgets for Your Site

Add a random fact widget to your website, blog, or app. Copy the embed code, paste it in, done. Free forever.

Fact Widget Auto-Rotate Sidebar Full-Width Minimal By Category Link Badge Markdown Text Link FAQ

Random Fact Widget

A compact card that shows a random fact with a "New Fact" button. Your visitors can click through facts without leaving your page.

Embed code
<iframe src="https://factfacts.com/widget.php?style=dark" width="400" height="280" frameborder="0" style="border:none;border-radius:16px;" loading="lazy"></iframe>

Fact of the Day (Auto-Rotate)

Same widget but auto-cycles to a new fact every 15 seconds. Great for sidebars, dashboards, and digital signage.

Embed code
<iframe src="https://factfacts.com/widget.php?style=dark&auto=1" width="400" height="280" frameborder="0" style="border:none;border-radius:16px;" loading="lazy"></iframe>

Compact Sidebar Widget

A narrower version that fits in blog sidebars and WordPress widget areas. 300px wide, auto-rotates.

Embed code
<iframe src="https://factfacts.com/widget.php?style=dark&auto=1" width="300" height="300" frameborder="0" style="border:none;border-radius:16px;" loading="lazy"></iframe>

Full-Width Banner

Stretches to fill its container. Perfect for embedding across the top or bottom of a page, or inside a content area.

Embed code
<iframe src="https://factfacts.com/widget.php?style=dark&auto=1" width="100%" height="260" frameborder="0" style="border:none;border-radius:16px;max-width:100%;" loading="lazy"></iframe>

Minimal (Text Only)

Just the fact text on a clean background. No header, no button — auto-rotates every 12 seconds. Great for embedding in dashboards, Notion pages, or kiosks.

Embed code
<iframe src="https://factfacts.com/widget.php?style=dark&auto=1&minimal=1" width="400" height="160" frameborder="0" style="border:none;border-radius:12px;" loading="lazy"></iframe>

Category Widget

Show facts from a specific category only. Pick a topic that matches your site.

Embed code
<iframe src="https://factfacts.com/widget.php?style=dark&cat=science" width="400" height="280" frameborder="0" style="border:none;border-radius:16px;" loading="lazy"></iframe>

Link Badge

A simple branded link you can drop in your footer, sidebar, or links page. Lightweight, no iframe needed.

HTML
<a href="https://factfacts.com" target="_blank" rel="noopener" style="display:inline-flex;align-items:center;gap:10px;padding:10px 16px;background:#161d2e;border:1px solid rgba(255,255,255,.12);border-radius:12px;text-decoration:none;font-family:system-ui,sans-serif;"> <span style="width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#2563eb,#7c3aed);display:grid;place-items:center;"> <svg width="14" height="14" viewBox="0 0 24 24" fill="none"><path d="M10.4 7.2c0-1.6 1.1-2.7 3-2.7 1.7 0 2.9 1 2.9 2.5 0 1.2-.6 1.9-1.7 2.6-.9.6-1.2.9-1.2 1.9v.7" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.1"/><path d="M13.4 17.9h.02" stroke="white" stroke-linecap="round" stroke-width="3.4"/><path d="M8.2 5.2v7.9" stroke="white" stroke-linecap="round" stroke-width="2.1"/><path d="M8.2 17.9h.02" stroke="white" stroke-linecap="round" stroke-width="3.4"/></svg> </span> <span style="color:#f0f4ff;font-weight:700;font-size:14px;">Powered by FactFacts.com</span> </a>

Markdown / GitHub README

Add a FactFacts link to your GitHub profile README, blog post, or any markdown file.

Markdown
[![FactFacts.com](https://img.shields.io/badge/Random_Facts-FactFacts.com-blue?style=for-the-badge)](https://factfacts.com)
Markdown (text link)
[Random facts from FactFacts.com](https://factfacts.com)

Questions

Is it free?
Yes, completely free. No API key, no signup, no limits.
Can I use it on a commercial site?
Absolutely. Use it on any site — personal, commercial, educational, whatever. Just keep the FactFacts.com link visible in the widget.
Can I customize the size?
Yes. Change the width and height attributes on the iframe to whatever fits your layout. The widget is responsive inside.
Can I filter by category?
Yes! Add &cat=science (or space, history, animals, food, psychology, ocean, body) to the widget URL to show only facts from that category.
Does it slow down my site?
Nope. The iframe loads lazily and is self-contained — it won't affect your page speed or Lighthouse score.
Can I use the minimal version in Notion?
Yes! Notion supports iframe embeds — just paste the widget URL directly and it'll render inline.
Do you have an API?
Not yet, but if you need one, reach out and we'll figure something out.