A barcode is a row of bars that a scanner reads as a short string of digits or characters. Different barcode types exist for different jobs: retail products use EAN and UPC, warehouses and shipping use Code 128 and ITF-14, and older internal systems often use Code 39. This tool draws the type you choose from the value you enter, checks that the value is valid for that type, and gives you an image to put on a label, a document or a design file. It is useful for inventory labels, library items, event passes and test data.
How to create a barcode
- Choose the barcode type first. The type decides which characters and how many digits are allowed, so picking it before typing saves confusion.
- Enter the value. For EAN and UPC types you can type the digits and let the tool tell you whether the final check digit is right.
- Read any validation message. If the check digit is wrong or the length is off, fix the value before going further.
- Look at the preview and test it with a scanner or a phone scanning app if the barcode will be used for real.
- Download as PNG for documents and quick labels, or SVG for print work where the bars must stay perfectly sharp at any size.
Options explained
- Code 128: A compact, general-purpose code that can carry letters, digits and many symbols. It is the usual choice for shipping labels, asset tags and internal IDs, and it is the right default if you have no industry standard to follow.
- Code 39: An older format that handles capital letters, digits and a few symbols. It is longer than Code 128 for the same data but is still found in defence, healthcare and legacy inventory systems.
- EAN-13: The 13-digit retail code used on products worldwide. The last digit is a check digit calculated from the others.
- EAN-8: A shorter 8-digit version for small packages where there is no room for EAN-13.
- UPC-A: The 12-digit code used on products in North America. It is closely related to EAN-13.
- ITF-14: A 14-digit code printed on cartons and outer packaging that hold several retail items, often inside a heavy bordered frame.
- Check digit validation: For the numeric retail types, the last digit is a checksum that catches mistyped numbers. The tool validates it, so a wrong last digit is flagged before it is printed.
- PNG and SVG output: PNG is a pixel image that suits screens and office documents. SVG is a vector file that scales without blur, which matters when printing at different label sizes.
Tips and common problems
A valid barcode is not a registered product. Retail EAN and UPC numbers are issued through GS1, the standards body, and linked to a company. Generating a code with valid digits does not give you the right to sell with it; use the numbers assigned to you. For internal use, Code 128 avoids the issue.
Keep a clear quiet zone. The blank space on both sides of the bars is part of the symbol. Do not crop it away or let text or borders crowd it, or scanners may fail.
Print size and contrast matter most. Use dark bars on a light background, print at a size a scanner can resolve, and avoid stretching the image in only one direction because that distorts bar widths.
Test with the scanner you will actually use. A phone app may read a barcode that a cheap handheld laser struggles with. Test on the target hardware before printing a thousand labels.
Expect ITF-14 to need even digit counts. The interleaved format encodes digits in pairs, so the data length is fixed to 14 digits including the check digit.
Want a code that holds a link or text instead? Barcodes carry short strings only. For web addresses, Wi-Fi details or longer text, use the QR code generator.
Your files stay on your device
The barcode is drawn by your browser from the value you type. Product numbers, serials and internal IDs never leave your device, and no image is stored anywhere. Nothing needs to be downloaded other than the page itself. See How it works for how local processing works across the site.
Frequently asked questions
Which barcode type should I use?
If a retailer or marketplace requires EAN or UPC, use that. For your own labels, inventory or tickets, Code 128 is the most flexible. Use ITF-14 for outer cartons when a distributor asks for it.
Can I make barcodes for my products to sell in shops?
You can draw the symbol here, but the number itself must come from GS1 or your national GS1 office. Retailers check numbers against that registry.
Why does the tool reject my EAN-13?
Either the length is wrong or the last digit does not match the check digit calculated from the others. Re-check the number against its source; one wrong digit changes the checksum.
PNG or SVG?
Use SVG when printing, resizing or placing the barcode in design software. Use PNG for documents, spreadsheets and web pages where a simple image is enough.
Can a barcode contain Arabic or other non-Latin text?
Standard linear barcodes are limited to a small character set, mostly ASCII. Use a QR code if you need non-Latin text.
Are my numbers saved?
No. The value is processed only on your device and is gone when you close the page.