Guide

What is a QR code, and how does it work?

A QR code is a square barcode that a phone camera can read in a moment. This guide explains what is inside one, how the camera finds and decodes it, and what you can put in a code of your own.

A barcode in two directions

QR stands for "Quick Response". The format was created in 1994 by Denso Wave, a Japanese company, to track car parts on production lines. An ordinary barcode stores information in one direction, as a row of lines. A QR code stores it in two, as a grid of dark and light squares called modules. That is why it holds far more and can be read from any angle.

The parts you can see

  • Three large corner squares (finder patterns) tell the camera where the code is and which way up it is.
  • The quiet zone, a blank margin around the code, separates it from everything else. See the quiet zone guide.
  • Smaller alignment squares help the camera correct for a code printed on a curve or photographed at an angle.
  • The data modules, everything else, carry your content plus extra error-correction data.

How a phone reads it

The camera looks for the three corner squares, works out the grid size, and samples each module as dark or light. The pattern is turned back into text: a web address, WiFi details, a contact card. If part of the code is dirty or covered, the error-correction data lets the phone rebuild what is missing. Codes can recover from about 7% to 30% damage, depending on the level chosen. Error correction, explained.

What a QR code can hold

Up to about 7,000 digits or roughly 2,900 characters of ordinary text in the largest code. Most codes hold far less, because short content makes a smaller, easier-to-scan pattern. Common contents are a web link, WiFi login, a contact card, a WhatsApp chat, an event or a map location. Files such as PDFs are too big, so a PDF QR code holds a link to the file instead.

Static and dynamic codes

A static code contains your content directly. It never expires and no company stands between the scan and your content. A dynamic code contains a short link to a service, which redirects to your content. That lets you change the destination and count scans, but the code stops working if the service shuts down or the subscription ends. Static vs dynamic QR codes compares the two.

Making one

You do not need an account. Choose a type in the free QR code generator, type your content, style it if you like, and download PNG or SVG. Test the code on a couple of phones before printing. How to create a QR code walks through each step.

Questions

Common questions

Anything else? Write to us.

What does QR stand for?

Quick Response. The format was designed to be read fast by machines on factory lines.

Do QR codes expire?

Static codes never expire; the content is part of the pattern. Dynamic codes depend on the service that redirects them and can stop working.

Is "QR code" a trademark?

Yes, QR Code is a registered trademark of Denso Wave, which made the standard free to use. Anyone can create and scan QR codes.

Can a QR code hold a picture or a file?

Not in practice. A code holds a few kilobytes at most, so it stores a link to the picture or file instead.

Keep reading

How to create a QR code

How to make a QR code for a link, WiFi, contact card or text, style it without breaking it, test it and print it at the right size. Free, no sign-up.

Read the guide, 6 min

QR code size for printing

What size a printed QR code should be: the minimum size, the distance rule, pixels needed at 300 DPI, and why longer content needs a bigger code.

Read the guide, 5 min

Static vs dynamic QR codes

The difference between static and dynamic QR codes: expiry, editing, scan tracking, cost and privacy, and why a static QR code generator never expires.

Read the guide, 5 min

Why a QR code will not scan

Why a QR code does not scan and how to fix it: low contrast, inverted colors, missing quiet zone, too small, too dense, big logos, glare and broken links.

Read the guide, 6 min

WiFi QR codes that connect first time

How to make a WiFi QR code guests can scan to join your network: getting the name, password and security type right, and fixing codes that do not connect.

Read the guide, 5 min

Adding a logo without breaking the code

How to put a logo in the middle of a QR code and keep it scannable: the error-correction level to use, how big the logo can be, and how to test the result.

Read the guide, 5 min

vCard QR codes for business cards

How to put a contact QR code on a business card: which vCard fields to include, how to format phone numbers, and how small the code can go.

Read the guide, 5 min

QR code colours that still scan

How to choose QR code colours, gradients, shapes, frames and transparent backgrounds that match your brand and still scan on every phone.

Read the guide, 5 min

Error correction levels explained

What QR code error correction does, what levels L, M, Q and H mean, how much damage each survives, and which level to pick for logos, print and small codes.

Read the guide, 4 min

The quiet zone, and why it matters

What the quiet zone around a QR code is, how wide it should be, and the design mistakes that remove it: cropping, borders, text and busy backgrounds.

Read the guide, 3 min

QR codes for restaurant menus

How to make a QR code menu that works at the table: web page or PDF, table card size, lighting and lamination, and updating the menu without reprinting.

Read the guide, 5 min

QR codes for Airbnb and rental hosts

The QR codes worth printing for a holiday rental: guest WiFi, house manual, check-in and check-out, local tips, and where to place them so they keep working.

Read the guide, 5 min

QR codes on product packaging

How to put a QR code on packaging that still scans: what to link to, minimum size, curved and glossy surfaces, colour contrast and testing a print proof.

Read the guide, 5 min

How to scan a QR code

How to scan a QR code with an iPhone or Android camera, from a screenshot or photo, and on a laptop. Plus what to do when the camera will not read it.

Read the guide, 4 min

Are QR codes safe?

Are QR codes safe to scan? How QR code scams (quishing) work, the warning signs to look for, and simple habits that keep you safe when you scan.

Read the guide, 4 min

Related tools

Tools for this guide

Make your code now

Free, private, and it never expires.

Open the generator