QR Code Generator Online
Create QR codes from any text or URL instantly. Download as PNG.
Enter text above to generate a QR code
When a QR code generator is the right tool
Use this page to turn a string into a QR code and download it as a PNG. The code is drawn locally as you type. It is a general-purpose text encoder, not a Wi-Fi or contact-card wizard.
Use cases
Sharing a URL or a short message
Paste the text, pick a size, and download the PNG. For a URL that still needs escaping, URL Encoder can percent-encode it first; this page will encode whatever string you give it, valid URL or not.
Choosing error correction
Leave the level on M for a typical print. Use a higher level if the code might be scuffed or partly covered, knowing that long payloads may then fail to encode.
How the image is built
A hidden canvas is filled with QRCode.toCanvas at the selected width and correction level, with a margin of 2. The visible preview is an img whose source is that canvas as a PNG data URL. The same data URL is used for Download PNG.
What this tool does not do
It does not upload your text, change colors, embed a logo, or export SVG. The payload is readable by any scanner that can decode the image.
How to use QR Code Generator
- Type or paste the text in the input box.
- Choose 128, 256, or 512 px and an error-correction level if you need to.
- Download PNG when the preview looks right.
Frequently asked questions
How does the QR Code Generator work?
Type any text (a URL, a phrase, a phone number, or something else). As long as the box is not empty or only whitespace, the page draws a QR code in your browser with the qrcode library and shows it as a PNG. The preview updates as you type, change the size (128, 256, or 512 pixels, default 256), or change the error-correction level (L, M, Q, or H, default M).
How do I download the image? Can I get SVG or a logo?
Download PNG saves a file named qrcode.png from the canvas. There is no SVG export, no color picker, no logo or center image, and no Wi-Fi or vCard helper — the payload is exactly the text you entered. A quiet-zone margin of 2 modules is always applied.
What happens if the text is too long or invalid?
If the library cannot encode the text (for example it is too long for the selected error-correction level), the error message from qrcode is shown and the preview is cleared. Empty or whitespace-only input shows the empty state instead of a code.
Is my text uploaded?
No. Encoding runs in your browser. Closing the tab discards what you typed. Anyone who scans the downloaded PNG can read the payload, so do not encode secrets you would not put on paper.
Related tools and guides
References
- Rendering uses the qrcode library’s
toCanvasAPI, then a PNG data URL for the preview and download. - Error-correction levels L, M, Q, and H are the standard QR capacities (roughly 7%, 15%, 25%, and 30% recovery). A higher level shrinks how much text will fit.