QR code generator
Type a text or a link, press Generate, and follow what happens to it. The generator below is not a black box: it is the encoder from my post How QR codes work, running in your browser, and it shows every stage between your input and the finished symbol. The result is a valid QR code that you can download as SVG or PNG and scan with a phone.
What you are looking at
- Input and mode. The text is classified as numeric, alphanumeric or arbitrary bytes (UTF-8); each mode packs characters into fewer or more bits.
- Version. The smallest of the 40 symbol sizes that can hold the message at the chosen error-correction level.
- Bit stream. Mode indicator, character count, data, terminator and padding.
- Codewords. The bits regrouped into bytes.
- Error correction. Each block of bytes gets Reed–Solomon check bytes, computed in the finite field GF(256). You can corrupt codewords and watch them being repaired.
- Interleave. Blocks are shuffled together so that local damage is spread out.
- Fixed patterns. Finder, timing and alignment patterns.
- Placing bits. The bytes are written into the grid in a zig-zag.
- Masking. One of eight patterns is XORed over the data to avoid plain areas and false finders; the one with the lowest penalty wins, or you choose.
- Format information. Error-correction level and mask, written twice and protected by a BCH code.
- Final symbol. With quiet zone, downloads, and checks that it reads back: with the page’s own decoder, with the browser’s built-in scanner where it has one, and, if you press the button, against the production library behind this site’s
/api/qrservice.
The server also offers the plain API: https://davidmiheev.life/api/qr?text=... returns an SVG (error-correction level M).