Barcode generator
Type a value, pick a barcode type, and download a clean PNG or SVG.
About Barcode Generator
This tool draws linear barcodes from the value you type. For EAN-13, EAN-8 and UPC-A it adds the check digit when you leave it off and tells you when the one you typed is wrong. Code 128 packs pairs of digits to keep the bars short. You can set the bar width and height, the colours, and whether the number is printed underneath. The result is a PNG or an SVG. Nothing leaves your browser.
- Labels for shelves, boxes and stock sheets.
- Test barcodes for a point-of-sale or inventory system.
- Asset tags and library-style numbering.
- Checking how a number turns into bars and what its check digit is.
How to use Barcode Generator
Step 1
Choose the barcode type and type the value.
Step 2
Adjust bar width, height and colours, and tick or untick the printed number.
Step 3
Download the PNG or the SVG.
Good to know
- A barcode made here is only a picture of a number. Product codes sold in shops are issued by GS1, so do not use an invented EAN on goods you plan to sell.
- Keep the white margin on both sides and print dark bars on a light background. Always scan a printed sample before you print a whole run.
- Data Matrix is not offered. It needs a different encoder, and a half-correct one would not scan.
Common questions
How is the check digit worked out?
For EAN and UPC, digits are weighted 3 and 1 from the right, added up, and the check digit brings the sum to a multiple of 10.
Which type should I pick?
Code 128 for general text and numbers, EAN-13 or UPC-A for retail product numbers, Code 39 for simple capital-letter labels, ITF for cartons and Codabar for older library and lab systems.
Why does ITF add a zero?
Interleaved 2 of 5 stores digits in pairs, so it needs an even count. An odd count gets a leading 0.