About
Tool No. 36 of Pikkola
A barcode is a written agreement: this width means one, that width means zero, and a scanner somewhere else will read it the same way. This page writes those widths from the published tables, without a library, and shows you the arithmetic behind the last digit.
What it does
- Seven symbologies: EAN-13, EAN-8, UPC-A, ITF-14, Code 128, Code 39 and ISBN-13.
- The check digit is computed when you type the short form, and verified when you type the full one. A mismatch is named, not silently corrected.
- Module width, bar height, quiet zone, human readable text, and the ink and paper colours are adjustable, with a contrast reading underneath.
- The symbol leaves as SVG (vector, for print work) or PNG at one to four times its natural size.
- A list of values becomes a sheet of labels with the columns and the label height you choose, printed on A4 through the browser's own print dialog.
- Four samples: a product EAN-13, a book ISBN-13, a carton ITF-14 and an asset tag in Code 128.
How a symbol is built
Every format here reduces to a string of modules, one character per module, dark or light. EAN-13 is 95 modules: three for the start guard, forty-two for the six left digits, five for the centre guard, forty-two for the six right digits, and three for the end guard. The first digit is not drawn at all; it chooses which parity pattern the six left digits are written in, and that is how the scanner learns it.
Code 128 starts from the published table of 107 width patterns, each eleven modules wide. The encoder picks set C for runs of digits and set B or A otherwise, so a number such as an invoice reference ends up nearly half the length it would take in Code 39. A modulo 103 checksum follows the data, then a thirteen-module stop pattern.
ITF-14 interleaves two digits into one group of five bars and five spaces, which is why a wide bar can sit beside a wide space and why the symbol looks coarser than the rest. Code 39 uses nine elements per character with exactly three wide, a gap of one narrow space between characters, and an asterisk at each end that is part of the symbol rather than of the value.
The check digit, by hand
Take an EAN-13 and drop the last digit. Number the remaining twelve from the left, multiply the odd positions by 1 and the even positions by 3, and add. For 880123456789 the sum is 127. The check digit is what is left when you take the next multiple of ten, 130, and subtract: 3. If the printed last digit is anything else, the code is wrong before it is ever scanned, and this page says so.
UPC-A uses the same weights starting from a different end, EAN-8 and ITF-14 the same idea over a different count. ISBN-13 is an EAN-13 whose first three digits are 978 or 979, so the arithmetic is identical and only the prefix changes meaning.
What it deliberately does not do
- It does not issue numbers. A retail EAN needs a prefix from GS1, assigned to your company. This studio draws what you type and cannot make a number yours.
- It does not export EPS or PDF. SVG opens in every design tool and prints at any size; a second vector format would be another thing to keep correct.
- It does not read barcodes. A camera decoder would need the camera permission and a scanner library, and neither belongs on a page that promises no requests.
- It does not store your values. Only the size, colour and format settings are remembered, so a serial number never sits in local storage.
- No account, no upload, no analytics, no cookies, no fonts or scripts from another server.
Why it is free
Pikkola builds small tools that do one job and keeps them free, with no account and no advertising. A static page that draws rectangles in the browser costs almost nothing to serve, so there is no reason to charge for it.
Contact
A symbol that will not scan, a phrase that reads badly in Korean or Japanese, a format you need and do not see: hello@pikkola.com. Tell us the format, the value and what the scanner did.