Choose the data format
Code 128 B accepts printable ASCII. EAN-13 takes twelve digits and UPC-A takes eleven, or enter a complete value with a final digit to verify.
Create Code 128 B, EAN-13 or UPC-A barcodes with checked data, PNG export and a Three.js preview.
How to use
Type the text, URL, or number to encode as a barcode.
Choose from Code 128, EAN-13, UPC-A, or other barcode types.
Save the generated barcode as a PNG or SVG image file.
The guide
Choose one of three barcode formats and enter the value you want to encode. Inspect the check result and the bars, size the modules and height, and download a flat PNG for scanning.
A concrete input and expected output from the current implementation.
Input
Choose EAN-13 and enter 400638133393.
Expected output
The tool displays 4006381333931 with check digit 1 and a barcode with its quiet spaces.
Alternating digit weights contribute to a total that is rounded up to a multiple of ten by the final digit.
Code 128 B accepts printable ASCII. EAN-13 takes twelve digits and UPC-A takes eleven, or enter a complete value with a final digit to verify.
Retail barcode checks use the modulus-ten retail weights. Code 128 uses a weighted symbol sum modulo 103. The preview includes format-specific quiet spaces beside the black bars.
Adjust module width and bar height. Use the flat PNG for scanning, and use the Three.js display to compare the texture with the encoded value and checksum.
Yes. For EAN-13 and UPC-A, the tool verifies a supplied final digit or appends one when you provide only the data digits.
Use the flat image or exported PNG to avoid perspective and screen scaling in the Three.js view.
The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.
Sent. Thank you.