The Complete Guide to Barcode Generation
Everything you need to know about barcode symbologies, check digits, print requirements, and choosing the right format for your use case
1. Understanding Barcode Symbologies
A barcode is a machine-readable representation of data. Different industries use different symbologies (encoding standards), each with its own rules for what characters can be encoded and how the bars are structured:
- Code 128: The most versatile 1D barcode. Supports all 128 ASCII characters — uppercase, lowercase, numbers, and symbols. Used in shipping, packaging, and logistics.
- Code 39: An older alphanumeric format supporting A-Z, 0-9, and a few symbols. Common in automotive, defense, and industrial applications.
- EAN-13 / EAN-8: The European Article Number system used on retail products worldwide. EAN-13 encodes 13 digits (including country code and check digit); EAN-8 is a shorter version for small packages.
- UPC-A: The Universal Product Code used on retail products in North America. Encodes 12 digits including a check digit.
- ITF-14: Used on shipping containers and outer cartons. Encodes 14 digits, often derived from the product's EAN/UPC with a packaging indicator.
- MSI: Primarily used for warehouse shelf labeling and inventory control. Digits only.
- Pharmacode: Used in the pharmaceutical industry for packaging identification. Digits only, typically 1-6 digits.
- Codabar: Used in libraries, blood banks, and air package delivery. Supports digits and a few symbols with A/B/C/D start/stop characters.
2. The Check Digit: Built-In Error Detection
EAN-13, EAN-8, UPC-A, and ITF-14 barcodes include a check digit — the last digit in the sequence. This digit is mathematically calculated from all the preceding digits using a modulo algorithm. When a scanner reads the barcode, it recalculates the check digit and compares it to the printed one. If they don't match, the scan is rejected.
ToolWise automatically calculates this check digit for you. If you enter 12 digits for an EAN-13 barcode, the 13th check digit is computed and appended. This ensures your barcodes are always valid and scannable.
3. Choosing the Right Format
Retail Products
Use EAN-13 (Europe/global) or UPC-A (North America). These are the standard formats required by major retailers like Amazon, Walmart, and Tesco for product listing.
Shipping & Logistics
Use Code 128 for tracking numbers and ITF-14 for outer carton labeling. Code 128's full ASCII support makes it ideal for encoding complex tracking IDs.
Inventory & Warehousing
Use MSI or Code 39 for internal inventory tags, shelf labels, and asset tracking. Both are simple, reliable, and widely supported by handheld scanners.
Pharmaceutical
Use Pharmacode for packaging identification. It's specifically designed for pharmaceutical printing and recognized by industry scanning equipment.
4. Print Requirements & Best Practices
- Maintain the Quiet Zone: Every barcode needs blank white space (the "quiet zone") on both sides — at least 10x the narrowest bar width. Without it, scanners can't identify where the barcode starts and ends.
- Bar Width matters more than height: The narrowest bar (the "X dimension") determines scannability. For retail printing, keep bar width at 2px minimum. For shipping labels, 3px is safer.
- Always use high contrast: Black bars on white background is the gold standard. Never use colored bars on colored backgrounds — scanners rely on reflectance contrast.
- Download SVG for print: Vector SVG files can be scaled to any size without pixelation, making them ideal for product packaging and large-format printing. PNG works well for digital use.
- Test before mass production: Always print a single test label and scan it with multiple devices before committing to a large print run. Ink spread during printing can cause narrow bars to merge.
5. Privacy & Security
100% Client-Side Processing
ToolWise Barcode Generator runs entirely in your browser. Your data is never sent to any server — all encoding, rendering, and file generation happens on your device. This is essential for encoding sensitive product codes, proprietary tracking numbers, or confidential inventory data.
Conclusion
Whether you're a product manufacturer needing EAN-13 codes for retail distribution, a warehouse manager printing inventory labels, or a developer integrating barcodes into a system, ToolWise gives you nine industry-standard formats with full visual customization. Generate, preview, and download barcodes as PNG, SVG, or JPEG — all without uploading a single byte to any server.