Add a Free QR Code Widget to Your Website in 2 Lines

If your site's visitors ever need a QR code — a print shop, a link-in-bio tool, a restaurant-menu builder, a classroom portal — you can give them a full QR generator without building one. The HonestQR widget drops a complete, styleable QR code generator into any page with two lines of HTML. It's free, has no watermark, needs no API key, and the codes it makes are static — they never expire, even if you remove the widget later.

The two-line snippet

<div data-hqr-widget></div>
<script src="https://qr.zalize.com/embed.js" async></script>

That's the whole integration. The script injects a sandboxed iframe, sizes it automatically as the content grows (no scrollbars, no fixed-height guessing), and detects your page's language from<html lang> — visitors on a Japanese page see a Japanese generator.

Try it before touching your site

A live third-party sandbox is already set up:open the JSFiddle demo, fork it, and experiment with the options below without deploying anything.

Options

All options are data- attributes on the placeholder <div>:

What your visitors get

Why embed instead of linking out?

Sending visitors to a generator site means they leave your page — and most "free" generators will bait them into a trial that later disables their codes. Embedding keeps them on your page, and because HonestQR static codes are generated client-side, there is no vendor lock-in: the printed codes keep working no matter what happens to the widget, your site, or us.

Prefer a plain iframe or an API?

The embed page also documents a plain-iframe variant (for CMSes that strip scripts) and there's a free one-line QR API if you'd rather render codes server-side. All three are free.

Generate a free QR code that never expires

No signup. No subscription. Generated in your browser.

Open the free generator →