Barcode Generator

Acrafto Team Generators
Updated

Enter a value and the barcode will appear here

Need an EAN for product packaging, a CODE128 label for the warehouse, or an ITF-14 for shipping cartons? Pick the standard, type the value and the barcode renders instantly — validated as you type, downloadable as a PNG to test at the intended print size. The generator runs entirely in your browser, so product numbers and internal SKUs never leave your computer, and there is no registration or watermark.

Which barcode type do you need?

Each standard exists for a specific job. If you’re unsure, CODE128 is a useful starting point for internal labels when the receiving system supports it.

Code TypeArea of UseWhat can it encode?When to choose it?
CODE128Logistics, Warehouses, E-shopsNumbers, letters (A–Z, a–z), and ASCII symbols.Useful for internal labels, package tracking and inventory when supported.
EAN-13Retail (Europe & most of the world)Numbers only (13 digits).Render an assigned EAN-13 identifier when requested by a trading partner.
UPC (UPC-A)Retail (USA & Canada)Numbers only (12 digits).Render a UPC-A identifier when requested by the receiving retailer or system.
EAN-8Small productsNumbers only (8 digits).For tiny packaging (lipstick, chewing gum) where an EAN-13 physically doesn’t fit.
CODE39Industry, Automotive, DefenseNumbers, uppercase A–Z, ordinary spaces and - . $ / + %.Use when specified by an existing industrial or inventory system.
ITF-14Shipping cartonsNumbers only (14 digits).For outer packaging. The generator draws the surrounding bearer bar frame the standard requires, which protects readability when printing straight onto corrugated cardboard.

Why the generator rejects some inputs

If an error appears instead of a preview, the value doesn’t satisfy the rules of the chosen standard — that’s validation working, not a bug:

  • EAN-13, EAN-8, UPC and ITF-14 end with a check digit. The last digit is computed from all the others, so an arbitrary 13-digit number may have the wrong check digit. Try the valid example 4006381333931 (EAN-13) or 96385074 (EAN-8) to see the difference. If you have an officially assigned number, it already includes a correct check digit.
  • Digit counts are strict. EAN-13 needs exactly 13 digits, UPC 12, ITF-14 exactly 14.
  • Character sets are limited. CODE39 accepts only uppercase letters, digits and a few symbols — lowercase letters or accented characters (é, ř, ü) will be refused. CODE128 is the one to pick for mixed text like SHELF-A-12.

How the check digit is calculated

The final digit of an EAN-13, EAN-8, UPC or ITF-14 is a check digit derived from the preceding digits. It is part of the full identifier and helps detect some reading or entry errors; it does not prove that the number is officially assigned. Here is the whole calculation on the working example 4006381333931.

Take the first twelve digits and multiply them alternately by 1 and 3, starting with 1:

Digit400638133393
Weight131313131313
Product40018324193999

Those products add up to 89. Round that up to the next multiple of ten — 90 — and the difference is your check digit: 1. And indeed the full number ends in 1.

Two details trip people up. The weights are really anchored at the right-hand end, not the left — they run 3, 1, 3, 1 leftwards from the last data digit. EAN-13 has twelve data digits, an even count, so its leftmost digit happens to get a 1. UPC-A, EAN-8 and ITF-14 have an odd count, so their first digit gets a 3 instead. And when the sum already lands on a multiple of ten, the check digit is 0, not 10.

This is also why inventing a number almost never works: only one digit in ten satisfies the rule, so a made-up thirteen-digit number is wrong about 90% of the time.

Getting a code that actually scans

The preview can look perfect and still fail at the register if the physical print is wrong. The rules that matter:

  • Bar width is the thinnest module in pixels. The correct choice also depends on physical print size and printer resolution; a pixel count alone does not confirm print compliance.
  • Bar height affects scanning and should suit the intended use. Test the printed label with the receiving scanner.
  • Quiet zone: keep the blank space around the code clear. The generator includes margins for the selected standard.
  • Proportions: avoid stretching the downloaded image independently in one direction. Regenerate at the intended size when needed.

Colors and gradients — for design, not for checkout

Beyond classic black-on-white you can set custom foreground and background colors, a two-color linear gradient, or a rainbow fill. These options are meant for posters, event badges, coupons and other designed materials. For retail checkout and warehouse operations, stay with high-contrast solid colors — and whatever you choose, test the printed result with a real scanner before a production run.

The display text toggle prints the human-readable value under the bars. Keep it on for anything operational: when a code gets damaged, the cashier or warehouse worker can type the number in manually.

A prefix does not identify the manufacturing country

GS1 prefixes can identify an allocating organisation or a special numbering range; they are not a reliable statement of where an item was manufactured. A company registered in one country can sell products made elsewhere.

Some ranges are used for internal or restricted circulation, publications and other purposes. Their handling depends on the complete identifier and receiving system. For product origin, check the relevant product information rather than inferring it from the bars.

One thing this tool can’t do: assign official numbers

The generator validates a value and draws a barcode; it does not assign an official GTIN. For retail use, check the trading partner’s requirements and the relevant GS1 registration process. For internal inventory, choose identifiers and a barcode type accepted by your own system.


Frequently Asked Questions (FAQ)

Can a barcode be colored or use a gradient? Yes. Gradients and custom colours can reduce scanning reliability, so use dark solid bars on a light background for operational labels. Test the actual print with the intended scanner before producing a batch.
Why does my 13-digit number show an error as EAN-13? The last digit of an EAN-13 is a checksum computed from the first twelve. If it doesn't match, the number is invalid and the generator refuses it — before an output is generated. Verify the number you were assigned, or test the tool with the valid example 4006381333931.
How do I get an official EAN number for my product? Check the GS1 allocation process and your trading partner’s requirements. This tool does not register or assign a product number; it renders a supported value as a barcode image.
Which format is best for internal inventory? Code128 is often useful for internal labels because it supports letters, digits and ASCII symbols. Confirm support in the receiving system and scanner. Internal identifiers still need to follow that system’s rules.
Why does ITF-14 come with a thick frame? The frame — bearer bars — is part of the standard, and this generator draws it automatically whenever you pick ITF-14. It sits outside the quiet zone at the GS1 minimum thickness of 4.8 times the bar width, and it does two jobs. ITF-14 is designed to be printed straight onto corrugated cardboard, where the plate can squash bars at the symbol's edges; the frame equalizes that pressure. It also stops a partial scan of a damaged code from being read as a valid shorter number, which is one reason to preserve the frame and quiet zones when placing the exported image.
Can I tell where a product was made from its barcode? No. The leading digits identify the GS1 organisation the company registered with, not the factory. A company registered in Germany ships German-prefixed barcodes on goods made anywhere in the world, and nothing in the number records the country of manufacture. If you need provenance, read the packaging, not the bars.
Can I encode letters into an EAN code? No — EAN and UPC are strictly numeric by definition, and cannot encode a product name or other text. If your data contains letters, you need CODE128 (or CODE39 for legacy industrial systems), which are different standards meant for logistics rather than retail checkout.

For a website, Wi-Fi details or a contact card, use the QR code generator.

I would appreciate if you could share these pages with friends, bookmark them, or link to them. Thank you! 🙏