Online QR Code Generator & Decoder

Enter text or a link to generate a QR code, then adjust the colors, dot style and eye style, or place your own image right in the center. You can also upload or paste a QR code image to decode its content locally in your browser.

Generate QR code
Dot style
Eye style
Center image
Image shape
Preview

Decode QR code

Upload, drop or paste a QR code image to read its content locally

Choose image

About this tool

A QR code is a two-dimensional barcode that encodes text, links and other data as a grid of black and white modules, which a phone camera or scanning app can read back instantly. The layout is determined entirely by the content, so the same content always produces the same pattern.

This tool generates QR codes with the locally bundled qrcode library and decodes them with the jsqr library. All computation happens in your browser, and nothing is sent to any server. Besides a standard QR code, you can also adjust the colors and module styles, and place a custom image in the center.

QR codes have built-in error correction: even if part of the pattern is covered or damaged, it may still be read correctly. A higher error correction level tolerates more coverage but uses more modules for the same content, making the pattern denser. A center image covers some modules, so it is best to set the error correction level to H when you use one.

A QR code is a matrix barcode standardised by ISO/IEC 18004. Its grid ranges from version 1 (21×21 modules) to version 40 (177×177), and the version is chosen automatically according to how much data you encode. Four error correction levels — L, M, Q and H — reserve roughly 7, 15, 25 and 30 percent of the modules for redundancy. Higher redundancy means the code survives scratches, folds or a logo in the middle, but it also needs more modules for the same content, so the pattern becomes denser and each module becomes smaller at a fixed print size.

Two practical rules decide whether a code scans reliably. First, keep the quiet zone: scanners expect a margin of at least four modules of background around the symbol, so never crop the white border or place the code tightly against a coloured edge. Second, match the physical size to the scanning distance; as a rule of thumb, the code should be about one tenth of the expected distance, which means at least 2 cm for a phone held 20 cm away and several centimetres for a poster read from a metre or more. Contrast matters just as much: dark modules on a light background are the standard, and inverted colours fail on many scanners.

Static QR codes like the ones generated here contain the data itself and never expire, because no redirect service sits in between. That also means the content is public to anyone who scans it — never encode passwords, personal data or one-time tokens you would not print on paper. For a logo in the centre, keep the image small (roughly a quarter of the width) and use error correction level H, then always test the final artwork on at least two phones at the distance and lighting of the real use case.

How to use

  1. Enter content: type the text or URL to encode in the Content box. The QR code updates in real time, no button needed.
  2. Adjust the style: set the error correction level, output size, foreground and background colors, and pick a dot style (square / rounded / dots) and an eye style.
  3. Add an image: click "Choose image" to upload a local image and place it in the center. You can adjust its size and shape; setting the error correction level to H is recommended.
  4. Download: when you are happy with the result, click "Download PNG" to save the QR code locally as a lossless PNG.
  5. Decode: drop a QR image onto the decode area, choose a file, or simply paste (Ctrl / Cmd + V). The content is read locally, and a clickable link is shown if the result is a URL.
  6. Test at the real distance: open the downloaded PNG on two different phones and scan it from the distance users will actually stand, in dim light as well as bright light.
  7. Print a proof at final size: a code that scans on a bright screen may fail on paper, because printing softens edges and reduces contrast. Check the proof, not just the preview.

FAQ

Is my content uploaded to a server?

No. Generation uses the locally bundled qrcode library and decoding uses the locally bundled jsqr library. Everything runs in your browser with no network requests, and the content disappears as soon as you close or refresh the page.

What if the code cannot be scanned after adding a center image?

A center image covers part of the pattern. Set the error correction level to H (~30%) and reduce the image size a little. You can also use an image with higher contrast, or pick foreground and background colors that differ more in brightness.

Why does a different color stop it from scanning?

Scanning relies on the contrast between the foreground and the background, so a dark foreground on a light background works best. If the two colors are too close or too dark overall, readability drops sharply.

How much data can a QR code hold?

It depends on the type of content and the encoding mode, typically a few hundred to a thousand characters. More content means a denser pattern; if it exceeds the capacity, generation fails, so shorten the content or lower the error correction level.

What image format is downloaded?

The download is a PNG, which is lossless and supports transparent backgrounds, making it easy to use in print or on the web.

How large should a printed QR code be?

Use the 10:1 rule: the printed side of the code should be about one tenth of the scanning distance. A code read from 20 cm needs at least 2 cm, one read from 1 m needs about 10 cm. Add the four-module quiet zone on every side on top of that.

Why is there a white border around the code?

That border is the quiet zone required by the QR standard. Without it, scanners may mistake nearby text or graphics for part of the symbol. Keep the background colour light and leave the margin intact when placing the image in a layout.

Can I encode Wi-Fi access or contact details?

Yes. QR codes store plain text, so you can use the common formats: WIFI:T:WPA;S:network;P:password;; for a Wi-Fi network, or a vCard text block for contact details. Most phone cameras recognise both and offer to join the network or save the contact.

Do the QR codes expire?

No. The content is encoded directly into the pattern, so the code keeps working as long as the destination exists. Only “dynamic” QR services that redirect through their own short URL can expire or be changed — this tool does not use one.

Can I use inverted colours, such as light modules on a dark background?

It is better not to. Many scanners assume dark modules on a light background and fail on inverted codes, especially older apps. If you must invert for design reasons, test it on several devices before printing.

Do these QR codes contain tracking?

No. Generation happens entirely in your browser and the downloaded image contains only your content. There is no redirect, no short link and no analytics attached to the code.