Barcode Generator
Create a Code 128 or EAN-13 barcode from a value.
What this tool does
Barcodes encode numbers into a pattern machines can read. This tool generates a barcode image from the digits you provide — useful for labels, prototypes or learning how the format works.
What you can do with it
- Four symbologies
Code 128 for general text, EAN-13 and UPC-A for retail, Code 39 for legacy industrial labels.
- An image, not a string
The output is a rendered barcode you can save and place in a label.
When to use it
- You need a barcode for a label or a mock-up.
- You are testing a scanner or a point-of-sale system.
- You want to understand how product codes are represented.
- You are creating sample data for an inventory system.
How to understand this tool
A Code 128 barcode for "123456789012", drawn to canvas and downloadable as PNG.
The formats have rules about what they accept. EAN-13 and UPC-A carry a check digit calculated from the other digits, and a value of the wrong length is rejected rather than guessed at. Scanners also need quiet space around the bars, so a barcode placed tight against other artwork can fail even when the pattern is correct.
What it will not do
- It does not generate 2D codes such as Data Matrix or PDF417.
- It cannot verify that a value is registered with a retailer.
Questions people ask
Can I make a real product barcode?
You can make the image, but official product codes must be assigned by the relevant standards body.
Why does my code need a specific length?
Formats like EAN-13 expect a fixed number of digits plus a check digit.
One thing worth knowing
EAN-13 needs exactly 12 digits (the 13th is a check digit). Code 128 accepts alphanumeric text.