What Is a 2D Barcode? How It Differs From a QR Code
A 2D barcode stores data in a two-dimensional grid. A QR code is the 2D format US phones scan for websites. Here's the difference and when to use each.
Short answer: A 2D barcode stores data in a grid of marks, not in a single line of bars. QR codes are the 2D barcode most people meet on packaging, posters and menus. Other formats include Data Matrix and PDF417. FattyURL is a free URL shortener at fattyurl.com; for a web link, a QR that points at a short URL is usually the right choice in the United States.
Shoppers, event staff and warehouse teams all say "2D barcode" when they mean a square or rectangular code that a camera can read. This guide defines the term, compares QR codes with other 2D formats, and shows when a QR for a short link is enough. It is not a hardware-procurement manual. For the letters "QR" themselves, see what QR code stands for. To make a free QR for a link, use fattyurl.com/qr.
What is a 2D barcode?
A 2D barcode (two-dimensional barcode) encodes data in both height and width, usually as a grid of dark and light modules. A classic 1D barcode, such as the UPC on a grocery box, encodes data in a single line of bars and spaces and typically holds a short number. A 2D code can hold much more: a URL, a Wi-Fi payload, a vCard, or a structured industry code. A phone camera or a dedicated scanner reads the pattern as a whole, and most 2D formats include error correction so a slightly damaged mark can still decode.
2D barcode vs QR code
A QR code is one kind of 2D barcode, not a different family of technology. All QR codes are 2D barcodes. Not all 2D barcodes are QR codes. QR (quick response) codes were introduced by Denso Wave in 1994, later standardized, and they are the format US consumers can scan with the built-in camera on an iPhone or Android phone, with no special retail scanner required.
| Format | Typical shape | Common use | Phone cameras in the US |
|---|---|---|---|
| QR Code | Square, with three finder patterns in the corners | URLs, posters, packaging, tickets, menus, payments | Yes, widely supported |
| Data Matrix | Usually a small square, often on parts and devices | Electronics, healthcare, small-item marking | Sometimes, not as universal as QR for marketing links |
| PDF417 | A stacked rectangle | Boarding passes, some IDs and logistics labels | Depends on the app; not the default "point your camera" code for a website |
| 1D barcode (UPC, EAN, Code 128) | A line of bars | Retail checkout and inventory numbers | Some phone apps can read them; they are not designed to hold a web URL |
If your goal is "open this web page from a phone," a QR code is the 2D format to use. If your goal is a tiny mark on a circuit board or a boarding pass in an airline system, a different 2D format may already be required by that industry. Do not swap formats on a regulated label without checking the specification.
When should a 2D barcode hold a short link?
When the payload is a URL, shorter is better. A long address makes a denser QR, which needs more space to scan cleanly. Create the short link first, add any UTM tags to the destination, then generate the QR from the short URL. Disclosure: FattyURL is our product. A free account at fattyurl.com includes custom slugs, click counts and destination edits, with no monthly cap. Free-account links never expire. Guest links made from 7 October 2026 expire after 30 days with no click. Free links may show ads; paid-plan links never do.
Because a FattyURL QR points at the short link, you can change the web page later without reprinting the 2D mark. That is the difference between a static payload baked into the pattern and a dynamic redirect you still control. For scan failures, see why a QR code stops working.
How a 2D barcode is read
A scanner or phone camera photographs the whole mark, locates the finder or alignment features, and reconstructs the bit pattern. Error correction, which QR codes and several other 2D formats include, lets the reader recover data even if a corner is scuffed or a light reflection hides a few modules. That is why a slightly worn shipping label can still work, and why a QR printed too small, or with no quiet zone, fails even though the file looked sharp on a laptop.
For marketing and menus in the US, you rarely need to choose an error-correction level by hand. You do need enough physical size, contrast and margin, and a payload short enough that the modules stay large. A short link helps with that last point.
Key takeaways
- A 2D barcode stores data in a grid; a 1D barcode stores it in a single line.
- A QR code is the 2D barcode most US phones can scan for a website, menu or ticket.
- Data Matrix and PDF417 are also 2D formats, used more often in parts marking, healthcare and travel documents.
- For a web link, put a short URL in the QR so the pattern stays simple and editable.
- You can make a free QR for a link at fattyurl.com/qr with a short link behind it.
FAQ
Is a QR code a 2D barcode?
Yes. QR Code is a 2D barcode format. People often use the terms interchangeably in marketing, but "2D barcode" also includes other formats such as Data Matrix and PDF417.
What is the difference between a 1D and a 2D barcode?
A 1D barcode is a line of bars, typically holding a short number for checkout or inventory. A 2D barcode is a grid that can hold more data, including a URL, and usually includes error correction.
Which 2D barcode should I use for a website?
A QR code. It is the format US consumers already know how to scan with a phone camera. Use a short link as the payload so the code stays easy to read and you can edit the destination later.
Can a 2D barcode store a whole PDF or video?
Not in any useful way for a printed mark. Store the file online and put a short URL in the QR. The phone then opens the file or video on the web.
Do 2D barcodes expire?
The printed pattern does not expire. What can break is the destination (a moved page) or a short link that your provider deletes. Free FattyURL accounts keep links from expiring; a static QR that encodes a raw URL cannot be edited if that URL dies. See also our guide to QR codes that stop working.
Are all square barcodes QR codes?
No. Data Matrix marks are often square too. Look for the three large finder squares in the corners of a typical QR code. If you are scanning a tiny mark on a part or a medicine pack, it may be Data Matrix instead.
Sources
- Denso Wave: About QR Code
- ISO/IEC 18004 (QR Code) (standard reference; access may require purchase)
- FattyURL: What does QR code stand for?
- FattyURL: Why a QR code stops working
- FattyURL QR code generator
Disclaimer: This article is for general information only and is not legal or security advice. It was researched and drafted with the help of AI, and its facts were checked against the sources linked above, mostly each provider's own pricing, help and policy pages. URL shorteners, QR code tools and social platforms change their plans, prices and rules often, so confirm the details on the provider's website before you choose a plan, move your links or print a QR code. FattyURL is our own product. Spotted something out of date, or a FattyURL link being misused? Tell us and we will act on it.