# QR Code Generator

URL: https://hifreetools.com/developer/qr-code-generator

> Turn a link or any text into a QR code and download it as a PNG. It’s generated in your browser — what you enter is not uploaded — and there’s no watermark.

## Quick answer

A QR code generator turns text — usually a URL — into a square matrix of black and white modules that phone cameras can read. This tool encodes your text following the QR Code standard (ISO/IEC 18004) and lets you download the result as a PNG image.

## Formula

- mode: numeric (digits), alphanumeric (0–9 A–Z space $%*+-./:) or byte (UTF-8)
- capacity at version 40: numeric 7089/5596/3993/3057, alphanumeric 4296/3391/2420/1852, byte 2953/2331/1663/1273 (L/M/Q/H)

Your text is encoded into a QR matrix following the QR Code standard (ISO/IEC 18004), including error-correction data that lets the code still scan if part of it is dirty or obscured. The matrix is drawn to a canvas in your browser and exported as a PNG. Nothing is sent to a server.

## Inputs

- Text or URL; default https://hifreetools.com
- Error correction — one of: Low (~7%), Medium (~15%), Quartile (~25%), High (~30%); default M
- Download size (px) (128 to 1024); default 512

## Worked examples (computed by the page's own function)

- Text or URL = https://hifreetools.com, Error correction = M, Download size (px) = 512 → QR code = https://hifreetools.com, Encoding = byte, Size of your text = 23, Most that fits = 2331  (byte: 23 of 2331 (version 40, level M))
- Text or URL = 0123456789, Error correction = L, Download size (px) = 512 → QR code = 0123456789, Encoding = numeric, Size of your text = 10, Most that fits = 7089  (numeric: 10 of 7089 (version 40, level L))
- Text or URL = HELLO WORLD, Error correction = H, Download size (px) = 512 → QR code = HELLO WORLD, Encoding = alphanumeric, Size of your text = 11, Most that fits = 1852  (alphanumeric: 11 of 1852 (version 40, level H))

## Verification

Checked against 15 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema generator renderer with a sourced ledger; same text, error-correction and PNG download size options, plus a capacity check that shows how full the code is.

## FAQ

**Is the QR code free to use commercially?**
Yes. The codes generated here are plain QR codes with no watermark or tracking, so you can use them for personal or commercial purposes.

**Is my data uploaded to make the code?**
No. The QR code is generated entirely in your browser, so the URL or text you enter never leaves your device.

**What is error correction?**
QR codes include redundant data so they still scan if part is damaged or covered. Higher levels (up to ~30% recovery) make the code denser.

**How much text can a QR code hold?**
A lot in theory, but practically you want it short. For URLs, a shorter link makes a cleaner, easier-to-scan code.

**Will the code expire?**
No. A QR code is just a static image of your text — it has no built-in expiry. It keeps working as long as the destination it points to (such as a URL) still exists and the printed code stays scannable.

**Can I use a QR code on a colored background?**
Yes, but maintain high contrast. Black modules must be darker than background, white modules lighter. Avoid gray-on-gray or color combinations that reduce contrast.

**What resolution should I download for printing?**
For printing, use 300+ DPI or download a size that ensures the code is at least 1 cm × 1 cm. Match the slider resolution to your intended print scale.


## Sources

- [DENSO WAVE — QR Code: Information capacity and versions](https://www.qrcode.com/en/about/version.html)
- [DENSO WAVE — QR Code: Error correction feature](https://www.qrcode.com/en/about/error_correction.html)
- [DENSO WAVE — QR Code (inventor)](https://www.qrcode.com/en/)
- [Wikipedia — QR code](https://en.wikipedia.org/wiki/QR_code)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "QR Code Generator", https://hifreetools.com/developer/qr-code-generator
