TXT · Text & Data tools

1D Barcode Generator

Generated barcode preview

Generate barcodes in 12 formats from text or numeric input. The preview renders as you type; if the value does not meet the format’s requirements an error describes what is missing.

Format groups

Retail (EAN / UPC): EAN-13, EAN-8, UPC-A, and UPC-E encode numeric values for point-of-sale scanning. EAN-13 takes 12 digits, UPC-A takes 11, EAN-8 takes 7, and UPC-E takes 6. The check digit is appended automatically in each case.

Alphanumeric (CODE128 / CODE39): CODE128 Auto supports any ASCII text and selects the densest sub-type per character segment. CODE39 covers uppercase letters, digits, and the symbols - . $ / + %; it is self-checking and requires no checksum.

Logistics and specialty: ITF-14 encodes 13–14 digits for GS1 shipping cartons and appends the Modulo-10 check digit when 13 are entered. MSI encodes digits for shelf and bin labels. Pharmacode accepts integers from 3 to 131070 and is used by pharmaceutical packaging machines to verify pack configurations.

Bar dimensions and colors

Bar width sets the density of the symbol; lower values produce narrower barcodes suited to compact labels. Bar height should be large enough for the scanner’s read window — fixed-beam readers generally need taller bars. Line color and background must have sufficient contrast for reliable decoding; black on white is the standard.

SVG vs PNG

SVG is vector and scales without loss at any print size. PNG is raster and fixed-resolution. Use SVG for labels going to print and PNG when the target system does not accept SVG.

Frequently Asked Questions

EAN-13, EAN-8, UPC-A, UPC-E, and ITF-14 all compute and append a Modulo-10 check digit. CODE39 is self-checking by design. CODE128 and MSI handle validation internally.

Each format enforces specific input rules. EAN-13 requires exactly 12 digits, CODE128C requires an even digit count, CODE39 only accepts uppercase letters and a small symbol set, and Pharmacode only accepts integers from 3 to 131070. The hint below the value field states the exact requirement.

SVG scales without loss at any print size and is the better choice for labels going to print. PNG is raster; use it when the receiving system does not accept SVG.

Looking for a faster, single-purpose workflow?

Try a format-specific barcode generator

Explore Our Tools

Browse all tools