Barcode Generator — EAN-13, UPC-A, Code 128 and More

Generate Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, Codabar and MSI barcodes, with check digits added or verified.

Free, with no sign-up and no watermark. The file is processed in your browser and never uploaded.

Generate Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, Codabar and MSI barcodes. For EAN, UPC and ITF the check digit is calculated for you — or verified if you type it. Adjust bar width, height and colours and download as PNG or SVG.

Step by step

  1. Choose the type: The hint under Value explains what each type accepts.
  2. Enter the value: For EAN-13, type 12 digits and the 13th is added automatically.
  3. Style it: Bar width, height, colours and whether to show the text.
  4. Download: PNG (rendered at 3× for sharp printing) or SVG.

Handy for

Inventory labels

Code 128 labels for stock and assets.

Retail testing

Test POS scanners with EAN/UPC codes.

Shipping cartons

ITF-14 codes for outer cases.

Library and membership cards

Codabar or Code 39 IDs.

Good to know

  • Keep dark bars on a light background and leave the quiet zone around the code.

  • Products sold in shops need GS1-registered numbers — the generator only encodes digits you type.

Questions

What does "Check digit should be 7" mean?

You typed a full code whose last digit doesn't match the calculated check digit, so scanners would reject it.

Is my data sent anywhere?

No. Everything is processed by JavaScript in your browser tab — nothing you paste or open is uploaded, logged or stored on a server. You can even use the tool offline once the page has loaded.

Further reading

More Developer Tools tools

  • Barcode Scanner — Read EAN, UPC, Code 128, Code 39 and other barcodes from your camera or an image.
  • JSON Formatter & Validator — Beautify, minify and validate JSON with exact error positions, key sorting and a collapsible tree view.
  • JSON to CSV Converter — Turn a JSON array into CSV with nested fields flattened to dot paths and a choice of delimiter.
  • CSV to JSON Converter — Convert CSV or TSV into a JSON array, with header detection, type inference and nested keys from dot paths.
  • JSON to XML Converter — Convert JSON into well-formed, indented XML with configurable root element and attribute handling.
  • XML to JSON Converter — Parse XML into JSON, keeping attributes under a prefix you choose and converting numbers and booleans.

All Developer Tools tools