Barcode Generator

Code 128, EAN-13 and UPC-A barcodes as sharp SVG images.

Also called: barcode maker, EAN-13 generator, Code 128 generator.

FreeNo sign-upRuns in your browser
GENERATORS

Barcode Generator

Code 128, EAN-13 and UPC-A barcodes as sharp SVG images.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Barcode Generator (13 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Barcode Generator

Make Code 128, EAN-13 or UPC-A barcodes as sharp SVG images that print cleanly at any size. Code 128 takes any text or number; EAN-13 is for retail products (12–13 digits) and UPC-A for US retail (11–12 digits).

Set the bar height and choose whether the number is printed under the bars. The barcode is drawn in your browser.

Always test-scan a printed barcode before printing many labels. Retail EAN/UPC numbers must come from GS1 to be valid in shops.

Choosing Code 128, EAN-13 or UPC-A

Choose the barcode format that matches the data and scanner workflow. Code 128 supports a broad range of letters, numbers and symbols and is commonly used for internal labels and logistics. EAN-13 and UPC-A are retail product formats with fixed numeric structures and check digits.

Use the number of digits requested by the selected format and let the generator validate the input. A barcode image is only a visual encoding: it does not register a retail product, assign an official GS1 number or guarantee that a retailer will accept the code.

Print a test at the final label size and scan it with the equipment that will be used in practice. Keep sufficient quiet space around the bars, use strong contrast and avoid stretching the SVG disproportionately.

How to use the Barcode Generator

  1. Add your inputFill in text or number and bar height. An example is already filled in, so you can press Run tool first to see how it works.
  2. Pick the optionsbarcode type and show the number under the bars (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Good to know

What you need
You type or choose: Text or number, Bar height
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Which type should I use?

Code 128 for your own labels, stock and IDs; EAN-13 or UPC-A only for products with a GS1 number.

Why SVG?

SVG stays sharp when resized, which matters for printing.

Can I make a QR code here?

Use the QR Code Generator for QR codes.

More tools in QR & Utilities

See all QR & Utilities tools