Embed the Yes No Button on Your Website

Add a free random yes or no button to any page with one line of code. No account, no API key, no limits.

Last updated: October 18, 2026

<iframe src="https://yesnobuttonapp.com/embed/" width="100%" height="480" title="Yes No Button" loading="lazy" frameborder="0" style="border-radius:12px"></iframe>

How to Add It in Three Steps

  1. Copy the snippet above with the Copy Code button.
  2. Paste it as raw HTML in the place on the page where you want the button. Most editors call this an HTML, embed or code block.
  3. Publish and test. Press the button once on the live page to confirm it loads.

The snippet is a standard iframe that loads yesnobuttonapp.com/embed/, a stripped-down page that contains only the button. Because it is hosted by us, improvements to the tool reach your page automatically.

Where to Paste It

The exact menu names change as site builders update, but the idea is the same everywhere: find the block that accepts raw HTML or an embed.

  • WordPress: add a Custom HTML block and paste the snippet. In the classic editor, use the Text tab.
  • Wix: add an Embed Code element and choose the option to embed HTML code.
  • Google Sites: choose Insert, Embed and paste the snippet under the embed code tab.
  • Notion: type /embed and paste the address https://yesnobuttonapp.com/embed/ instead of the full snippet.
  • Plain HTML: paste the snippet anywhere inside the body of your page.

Some platforms restrict custom code to certain plans or strip iframes entirely. If yours does, link to the full Yes No Button instead.

Sizing and Layout Tips

  • Width: keep 100% so the widget adapts to phones. Cap the width with a wrapper (for example 400 to 600 pixels) if your page has a wide column.
  • Height: 480 pixels fits the button, the mode switch and the result. Go up to about 520 if your column is narrow.
  • Accessibility: the snippet includes a title so screen readers announce what the frame is. Keep it if you edit the code.
  • Performance: the snippet uses loading="lazy", so it only loads when visitors scroll near it.

Good Uses for an Embedded Yes No Button

If you would rather build your own from scratch, our guide to a yes/no button in HTML has the code.

Frequently Asked Questions

General

Is the Yes No Button embed really free? ▾
Yes. The widget is free to use on personal, educational and commercial sites. There is no account, no API key and no usage limit. It is the same tool you see on the homepage, loaded from a single page.
Does the embedded button collect my visitors’ data? ▾
The widget itself runs in the visitor’s browser and does not send their questions or answers to us. Like the main site, it can save a short result history in the visitor’s own browser. See the privacy policy for details on analytics and advertising on the main site.
What size should I use for the iframe? ▾
Use width 100% so it fits any column, and a height between 420 and 520 pixels. 480 is a good default. If the result popup looks cramped on a very narrow column, increase the height slightly.
Why is my embed blank or blocked? ▾
Some site builders and security policies strip or block iframes. Check that you pasted the whole snippet, that the block type accepts raw HTML, and that your site’s content security policy allows frames from yesnobuttonapp.com.
Can I change the colours or text? ▾
Not at the moment. The widget follows the visitor’s light or dark theme preference and always shows the standard button, so the look stays consistent across sites.
Do I have to link back to you? ▾
No link is required. A link to yesnobuttonapp.com is appreciated but optional.