QR Code Generator
Make a QR code for a URL or text with your choice of size, L to H error correction, colors and module style, then download it as PNG or JPEG.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the QR Code Generator?
The QR Code Generator turns text or a URL into a QR code with your choice of size, error correction level, border, style and colors, and lets you download it as PNG or JPEG or copy its image URL.
QR encoding and image rendering happen locally in your browser with the qrcode library and a canvas. No QR generation request sends the text to a third-party service. Copy URL copies a self-contained image data URL; the share button copies a settings link that includes your entered text, so do not share links containing secrets.
The codes are static: the data is stored in the image itself. There is no tracking, no redirect service and no scan analytics, and the code keeps working as long as the URL inside it does.
- Error correction levels L, M, Q and H
- Adjustable size, border, square, rounded or dot style and colors
- Download as PNG or JPEG, or copy the image as a data URL
- Shareable settings link
- Image generated locally with a QR encoder and browser canvas
Updated
How to use the QR Code Generator
- Enter the text or URL to encode in Text or URL.
- Set Size (pixels), Error Correction and Border Size, and pick a Style (Square, Rounded Corners or Dot Pattern) and the foreground and background colors.
- Click Generate QR Code and test it with your phone camera.
- Download as PNG or JPEG, or copy the image URL.
Worked examples
A short URL at the default settings
Input
https://redbison.dev at 200 px, error correction M
Output
Version 2 code, 25 x 25 modules, each module 6 px
The generator always leaves a four-module quiet zone, so the 200 px canvas is divided across 33 module widths. Border Size adds extra pixels on top of that.
A long tracking URL
Input
A 97-character URL with three utm_ parameters, error correction M
Output
Version 6 code, 41 x 41 modules, each module 4 px at 200 px
Five times the characters means much smaller modules at the same size. Shorten the URL, or raise Size before printing it small.
Background and insight
The QR code was invented in 1994 by Masahiro Hara at Denso Wave, a Toyota group company, to track car parts faster than one-dimensional barcodes allowed. Denso chose not to enforce its patent, and the format became an ISO standard (ISO/IEC 18004) in 2000. Phone cameras made it mainstream, and since iOS 11 and Android 9 the default camera apps scan QR codes without an extra app.
A QR code carries Reed-Solomon error correction, which lets it be read even when part of it is damaged or covered. There are four levels: L recovers about 7% of the data, M about 15%, Q about 25% and H about 30%. Higher levels make the code denser for the same content, so choose H only when you need it, for example when placing a logo over the middle.
Most scanning problems come from three things: too little contrast (dark code on a light background works best), no quiet zone (the blank border around the code), and too much content for the printed size. Shorter URLs make simpler, more reliable codes.
Common use cases
Linking print to the web
Put a QR code on a poster, menu, slide or business card that opens a URL.
Sharing a link in person
Show a code on screen so others can open a page without typing the address.
Testing mobile flows
Open a staging URL on a phone quickly during development.
Labels and inventory
Encode an asset ID or short text on a printed label that a phone can read.
Tips and limitations
- Always scan the final printed proof, not just the screen version, with at least two different phones.
- Keep strong contrast and a dark foreground on a light background. Inverted codes (light on dark) fail on some older scanners.
- Rounded Corners and Dot Pattern only change data modules; the three finder squares stay square so scanners can still lock on.
- Very large sizes or long text with a big border can fail with "Increase QR size or reduce content and border". The maximum canvas size is 2048 px.
- For print, export PNG at a large size and scale it down. JPEG compression can blur module edges.
Sources and further reading
- ISO/IEC 18004:2024 QR code bar code symbology specification, International Organization for Standardization. The QR code standard
- History of QR Code, Denso Wave. Denso Wave's account of the 1994 invention
- Error correction feature, Denso Wave. Levels L, M, Q and H
Frequently asked questions
Is the text I put in a QR code sent anywhere?
No. QR generation and rendering run locally in your browser, so the text is not sent to a QR service. The share button is the exception by design: it copies a link that contains the entered text, so use it only for content you intend to share.
Which QR error correction level should I use?
M (about 15% recovery) is a good default for screens and clean print. Use Q or H if the code may be scratched, printed small on rough material, or partly covered by a logo. Higher levels make the code denser, so they need a larger print size.
Do QR codes made with this generator expire?
No. These are static codes: the URL or text is encoded directly in the image, with no redirect service in between. The code works for as long as the destination URL works. Dynamic codes that can be edited later require a hosted redirect service.
Why won't my QR code scan?
Check contrast first (dark on light), then the quiet zone around the code, the printed size and the amount of content. A dense code from a long URL needs to be printed larger. Custom colors with low contrast and heavy JPEG compression are the other common causes.
How big should I print a QR code?
A common rule of thumb is a code width of about one tenth of the scanning distance, so roughly 2 cm across for a phone held 20 cm away and 30 cm for a poster read from 3 metres. Dense codes need more space, so test at the real size.
Is there an in-depth guide to the QR Code Generator?
Yes. “QR Codes for Developers: Error Correction, Size and Scannability” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.