adpego.com
Español

QR Lab

Make QR codes for links, Wi-Fi or contacts, read them from any picture, then take one apart module by module and scratch it to watch Reed-Solomon bring it back.

Everything happens in your browser: nothing is uploaded, and the codes point straight to your content, so they never expire.

Inside the code

The code you made or read, module by module: what each square is, how the encoder put it there, and how much damage it survives.

How does a QR code work?

A QR code is a grid of dark and light squares called modules, from 21 × 21 (version 1) to 177 × 177 (version 40). The text is turned into bits, the bits into bytes called codewords, and Reed-Solomon adds extra codewords that can rebuild the ones that get damaged. The codewords are laid out two columns at a time in a zigzag from the bottom-right corner, a mask pattern flips some modules so the code has no large blank areas or misleading shapes, and two copies of a short format code say which mask and error correction level were used. The tool above shows each of these steps for any code you make or read.

What are the parts of a QR code?

The three big squares in the corners are finder patterns: their 1:1:3:1:1 rings let a camera find the code at any angle. A light separator surrounds them. The dotted lines between them are timing patterns, which give the size of a module. From version 2, small alignment patterns correct the perspective. Next to the finders sit the format information (error correction level and mask, twice) and, from version 7, the version information. Everything else is data and error correction codewords, plus a few remainder bits. Around it all there should be a quiet zone of four light modules.

How much of a QR code can be damaged?

It depends on the error correction level: about 7 % of the codewords can be restored at level L, 15 % at M, 25 % at Q and 30 % at H. The codewords are split into blocks, and each block can fix up to half of its error correction codewords, so what counts is the worst block, not the total. A codeword is broken as soon as one of its eight modules is wrong, which is why a single scratch across the code hurts more than a solid blob of the same area. Try it in the “Break it” view.

Do these QR codes expire?

No. The codes made here contain your link or text directly, with no redirect through any service, so they keep working forever and nobody tracks who scans them. Many “free” generators make dynamic codes instead: the code points to their server, which forwards to your link, and they can stop forwarding when a trial ends. If you need to change where a printed code goes later, use a short link of your own; otherwise a static code is simpler and safer.

How do I make a QR code for my Wi-Fi?

Choose “Wi-Fi”, type the network name and the password, and pick the security type (WPA covers WPA2 and WPA3 too). The code holds a text like WIFI:T:WPA;S:MyNetwork;P:my password;;, with special characters escaped, and the camera apps of Android and iPhone offer to join the network when they scan it. The password never leaves your browser while you make it, but anyone who scans the printed code can read it.

Can I put a logo in a QR code?

Yes, because error correction rebuilds the modules the logo hides, as long as it hides fewer codewords than each block can fix. When you add a logo the level goes up to H, and the page counts the codewords under the logo in the worst block against what Reed-Solomon can repair. It also draws the final picture and reads it back with its own reader, so you know before printing.

Is it safe to scan a QR code?

A QR code is just text, but that text is often a link, and a code stuck on a parking meter or sent in an email can take you to a fake page: this is called quishing. When you read a code here, the link is taken apart before you open it: the domain it really belongs to, letters from other alphabets that imitate real ones, a famous name used as a subdomain, redirect services, plain HTTP or dangerous schemes. These are clues, not a verdict: nothing is looked up online, so check that the domain is the one you expect.

How do I read a QR code from a picture or a screenshot?

Open the “Read” tab and drop the picture, paste it with Ctrl+V, choose a file or use the camera. The reader is written from scratch and runs in your browser: it finds the three finder patterns, works out the size and the perspective, samples every module and lets Reed-Solomon fix what it got wrong. Tick “Show the grid it read” to see where it looked.