Dual-mode offline & hosted QR workbench

HTML to QR Code Generator: Offline Data-URI or Hosted Link

Convert compact HTML snippets (<2.3 KB) directly into 100% offline data:text/html QR codes with PNG & SVG download—or seamlessly host full AI-generated HTML pages on FolioDrop for a sparse, universally scannable HTTPS QR code.

Raw UTF-8 Source: 623 B (guide ≤ 2,300 B / 2.3 KB)Encoded QR Payload (URL-encoded): 912 / 2,953 B · ECC L
Offline QR Ready
data:text/html;charset=utf-8
QR —

Paste HTML code on the left to generate a QR code.

Compatibility note: iOS Camera, WeChat Scan, and many Android cameras block or display data:text/html URIs as plain text instead of opening a webpage.

Byte capacity updates live. All offline QR encoding runs locally in your browser.

How to convert HTML into a QR code in 4 steps

  1. 1

    Paste your HTML code, upload an .html file, or pick a mini preset

    Enter your HTML in the editor and watch the live capacity meter at the top instantly calculate byte size against the 2.3 KB offline QR limit.

  2. 2

    Choose Offline Data-URI QR or Universal Hosted QR

    For tiny self-contained HTML cards under 2.3 KB, stay in Offline Data-URI QR mode and adjust error correction (L/M/Q/H) and minification. For larger or interactive pages, switch to Universal Hosted QR.

  3. 3

    Download crisp PNG or vector SVG for print or slides

    Export a 256px, 512px, or 1024px PNG or an infinitely scalable crisp-edges SVG, or copy the encoded data URI directly.

  4. 4

    Host full HTML pages on FolioDrop for universal phone scanning

    When your HTML exceeds 2.3 KB—or when recipients scan with iOS Camera or WeChat—click Host on FolioDrop in 1 click to pre-fill your exact HTML into the publish page and get a low-density HTTPS QR code.

Offline Data-URI QR vs Universal Hosted HTTPS QR

Putting raw HTML directly inside a QR code sounds magical until you hit physical QR capacity limits or test it on an iPhone camera. Compare both modes honestly before printing flyers, badges, or résumés.

CapabilityOffline Data-URI QRUniversal Hosted QR (FolioDrop)Practical takeaway
Maximum HTML size~2.3 KB practical cap (QR v40 ECC L = 2,953 encoded bytes)Full single-file HTML up to 15 MB (Free) / 30 MB (Pro)Almost any AI-generated page (8 KB–200 KB) needs Hosted QR
QR visual density & print scan speedVery dense (often 90×90 to 177×177 modules)Sparse & fast-scanning (~29×29 modules for a short HTTPS URL)Hosted HTTPS QR scans cleanly even when printed small on résumés
iOS Camera, WeChat & Android compatibilityLimited: iOS Camera & WeChat do not open data:text/html directly100% universal across iOS Camera, Android, WeChat & desktopAlways choose Hosted QR for public handouts, events, or client decks
Edit HTML after printing QRImpossible—HTML is frozen permanently inside the pixelsUpdate HTML revisions anytime without changing your QR codeHosted QR protects printed cards from typos or outdated dates

Why offline HTML QR codes hit a hard ~2.3 KB physics wall

Every standard QR code tops out at Version 40—a massive 177×177 black-and-white grid that can store at most 2,953 bytes in Byte mode at the lowest error-correction level (L, 7% recovery). Turning raw HTML into a browser-readable data URI adds the data:text/html;charset=utf-8, prefix plus URL percent-encoding (< becomes %3C, spaces become %20, quotes become %22), which typically inflates raw HTML size by 20% to 35%.

In practice, that leaves roughly 1.5 KB for comfortable scanning and ~2.3 KB as the absolute ceiling—even with our built-in HTML minifier turned on. That is why our byte capacity meter tracks green (0–1.5 KB), amber (1.5–2.3 KB dense warning), and automatically transitions to the Universal Hosted QR conversion card once your HTML crosses 2.3 KB. Instead of showing a dead error screen, one click sends your exact HTML into FolioDrop’s publish workflow so you get a short HTTPS link and a clean, low-density QR code.

  • 0–1.5 KB (Green): Fits comfortably in an offline data-URI QR code for technical demos and desktop QR readers.
  • 1.5–2.3 KB (Amber): Still encodes at ECC L, but produces a dense matrix that requires large print size and steady focus.
  • >2.3 KB (Auto Hosted Card): Physically exceeds offline QR limits—host on FolioDrop for a clean HTTPS QR code that scans in milliseconds.

Real-world phone camera limits & updating HTML without reprinting QR

Even when a tiny HTML card fits under 1.5 KB, modern mobile operating systems intentionally restrict data: URIs for phishing protection. Apple’s built-in iOS Camera app, WeChat Scan, and several default Android cameras will either ignore a data:text/html QR payload or display it as raw text instead of launching a webpage. Offline HTML QR codes are still awesome for self-contained experiments, developer workshops, and specialized desktop/PWA scanners—which is why we include full PNG and SVG export for free.

For anything going onto a PDF résumé, event poster, conference badge, table tent, or client proposal, hosting your HTML behind a clean HTTPS URL on FolioDrop solves every constraint at once: every phone camera opens it immediately, the sparse QR pattern stays readable at 2 cm wide, you can edit your HTML later without reprinting the QR, Free includes 3 permanent online works (up to 15 MB each), and a $3.99 one-time Single-Page Pro Pass or Plus ($7/mo) / Pro ($15/mo) unlocks Access-Key password protection, custom /p/slug URLs, and badge removal.

Already want to turn a full HTML file straight into a shareable HTTPS URL? Visit our HTML to URL converter to preview and publish directly.

HTML to QR Code Generator FAQ

Why is an offline HTML QR code limited to roughly 2.3 KB?

A Version 40 QR code (the largest standard QR symbol at 177×177 modules) holds a hard maximum of 2,953 bytes at error correction level L. After adding the data:text/html;charset=utf-8, header and percent-encoding HTML brackets and spaces, usable raw HTML maxes out around 2.3 KB.

Why won’t my iPhone camera or WeChat open an offline data:text/html QR code?

iOS Camera, WeChat Scan, and many default Android cameras restrict data: URIs for security reasons and treat them as plain text instead of opening a browser tab. If you need every phone camera to open your page reliably, switch to Universal Hosted QR and host your HTML behind an HTTPS link on FolioDrop.

Can I update my HTML page later without changing the printed QR code?

Not with an offline data-URI QR code, because the HTML itself is baked into the QR squares. When you host your HTML on FolioDrop, the QR encodes your stable FolioDrop HTTPS URL—so you can revise your HTML content later and the exact same printed QR code opens the updated page.

Does an offline data-URI QR code ever expire?

No. Because the entire HTML payload is stored directly inside the QR code pattern, an offline data-URI QR code has no server dependency and never expires, as long as the scanning tool supports data:text/html URIs.

Which error correction level (L, M, Q, H) should I choose?

For offline HTML data URIs, keep Error Correction on L (7%) to maximize capacity and keep dots as large as possible. For short Hosted HTTPS URLs printed on badges, flyers, or packaging, M (15%) or Q (25%) gives better resilience against creases and glare.

What happens when I click “Host on FolioDrop in 1 click”?

Your current HTML code is saved locally in browser sessionStorage and carried straight into FolioDrop’s /publish editor with zero re-pasting. From there you can preview, publish a live HTTPS link (Free includes up to 3 permanent online works up to 15 MB each, plus optional $3.99 Single-Page Pro Pass or Plus/Pro plans), and download a clean scannable QR code.

View all tools