Skip to content
Guide

What Is a QR Code?

A QR code (Quick Response code) is a two-dimensional barcode that stores information in a grid of dark and light squares, which a phone camera can read in a fraction of a second. It can hold a web address, text, Wi-Fi details or a contact card, and opens that content without any typing.

What is a QR code, in plain terms?

A QR code is a square, two-dimensional barcode. A classic barcode stores a short number in the widths of vertical lines. A QR code stores data both horizontally and vertically, in a grid of small squares called modules. That is why it can carry far more: a full web address, a paragraph of text or a complete contact card.

“QR” stands for Quick Response. The format was designed to be decoded fast and from any angle, and today nearly every smartphone camera reads it without an extra app. You point the camera at the code, tap the notification that appears, and the phone opens the link, joins the Wi-Fi network or saves the contact.

The QR code is an open international standard, ISO/IEC 18004. Anyone can create and read QR codes without paying a licence fee. That openness is a big part of why they appear everywhere, from restaurant tables to shipping labels.

A short history of the QR code

The QR code was invented in 1994 by Denso Wave, then part of the Japanese automotive supplier Denso. Factories were tracking car parts with barcodes, and workers often had to scan several labels per box. A team led by engineer Masahiro Hara wanted a code that held more information and could be read quickly from any direction.

Their answer was a square pattern with three distinctive corner markers, which let a scanner find the code and work out its orientation instantly. Denso Wave holds the patent but chose not to enforce it for the standardised code, so other companies could adopt the format freely. It became an ISO standard in 2000.

For years QR codes lived mostly in logistics and in Japan. The global breakthrough came when smartphone cameras learned to read them natively: iPhones gained built-in scanning with iOS 11 in 2017, and Android manufacturers followed. Contactless menus, tickets and payments did the rest.

The parts of a QR code

Every QR code, however it is styled, contains the same functional parts. Knowing them helps you design codes that look good and still scan.

Finder patterns

The three large squares in the corners. A scanner looks for their distinctive dark–light–dark proportions to locate the code and work out which way up it is. The missing fourth corner is what reveals the orientation.

Quiet zone

The empty margin around the code. The standard asks for a border at least four modules wide, in the background color, so the scanner can separate the code from whatever surrounds it.

Timing and alignment patterns

Timing patterns are two lines of alternating dark and light modules between the finder patterns; they tell the reader how large each module is. Alignment patterns, smaller squares that appear from version 2 upwards, help correct distortion when a code is printed on a curve or photographed at an angle.

Format and version information

Strips next to the finder patterns record the error correction level and the mask pattern. Codes from version 7 upwards also carry version information, so the reader knows the size of the grid.

Data and error correction

All remaining modules hold the actual content plus Reed–Solomon error correction data, arranged in 8-bit codewords.

How QR codes store data

QR codes come in 40 sizes, called versions. Version 1 is a grid of 21 × 21 modules, and each version adds four modules per side, up to 177 × 177 at version 40. The more data you encode, the higher the version, and the smaller each module becomes at a given print size.

The largest version can hold up to 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes of binary data. In practice you want far less: short content produces a simpler code that scans faster and still works when printed small.

Error correction levels

QR codes add redundant data so they still scan when part of the code is dirty, torn or covered. You choose one of four levels when you create the code:

  • L – about 7% of the data can be restored
  • M – about 15%
  • Q – about 25%
  • H – about 30%

Masking

Before the code is finished, one of eight mask patterns is applied. It breaks up large solid areas and repeating shapes that could confuse a scanner. The generator picks the best mask automatically and records it in the format information.

Finding the right balance

Higher error correction adds modules, so a level H code is denser than a level L code with the same content. Level M is a sensible default for most uses. Choose Q or H when you place a logo in the middle of the code.

What happens when you scan a QR code

Reading a QR code takes a phone a fraction of a second, but several things happen in that moment.

  1. Locate the code

    The camera image is searched for the three finder patterns. Their positions reveal the code's size, rotation and perspective.

  2. Map the grid

    Using the timing and alignment patterns, the software finds every module and reads it as dark or light.

  3. Decode and repair

    It reads the format information, removes the mask, collects the codewords and repairs damaged ones with error correction.

  4. Act on the content

    The decoded text is interpreted: a URL opens in the browser, a Wi-Fi string offers to join a network and a vCard offers to save a contact.

Static vs dynamic QR codes

The biggest practical decision when you create a QR code is whether the content lives inside the code or behind a link you control. Our full static vs dynamic comparison goes deeper.

Static Dynamic
Where the content lives Inside the code itself On a server, behind a short link
Edit after printing No Yes
Scan statistics No Yes
Works offline (text, Wi-Fi, contact) Yes No
Keeps working without any service Yes No
Code density Grows with the content Always short and simple

Common uses of QR codes

Anywhere a person holds a phone and needs information, a QR code saves typing.

Each use suits a different QR code type. A Wi-Fi QR code carries network credentials, a URL code opens a page and a vCard code transfers a contact. Picking the right type means the person scanning reaches the right place with a single tap.

  • Restaurants and cafés: menus, ordering and Wi-Fi access at the table.
  • Marketing: posters, flyers and packaging that lead to a website, video or offer.
  • Business cards: a vCard code saves your details straight to the phone's contacts.
  • Events and travel: tickets, boarding passes and check-in.
  • Products: manuals, ingredient lists, warranty registration and reorder links.
  • Payments: banking and payment apps in many countries use QR codes.
  • Offices and homes: guest Wi-Fi without spelling out the password.

How to create a QR code

With a generator, a basic QR code takes less than a minute.

  1. Choose the content type

    Decide what should happen after the scan: open a website, join Wi-Fi, save a contact, send an email or show text. Pick the matching type in a free QR code generator.

  2. Decide: static or dynamic

    For simple content that will never change, a static code is enough. If the destination may change, or you want to count scans, create a dynamic code with an account.

  3. Style it with care

    Colors, rounded modules and a logo are fine as long as the code stays dark on a light background and keeps its quiet zone. Leave the three finder patterns clearly visible.

  4. Download, test, print

    Use SVG or PDF for print and PNG for screens. Scan the code with more than one phone at its real size and distance before printing a batch. Our QR code size guide explains how large to print it.

FAQ

Frequently asked questions

Still have a question? Read our guides or contact us .

What does QR stand for?

Quick Response. The name reflects the goal of its inventors at Denso Wave: a code that scanners can decode very quickly and from any direction.

Who invented the QR code?

A team at Denso Wave in Japan, led by Masahiro Hara, developed it in 1994 to track automotive parts. It was published as the international standard ISO/IEC 18004 in 2000.

How much data can a QR code hold?

Up to 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes in the largest version at the lowest error correction level. Codes that hold less data are smaller, simpler and easier to scan.

Do QR codes expire?

A static QR code never expires, because the content is stored in the pattern itself. A dynamic code works as long as the short link behind it stays active on the service that hosts it.

Do I need an app to scan a QR code?

Usually not. The camera app on iPhone and on most Android phones reads QR codes directly. See how to scan a QR code for step-by-step instructions.

Can a damaged QR code still be scanned?

Often, yes. Error correction lets a scanner rebuild roughly 7% to 30% of the data, depending on the level chosen. Damage to the finder patterns, however, usually makes a code unreadable.

Is it free to create a QR code?

Yes. Static QR codes for links, text, Wi-Fi, WhatsApp, contacts, email and SMS can be created for free and without a watermark. Dynamic codes that you can edit and track need an account.

Are QR codes safe?

The code itself is only data; the risk lies in where it leads. Check the link preview before opening it and be wary of codes stuck over other codes in public places. Our QR code security guide lists the warning signs.

Qdestera

Make your first QR code in a minute.

Create a static code for free, or sign up to build dynamic codes you can edit and track after printing.

Start free