Will we ever run out of qr codes
Clarity on QR code capacity settles a common worry for businesses printing thousands of codes: the pattern space is so vast that running dry simply isn't a realistic concern, ever.
Key Takeaways
- QR codes aren't drawn from a limited stockpile — each one is generated on the fly from whatever data is encoded, so the "supply" scales with data, not a registry.
- The largest QR code version (40) supports 2^23,624 possible module arrangements, a number so large it's functionally infinite for real-world use.
- WeChat alone reportedly generated an estimated 140 billion QR codes, and the underlying math still has room to spare many times over according to QR Tiger.
A standard QR code at its largest size can encode up to 23,624 bits of data, which works out to hundereds of millions of possible unique combinations — a figure that, according to Supercode, exceeds the estimated number of atoms in the observable universe. That's the short answer to whether we'll run out: not even close.

The longer answer is more interesting, though, because it involves understanding how QR codes are actually generated and why the "running out" question isn't really about a finite pool of codes at all. Every time someone builds a QR code through a tool like the free QR code generator, they're creating a brand-new arrangement of black-and-white modules based on whatever data gets fed in — a URL, a WiFi password, a a vCard. There's no central bank of QR codes being handed out one by one.
The math behind QR code capacity
QR codes are built from a grid of square modules, and the size of that grid determines how much data can fit. The smallest QR code (Version 1) is a 21x21 grid, while the largest (Version 40) expands to 177x177, giving 31,329 individual modules according to QR Tiger. Each module can be black or white, so the total number of possible patterns is 2 raised to the power of 31,329 — a figure with thousands of digits.
That number represents theoretical pattern combinations, not usable, decodable codes with error correction and format information intact. Even after accounting for the overhead needed to make a QR code scannable — timing patterns, error correction blocks, version and format data — the usable space still dwarfs anything humanity could generate in centuries of daily printing.
Why the comparison to URLs matters
Most QR codes in the wild aren't storing raw data directly — they're storing a short URL that redirects to a destination, especially with dynamic QR codes. This means the practical limit isn't the QR code's pattern space at all, it's the size of the URL shortening system behind it, which is itself effectively unlimited since short codes can be lengthened as needed. Read more about how this distinction works in our guide on static vs dynamic QR codes.
What happens with billions of codes in use
China offers a useful real-world stress test. WeChat's ecosystem alone has generated an estimated 140 billion QR codes for payments, contacts, and mini-programs, according to QR Tiger. That volume hasn't dented the available combinations in any meaningful way, and it illustrates how far mass adoption can go without approaching any ceiling. See our breakdown of QR code usage in China for more on how that scale plays out.
Could duplicate codes ever collide?
Collisions — two different businesses accidentally generating an identical QR code — are a separate issue from running out, and they're avoided through good design rather than mathematical necessity. Dynamic QR codes generated through a reputable platform assign unique short links automatically, and static codes encoding full URLs are already unique by virtue of encoding a unique address, a distinction covered further in our guide on types of QR codes. The risk isn't scarcity; it's sloppy reuse of the same static image across unrelated campaigns.
What actually matters more than running out
Since capacity was never the real constraint, the practical questions worth worrying about are different. Here's what to focus on instead when you're generating QR codes for business use.
Choose dynamic QR codes for anything you might need to update later, since the code's visual pattern stays fixed while the destination URL can change behind the scenes — details in our static vs dynamic QR codes guide.
Watch error correction levels rather than code count — higher error correction (Level H) uses more modules for redundancy, which matters far more for scan reliability on a torn flyer than any theoretical shortage.
Keep encoded URLs short and clean, since longer strings push a QR code into a higher version with a denser grid that's harder to scan at small print sizes, especially on QR code stickers or product labels.
Frequently Asked Questions
Is there a global limit on how many QR codes can exist?
No. QR codes are generated from encoded data rather than pulled from a finite pool, and the mathematical pattern space (2^23,624 combinations at maximum size) is vastly larger than any number humans could produce, per Supercode.
Could two businesses ever end up with the same QR code by accident?
It's extremely unlikely if each code encodes a unique destination URL or unique data string. Problems arise from reusing the same printed code across unrelated campaigns, not from running out of unique combinations.
Do dynamic QR codes ever expire or get reassigned?
That depends on the platform generating them, not on any shortage of possible codes. Most services keep a dynamic code's short link active indefinitely as long as the account remains active, letting you swap the destination without reprinting anything.
Why do some QR codes look denser than others?
Denser-looking codes are simply encoding more data or using a longer URL, which pushes the code into a higher version with more modules. It has nothing to do with availability — it's purely a function of how much information you're packing in.
Related Guides
Ready to create your QR code?
Generate custom QR codes in seconds - free and easy to use.
Create Free QR Code →