How Many QR Codes Are Possible?

The largest QR code (Version 40) can hold up to 7,089 digits — about 107089 possible values, a number so large it dwarfs the roughly 1080 atoms in the observable universe. And no, we won't run out of QR codes: a QR code isn't handed out from a central pool the way a phone number is — it's simply a visual encoding of whatever data you put in it. Try making one below.

Based on ISO/IEC 18004Free to designWe won't run out
STEP 1Enter the URL
STEP 2Customize Design
QR Code Preview
Classic
Bubble
Smooth
Sharp
Elegant
Dots
STEP 3Download your QR code
Can't be edited after download

The short answer

How Many QR Codes Are Possible? The Short Answer

The short answer is: effectively unlimited. When people ask how many possible QR codes there are, they're really asking a data-capacity question, because the number of possible codes is set by how much data a single QR code can hold, not by any list someone keeps. The largest standard code, Version 40 at the lowest error-correction level (L), stores up to 7,089 numeric digits — so one code can represent any value from zero up to a 1 followed by 7,089 zeros.

≈ 107089

possible values — a 1 followed by 7,089 zeros

Measured in raw bytes instead of digits, that same code holds up to 2,953 bytes. That works out to 23,624 bits, or 223624, which is roughly 107110 distinct byte-strings. Whichever way you count, the number of possible QR codes is thousands of digits long.

To put 107089 in perspective: there are only about 1080 atoms in the observable universe, and roughly 7.5×1018 grains of sand on Earth. Next to the number of possible QR codes, both of those are a rounding error.

40

Versions (sizes 1–40)

177 × 177

Largest grid (31,329 modules)

7,089

Max digits (Version 40, level L)

The math

The Math: QR Code Versions and Data Capacity

Every QR code is a grid of small black-and-white squares called modules. The standard defines 40 sizes, called versions. Each version's grid measures (4 × version) + 17 modules on a side: Version 1 is 21×21, and Version 40 is 177×177, which is 31,329 modules in total. Higher versions have more modules, so they hold more data. For the physical print dimensions of each version, see our QR code size guide.

How much data actually fits depends on two things: the encoding mode and the error-correction level. QR codes have four modes (numeric, alphanumeric, byte for URLs and any UTF-8 text, and Kanji) and four error-correction levels (L, M, Q, H). Level L reserves the least space for recovery data, so it leaves the most room for your content. The table below lists the maximums for a Version 40 code at level L.

Maximum Data Capacity of a Version 40 QR Code

Encoding modeMax at Version 40 (level L)
Numeric7,089 digits
Alphanumeric4,296 characters
Byte (binary / UTF-8)2,953 bytes
Kanji1,817 characters

Maximum capacity of the largest QR code (Version 40) at error-correction level L, the lowest level, which leaves the most room for data. Higher levels store less — L (~7% recovery), M (~15%), Q (~25%), H (~30%) — and at level H, byte-mode capacity drops to about 1,273 bytes. Source: ISO/IEC 18004.

Why not “2^31,329”? You'll sometimes see that figure quoted, taken from treating all 31,329 modules as independently black or white. It massively over-counts. Most of those grids aren't valid QR codes at all: the three finder patterns, the timing and alignment patterns, and the format and version information are fixed or positional, and a large share of the remaining modules are Reed–Solomon error-correction bits derived from your data rather than free to choose. The honest ceiling on distinct messages is set by data capacity — about 107089 numeric values or 107110 byte-strings — not by the raw module count.

Capacity also shifts with what you're encoding — a short URL, a Wi-Fi login, and a vCard contact each use byte mode differently, and dynamic codes store only a short redirect link no matter where it points. Our QR code types guide breaks down capacity and specs by content type.

Running out?

Will We Ever Run Out of QR Codes?

No. We will not run out of QR codes — not in your lifetime, not in the lifetime of the species, and not even in principle. The pool of possible codes is thousands of digits long, so far beyond any conceivable rate of creation that “using them up” isn't a meaningful worry.

A quick thought experiment. Suppose all 8 billion people on Earth generated a million QR codes every second for the entire age of the universe. The total created would still be a number with only a few dozen digits (around 1033) — against a ceiling more than 7,000 digits long. You would not have made a dent.

But the scale of the number is only half the story. The more important reason is conceptual: a QR code isn't a limited resource that gets handed out and used up in the first place. Here's why.

The real reason

Why You Can't Run Out of QR Codes Like Phone Numbers or URLs

Phone numbers, IPv4 addresses, and domain names can genuinely run low, because each one is a registered identifier. A central authority assigns them one at a time from a finite list, and once an entry is taken, nobody else can use it. That's what makes exhaustion possible — the world ran out of new IPv4 addresses for exactly this reason. A QR code works nothing like that.

Registered identifiers

Phone numbers, IP addresses, and domains are handed out one at a time from a finite list. Each is claimed and owned, nobody else can reuse it, and the list can be depleted — which is exactly why IPv4 addresses ran out.

QR codes

A QR code isn't assigned or reserved by anyone. It's generated on demand as a visual encoding of whatever you put in it — a URL, a line of text, a Wi-Fi password. Nothing is checked out from a registry, so there's no list to deplete.

That's also why two people can independently create the exact same QR code and nothing breaks. If you and a stranger both encode the same URL, you both get the same pattern of squares, and each code simply carries its own payload to whoever scans it. Duplicate QR codes coexist without conflict, because the code is the message, not a claim on it.

The only thing that could ever be scarce is the pool of destinations — unique URLs or short-link slugs — and that's a property of the web and DNS, not of QR codes. Dynamic QR codes ease even that: because a dynamic code points to a short link you can re-target at any time, a single printed code can serve an unlimited series of destinations over its life. One sticker, many campaigns, no new codes needed.

Want to go deeper? Our QR code types guide shows how capacity changes with what you encode, from URLs to vCards to Wi-Fi logins. If you're comparing formats, QR code vs barcode lays out why a QR code stores far more than a traditional 1D barcode. And to see real codes you can scan right now, browse the QR code examples.

How Many QR Codes Are Possible — Frequently Asked Questions

Try it yourself

Make a QR Code in Seconds

The supply of QR codes is effectively endless, so the only question left is what to put in yours. Design one free in seconds with no account — a free account downloads it.

Free to designNo watermarkPNG free · SVG/PDF paid