Map Extract
Free tool

Barcode generator for Code 128 and EAN-13

Choose Code 128 for any text or numbers, or EAN-13 for a 13-digit retail product number. Type the value, set the height, and the barcode is drawn straight away with the value printed underneath, ready to download as a sharp SVG or a PNG.

Runs in your browser. Nothing you enter is uploaded.

Which type to pick

TypeWhat it holdsTypical use
Code 128Letters, digits and symbols from the printable ASCII setStock codes, order numbers, asset tags, internal labels
EAN-13Exactly 13 digits, the last one a check digitRetail product numbers scanned at the till

Making a barcode

  1. Choose the type

    Use the Type switch: Code 128 (any text) or EAN-13 (retail products).

  2. Type the value

    For Code 128, any printable ASCII text. For EAN-13, type 12 digits and the check digit is worked out and added, or type all 13 and the tool checks the last one.

  3. Set the height

    Use the slider. Taller bars are easier to scan from a distance or on a curved surface.

  4. Download

    Download SVG gives a vector file that stays crisp at any size; Download PNG gives an image at three times the on-screen size, on a white background.

Example: a product barcode and a stock label

A small food producer has been allocated a company prefix and wants a barcode for a new jar of chutney. She types the first 12 digits, 506000123456. The tool works out the check digit, 4, draws the full EAN-13 for 5060001234564 and says the digit was added automatically. If she had typed 5060001234568 instead, it would warn that the last digit should be 4.

For her shelves she also makes Code 128 labels for internal stock codes such as PO-4471. When she tries a code containing a £ sign, the tool explains that Code 128 supports printable ASCII characters only.

Input
EAN-13: 506000123456
EAN-13: 5060001234568
Code 128: PO-4471
Result
Check digit: 4 (added automatically), barcode for 5060001234564
The last digit should be 4. Check the number.
Code 128 barcode for PO-4471

Printing tips

Print in black on white or a light colour, keep a clear margin either side of the bars, and do not stretch the image unevenly. Test-scan a printed sample with the scanner or phone app you will use before printing a whole batch. For labels that need an exact printed size, GS1-128 data or PDF output, the dedicated Code 128 generator offers bar width in millimetres and print-ready exports.

Questions people ask

How do I make a barcode for free?

Choose Code 128 for your own codes or EAN-13 for a retail number, type the value, and download the SVG or PNG. Everything is drawn in the page, so there is no account or watermark. Test-scan the printed barcode before using it on products or labels.

What is an EAN-13 check digit?

The 13th digit, calculated from the first 12 using a weighted sum, so scanners can spot a misread. If you type 12 digits, the generator works it out and adds it. If you type 13, it checks the last one and warns you when it does not match.

Can I make up my own EAN-13 numbers?

You can draw them, but they will not be recognised as your products by retailers or marketplaces. Real product numbers come from a GS1 membership, which gives you a company prefix. For internal stock or asset labels, use Code 128 with your own numbering instead.

Should I download SVG or PNG?

SVG for anything you will resize or send to a printer or designer, because it stays sharp at any size. PNG if the software you are using cannot open SVG, such as some label printers or older office programs. The PNG is drawn at three times the on-screen size.

Where your data goes

Barcodes are drawn by the page's own code in your browser. The values you type and the files you download are not sent to Map Extract or anyone else.

Checked against the tool on

Top