Choosing the right barcode: QR Code, Code 128, Code 39, EAN-13, and UPC-A explained
A practical comparison of character sets, check digits, quiet zones, print contrast, and GS1 retail licensing before you print product or stock labels.
Every barcode is just machine-readable text printed as contrasting bars or squares, yet choosing the wrong format causes immediate headaches. A 1D supermarket laser scanner cannot read a QR code, an EAN-13 label rejects letters, and a Code 39 shipping tag becomes absurdly wide if you pack twenty characters into it. Knowing the exact strengths and rules of the five main barcode standards saves you from printing unusable labels.
Side-by-side comparison of the five standards
| Symbology | Type | Allowed characters | Check digit | Best real-world use |
|---|---|---|---|---|
| QR Code | 2D square matrix | URLs, UTF-8 text, contact info, Wi-Fi strings | Built-in Reed-Solomon error correction | Phone scanning: menus, brochures, event tickets, manuals, payment links |
| Code 128 | 1D linear (high density) | Full ASCII (A–Z, a–z, 0–9, punctuation) | Automatic internal checksum | Warehouse bins, shipping labels, internal SKUs, asset tracking |
| Code 39 | 1D linear (wide bars) | Uppercase A–Z, 0–9, and - . $ / + % space | Optional | Legacy industrial equipment, simple short ID badges (e.g. ASSET-042) |
| EAN-13 | 1D retail fixed-length | Exactly 13 numeric digits (12 data + 1 check) | Mandatory modulo-10 | International retail products sold at point-of-sale counters |
| UPC-A | 1D retail fixed-length | Exactly 12 numeric digits (11 data + 1 check) | Mandatory modulo-10 | Retail consumer goods in the United States and Canada |
How check digits prevent mis-scans
Retail formats like EAN-13 and UPC-A end with a mathematical check digit calculated from all preceding digits. When a cashier’s scanner reads a scratched label, it recomputes that final digit; if the checksum does not match, the scanner refuses to beep instead of ringing up the wrong product price.
In Barcode Studio, entering 12 digits for EAN-13 (or 11 digits for UPC-A) automatically computes and appends the valid check digit. Entering all 13 digits with a wrong last digit shows the exact digit expected rather than quietly generating a broken label.
GS1 licensing: internal stock vs retail store shelves
One detail frequently trips up new small brands: anyone can generate a mathematically valid EAN-13 image, but commercial retail numbers must be officially licensed from GS1.
- Selling inside your own shop or tracking warehouse stock: Use Code 128 with your own internal SKU pattern (for example
COF-250G-001). It handles letters and numbers compactly and never collides with global retail registries. - Selling through supermarkets or global marketplaces: Obtain licensed GTIN / EAN-13 or UPC-A numbers from your national GS1 organisation first, then render the crisp print artwork in SVG or high-resolution PNG.
Static QR codes never expire
Many free QR websites quietly wrap your URL inside their own tracking shortlink, and then disable your printed QR code a month later unless you pay a monthly subscription. Barcode Studio generates purelystatic QR codes locally inside your browser: your exact URL or text is encoded directly inside the pattern. There is no middleman redirect, no scan counter, and no expiration date. It also never fetches or opens the URL you enter.
Keep URLs reasonably short: a 30-character link produces larger, cleaner black squares that scan reliably from further away, whereas a 300-character URL with tracking parameters packs dense tiny squares that blur easily on cheap printers.
Four print rules that guarantee reliable scanning
- Respect the quiet zone. Every 1D and 2D barcode requires an empty white margin surrounding all sides (at least 10× the width of the narrowest bar for 1D codes, and 4 modules wide for QR codes). Placing text, borders, or scissor cuts inside the quiet zone prevents scanners from locking on.
- Black ink on matte white paper wins. Infrared and red-laser 1D scanners read contrast in red light, meaning dark blue or black bars on white scan well, while red bars on white look almost invisible to a red laser! Avoid glossy metallic stickers and inverted light-on-dark bars unless you have tested them with the target scanner.
- Use SVG for packaging artwork. When placing a barcode onto a product box or brochure layout, export SVG from Single mode so the vector bars snap cleanly to printer dots at any physical size.
- Print one physical proof before ordering 500 stickers. Test the printed label under normal shop lighting with both a phone camera (for QR) and an actual handheld scanner (for 1D codes).
Generating batch labels up to 20 at once
When setting up shelf bins, event name badges, or a new batch of product SKUs, creating labels one by one gets tedious. Barcode Studio’s Batch mode accepts up to 20 independent rows (you can even mix QR codes, Code 128 tags, and EAN-13 labels in the same batch), validates every populated row before export, previews them on a shared canvas, and downloads a local ZIP containing one full-resolution PNG or JPG image per valid item.
Need to check or assemble label sheets into PDF? Export your individual codes from Barcode Studio, or lay out exact-millimetre prints in Print Studio.