Seven symbologies - Code 128, Code 39, EAN-13, EAN-8, UPC-A, ITF-14 and ISBN - with automatic check digits and PNG or SVG export
Code 128, Code 39, EAN-13, EAN-8, UPC-A, ITF-14 and ISBN cover retail, logistics and publishing use cases
EAN, UPC, ITF and ISBN append the check digit for you, and a full code you paste in is validated with the correct value shown if it is wrong
Bars are drawn as individual rectangles rather than a bitmap, so edges stay crisp at any zoom level on print and in design files
Module width, bar height, text size, quiet zone, bar colour and background colour can all be tuned to match a label or a brand palette
Download a 3x PNG for documents and printing, or the SVG source to hand to a designer for further editing
Every table is embedded in the page with no external calls, so the tool works offline and your data never leaves the browser
Use EAN-13 or UPC-A for retail products, ISBN for books, ITF-14 for shipping cartons, and Code 128 for internal numbering and general purpose labels.
For numeric symbologies just type the digits; you do not need to compute the check digit. The field validates the character set and length as you type and explains any problem below.
Drag the module width, bar height, text size and quiet zone sliders and pick your colours. The preview updates live and the chips below show symbology, character count, module count and check digit.
Download PNG for a 3x raster image, download SVG for a vector file, or copy the SVG source straight into a web page or design tool.
Generate EAN-13 codes for your own products to print shelf labels, or reprint a label when no barcode printer is available
Produce ISBN barcodes for self-published titles, internal reports and course materials, with automatic ISBN-10 to ISBN-13 conversion
Create ITF-14 carton codes to pair with bin locations for scan-based receiving and stock checks
Tag equipment, archive boxes and samples with Code 128 identifiers that a handheld scanner can read straight into a system
Placeholder barcodes for packaging design can be exported as SVG and dropped into Illustrator or Figma without losing sharpness
Change the module width and watch how bars and spaces shift, which beats a textbook diagram for explaining one dimensional encoding
A barcode is fundamentally a binary string. Each character maps to a fixed pattern of bars, which are dark, and spaces, which are light. As a scanner sweeps across, the light and dark transitions become ones and zeros that are decoded back into characters using the symbology table. What separates the symbologies is the table and the structure: Code 128 uses eleven modules per character and three character sets, A, B and C, to cover the full ASCII range while packing digits tightly, whereas EAN uses seven modules per digit plus complementary left and right encodings and a parity pattern in the first digit for self-checking.
A check digit guards against typing and scanning errors. EAN, UPC and ITF use a modulo 10 weighted scheme: working from the right, multiply alternating digits by 3 and 1, sum the products, take the last digit, and subtract it from 10. Code 128 uses modulo 103: the start character value plus the sum of each character value multiplied by its position, all modulo 103. A check digit catches virtually all single character errors and most transpositions of adjacent characters, which is why retail codes almost never let a typo through.
The quiet zone is the blank margin on both ends of a barcode. It tells the scanner where the symbol starts and stops. EAN-13 requires at least 11 modules on the left and 7 on the right, and Code 128 generally needs 10. If the quiet zone is cropped away or covered by other graphics, the scanner may never find the start or stop pattern and simply fails to read. This is the single most common reason a home-made barcode will not scan.
The wide to narrow ratio is the width of the widest element compared with the narrowest. Code 39 is commonly printed at 2:1 or 3:1, and 3:1 tolerates printing errors better. Code 128 and EAN use a single narrow element width and distinguish characters by how many modules they span. In print the critical risk is a narrow bar bleeding into its neighbour: module widths under 0.25 mm, print resolution below 300 dpi, or ink spread that fattens narrow bars can all make a scanner misread. That is why the PNG export here defaults to 3x resolution.
UPC-A is the twelve digit code used in North American retail and EAN-13 is the thirteen digit international equivalent. The structures are compatible: prefixing a UPC-A with a zero produces an EAN-13, which is why modern scanners read both. The difference is that the first EAN-13 digit selects a parity pattern for the six left hand digits, while UPC-A always uses the L encoding for all six, so the two are not freely interchangeable.
| Symbology | Length | Character set | Check digit | Typical use |
|---|---|---|---|---|
| Code 128 | 1-80 characters | Full ASCII, including lowercase and symbols | Modulo 103 | General IDs, assets, shipping labels |
| Code 39 | 1-40 characters | Digits, uppercase, - . space $ / + % | Optional modulo 43 | Industrial, automotive, defence |
| EAN-13 | 13 digits | Numeric | Modulo 10 | Global retail products |
| EAN-8 | 8 digits | Numeric | Modulo 10 | Small retail packages |
| UPC-A | 12 digits | Numeric | Modulo 10 | North American retail |
| ITF-14 | Even count, usually 14 | Numeric | Modulo 10 | Shipping cartons and pallets |
| ISBN | 10 or 13 digits | Numeric, final X allowed in ISBN-10 | Modulo 10 / 11 | Books and publications |