QR Code Generator
Paste a link or short message, set the pixel size between 128 and 512, and press Generate QR code. The preview appears on the page so you can scan it immediately or download a PNG named qrcode.png.
Updated 2026-08-04 · utilities
About this tool
The tool takes a Text or URL field and a Size in pixels. Generation uses medium error correction, a small margin, and clamps width to 128–512. Empty input shows a prompt instead of a broken image; success status invites you to download or scan.
How to use
- Enter text or a URL: Type or paste content into the Text or URL box (sample starts with https://example.com).
- Set the size: Choose Size in pixels from 128 to 512 (step 32; default 256).
- Generate the code: Click Generate QR code. A preview image appears when encoding succeeds.
- Download the PNG: Click Download PNG to save qrcode.png, or scan the on-page preview with a phone.
Common use cases
- Create a QR that opens your website, Wi‑Fi note, or event RSVP link on a phone camera.
- Print a square PNG for posters, menus, or packaging without installing desktop software.
- Quickly test how a long URL encodes before you commit it to print.
Tips
- Keep the payload short when possible—dense text is harder to scan at small sizes.
- Stay within 128–512 px; values outside that range are clamped before rendering.
FAQ
What can I encode?
Any non-empty text or URL. The library encodes the trimmed string into a QR matrix.
Which error correction level is used?
Medium (M), with margin 2, which balances density and scan reliability for typical links.
Why is my size ignored?
Width is forced into the 128–512 range so tiny or huge requests still produce a usable image.
Does generation upload my text?
Encoding runs in your browser with the QR library; you do not need an account to download the PNG.