Home / Images & PDF

QR Code Generator and Reader

100% client-side processing: your files never leave your browser.

QR code
Generated QR code
or drop or paste a screenshot or photo of a QR code. It stays on your device.

A QR code stores text in a two-dimensional pattern that a compatible scanner can recover. Use this tool to turn a URL or other text into a downloadable PNG or SVG, or switch modes to inspect a code contained in an image.

Generation uses the qrcode library, while image decoding uses jsQR. Both operations run locally in your browser; the entered text and selected image are not uploaded for processing.

How to Use the QR Code Generator and Reader

Choose Generate to create a code, or Read to decode one from an existing image.

  1. In Generate mode, enter the payload in Text or URL.
  2. Choose Low (7%), Medium (15%), Quartile (25%), or High (30%) from Error correction.
  3. Choose 256, 512, or 1024 from Size, then set Color and Background.
  4. Check the QR code preview and status, then select Download PNG or Download SVG.
  5. To decode instead, select Read and then Choose an image, drop an image onto the upload area, or paste a screenshot or photo.
  6. Review Decoded content and select Copy when a code is found.

What a QR Code Stores and What It Does Not

A QR code can contain plain text, a URL, contact data, Wi-Fi configuration text, or another string understood by the scanning application. This generator encodes the exact contents of Text or URL. It does not shorten URLs, host landing pages, create dynamic redirect codes, or attach analytics.

The status reports the UTF-8 byte length of the entered text. Capacity depends on the data and selected error-correction level, not just the number of visible characters. Non-ASCII characters can require multiple UTF-8 bytes, so two strings with the same character count may not fit equally.

If the payload is too large at the selected level, the tool asks you to shorten the text or lower error correction. A QR code is not encryption: anyone who can scan it can read its payload. Do not encode a password, private token, or personal record merely to make it less visually obvious.

For an encoded text representation rather than an image, consider the Base64 encoder and decoder. Base64 is also reversible and should not be treated as secrecy.

Error Correction, Size, Color, and Output Formats

QR error correction adds redundancy so a decoder may recover data when part of the symbol is dirty or damaged. The control offers the conventional L, M, Q, and H levels, labeled here as approximately 7%, 15%, 25%, and 30%. Higher correction generally leaves less capacity for the payload, so it is a tradeoff rather than an automatic improvement.

Size sets the generated width to 256, 512, or 1024 pixels, and the code uses a margin of two modules. The PNG download is a raster image at the selected width. The SVG download is vector markup generated with the same payload, correction, size, margin, and colors, making it useful when the code must scale in print or layout work.

Color selects the dark modules and Background selects the light area. Strong contrast is important. The tool explicitly warns when the two chosen colors are identical, but it does not calculate a contrast ratio or test the code against multiple scanners. Unusual color combinations, resizing, compression, or placing graphics over modules can still make a code difficult to read.

Test the final exported asset at its actual display or print size. A successful preview only shows that generation completed; it does not certify that a particular phone, camera, printer, or scanning application will decode the final reproduction.

How Image Decoding Works and Why Reads Can Fail

Read mode accepts an image chosen through the file picker, dropped onto the page, or pasted from the clipboard. It does not access a camera or provide a live scanning view. The decoder looks for a QR code in the supplied image and, when successful, reports the detected QR version and places its data in Decoded content.

For performance, an image whose longest side exceeds 1200 pixels is scaled down before jsQR examines its pixels. The decoder tries both ordinary and inverted light/dark arrangements. Scaling helps with large photos, but a distant, tiny code may lose useful detail; crop closer to the symbol before trying again.

The message “No QR code found” does not establish that the image contains no code. Blur, glare, perspective distortion, low contrast, a tight crop that removes the quiet area, or a code occupying too few pixels can prevent detection. Use a sharper image and crop around the code while leaving some clear space around it.

If the file is not identified as an image, the tool rejects it. If the browser cannot open it, it reports that the image could not be opened. The reader returns decoded text only; it does not automatically navigate to a recovered URL.

Security and Privacy When Scanning QR Codes

QR codes can conceal a destination from casual visual inspection. Before opening decoded content, check the full hostname, spelling, path, and scheme. Be cautious with shortened links, login prompts, payment destinations, configuration payloads, and links that ask to install software.

Local decoding keeps the selected image on your device for the read operation. Even so, screenshots can contain notifications, names, account details, or surrounding documents. Crop unrelated sensitive content before using the image or sharing it elsewhere.

Decoded text should be treated as untrusted input. This page displays and copies it without automatically opening it, which gives you a chance to inspect it. If the result is structured JSON, the JSON formatter can make a sanitized copy easier to review.

Frequently Asked Questions

Can I scan a QR code with my camera on this page?

No. Read mode accepts an existing image through Choose an image, drag and drop, or clipboard paste. It does not request camera access or offer a live camera scanner. Take a photo or screenshot first, then provide that image.

What is the best error-correction level?

Medium (15%) is the initial selection, but the appropriate level depends on the payload and how the code will be used. Higher levels add recovery redundancy while reducing available data capacity. Test the exported code under realistic printing, sizing, lighting, and scanning conditions.

Why does the tool say there is too much data?

QR capacity is limited and changes with the encoded byte pattern and error-correction level. UTF-8 text may use more than one byte per visible character. Shorten the payload or choose a lower correction level, then generate and test the code again.

Why can the reader not find the QR code in my image?

The code may be blurred, too small, distorted, low contrast, partly hidden, or cropped without enough surrounding space. Large images are reduced to at most 1200 pixels on their longest side before decoding, so cropping closer can preserve more useful detail. Try a sharper, straighter image with the complete symbol visible.

Are generated and uploaded QR contents private?

Generation and image decoding happen locally in the browser, with no upload performed by the tool. However, the payload may still be sensitive when saved, printed, copied, or scanned by another application. Avoid putting secrets into a QR code and review decoded links before opening them.

References: DENSO WAVE: QR Code error correction · qrcode library documentation.