Tools

Barcode generator (Code 128, EAN-13, UPC)

Generate Code 128, EAN-13, EAN-8, UPC-A, Code 39 and ITF-14 barcodes as scalable SVG.

Runs in your browserImages and colour5.9K
Free

Input

0 B

Result

The result will appear here.

Labels for a small warehouse, an asset tag for an office laptop, a mock-up of a retail pack, a test fixture for a scanner integration. This draws one-dimensional barcodes with JsBarcode as SVG, a vector format that prints crisp at any size and drops into Illustrator, Figma or a label template. For the retail symbologies the check digit is computed for you, and a wrong one is caught along with the digit it should have been.

How it works

  • Code 128 takes any printable ASCII and is the default for internal labels; Code 39 is limited to capitals, digits and a few symbols but is still required by some older systems.
  • EAN-13, EAN-8, UPC-A and ITF-14 take their data digits and get the GS1 mod-10 check digit appended; if you type the full number, the check digit is verified instead.
  • Bar width sets the narrowest bar in pixels (the X-dimension) and bar height the length of the bars; the human-readable text under them can be switched off.

Where your data goes

Nowhere. This tool runs entirely in your browser: the text you paste is processed by the page and is never transmitted to a server or written to a log.

This tool is free and needs no account. Its results exist only in your open page and are not saved anywhere.

What it costs

This tool is free, with no sign-in and no points.

Common questions

Can I make a real EAN-13 for a product I sell?
You can draw one for any number, but a barcode that retailers accept needs a number assigned to your company by GS1 (in China, the Article Numbering Center of China). Made-up numbers scan fine but may clash with a real product in a shop's system.
Why can't I put Chinese text in a barcode?
The 1D symbologies here encode only digits or ASCII characters. For Chinese text, a URL or anything long, use a QR code, which stores UTF-8 and holds kilobytes instead of a few dozen characters.
How big should I print it?
Scanners need the narrowest bar to be at least about 0.25 mm wide for Code 128 and around 0.33 mm for EAN-13 at its nominal size, plus a clear margin on both sides. Because the output is SVG, scale it in your layout tool rather than stretching a bitmap.

The open-source behind it

This tool runs on lindell/JsBarcode, released under MIT. If you need the same behaviour inside your own program, that is the library to reach for.

lindell/JsBarcode

Also known as

  • barcode generator
  • ean 13 barcode generator
  • code 128 barcode
  • upc barcode generator
  • barcode svg
  • itf-14 generator