Everyday

QR Codes Explained: How to Create and Scan Them Well

You print a QR code on a flyer, and half the people who point a camera at it get nothing. Or you scan one on a poster and are not sure where it will send you. Both problems come from treating a QR code as magic, when it is simply text drawn as a pattern of squares.

Once you know what is inside a code, what makes it readable and which kinds of codes carry risk, you can make codes that scan reliably and open them with more confidence. This guide covers both sides of the job in turn: creating a good code that prints well, and scanning someone else's code safely.

What a QR code actually contains

A QR code stores a short piece of data: usually text, which a phone then interprets. If the text starts with https://, the camera app offers to open a web page. If it follows a particular pattern for Wi-Fi, contact cards or email addresses, the phone recognizes that and offers the matching action. The code itself is just the container. It does not run programs.

The pattern is made of square modules in a grid. Three large squares in the corners let a scanner find the code and work out its orientation, so a code can be read upside down or at an angle. Smaller patterns, timing lines and format information help with alignment and decoding. The more data you store, the more modules the code needs, and the denser and harder to read it becomes. A short URL produces a much simpler code than a long one.

Static and dynamic codes

A static code holds the final data directly. If you encode a web address, the address itself is in the pattern. It works forever, with no account and no service behind it, but you cannot change where it points without printing a new code.

A dynamic code usually holds a short redirect address belonging to a service, and the service sends visitors on to the real destination. That lets the owner change the destination later and count scans. The trade-offs are that you depend on that service staying online and keeping your link active, and that scanners see an extra hop. For printed material that must last, a static code pointing at a page you control is the dependable option. If you need to change the target, point the code at a page on your own domain and update that page.

Error correction and why it matters

QR codes include redundant data so they can still be read when partly dirty, scratched or covered. There are four levels, and each can typically restore a different share of the code: about 7 percent at level L, 15 percent at M, 25 percent at Q and 30 percent at H.

Higher levels cost space, because the redundancy needs more modules, so the same data produces a denser code. A common choice for everyday use is a middle level. Higher levels make sense for codes on rough surfaces, stickers that will get scuffed, or designs with a logo in the middle. Remember that a logo works only because the error correction absorbs the hidden modules, and the more you cover, the less safety margin you keep. Always test a code with more than one phone before printing.

The ELDOSA QR generator does not expose an error correction setting. It produces a 512-pixel PNG from whatever text you type, so keep your content short and test the result before printing in volume.

Size, contrast and the quiet zone for print

Three physical factors decide whether a code scans. The first is size relative to distance. A common rule of thumb is that the code should be about one tenth of the scanning distance, so a code on a poster read from 1 meter away should be around 10 centimeters wide. A business card code can be quite small if the content is short, often around 2 centimeters, though denser codes need more room.

The second is contrast. Dark modules on a light background work best. Black on white is the safest choice, and dark blue or dark green on white are usually fine. Light modules on a dark background, which inverts the pattern, are not read by every scanner. Avoid low-contrast colors, gradients or busy backgrounds behind the code.

The third is the quiet zone, the empty margin around the code. The QR standard calls for four modules of blank space on every side, and cropping into it is a classic reason for failed scans. The ELDOSA generator adds a small margin of its own, so when you place the image in a document, leave extra white space around it instead of running text or a border right up to the edge. Print at a resolution that keeps the module edges sharp, and avoid stretching the image unevenly.

What to encode

Web addresses are the most common use. Shorter is better, since fewer characters means a simpler code, so a short link to a page you control scans more reliably than a long one with tracking parameters.

Plain text works for notes, serial numbers or instructions. Wi-Fi details use a specific text format that phones recognize, and when scanned, the phone offers to join the network. You can create one in any generator that accepts free text by typing the pattern yourself.

https://example.com/menu

WIFI:T:WPA;S:CafeGuest;P:correct-horse-battery;;

mailto:hello@example.com

Tel:+15555550123

Scanning safely

A QR code hides its destination until you scan it, so the thing to check is the address shown before you open it. Look at the full domain name, not just the start. Be wary when a code leads to a login page, a payment request or a file download you did not expect.

Physical stickers placed over legitimate codes are a known trick, so be careful with codes on parking meters, posters in public places or unexpected letters. If the code asks for a password or card details, type the official address into your browser yourself. The ELDOSA QR scanner reads a code from an image file using your browser's built-in detector, so it works only in browsers that offer one, and it shows you the decoded text without opening anything.

As for barcodes, the familiar one-dimensional lines hold only a short string, often a number, and rely on a database lookup. A QR code is two-dimensional and can store far more, including a full web address. Use a barcode when a scanner only needs an identifier, and a QR code when the information itself must travel with the symbol.

Tools mentioned in this guide

Frequently asked questions

Do QR codes expire?

A static code never expires, because the data is in the pattern. A dynamic code stops working if the service behind its redirect shuts down or the subscription lapses. The destination can also expire, for example when a web page is removed. For long-lived print, point a static code at a page you control.

Why will my QR code not scan?

The usual causes are low contrast, too small a size, a missing quiet zone, a glossy or curved surface, or too much data. Make it larger, use dark on light, add white margin and shorten the content. Test with several phones and lighting conditions.

Can I make a QR code for my Wi-Fi password?

Yes. Type the Wi-Fi pattern into a generator that accepts free text, using the network name, password and security type. Anyone who scans it can join, and can read the password from the code, so display it only where you would be comfortable sharing it.

What barcode type does the ELDOSA generator make?

It creates Code 128 barcodes from the text you enter, rendered in your browser. Retail product codes such as UPC and EAN follow separate numbering rules and are issued through a standards organization, so this tool is suited to internal labels and inventory, not store products.

More guides