TextyConverterbeta
⌘K

Barcode Generator

Generate 1D barcodes — Code 128, EAN, UPC, Code 39, and more. Download as PNG or SVG.

About Barcode Generator

Create 1D barcodes (linear, like the stripes on a grocery item) from your input. Common formats: Code 128 (any character, variable length), EAN-13 (retail products), UPC (North American retail), Code 39 (industrial), ITF-14 (cartons). This tool uses JsBarcode and produces both SVG and downloadable PNG.

When to use it

  • Producing inventory or asset tags
  • Generating product barcodes for printing
  • Creating SKU labels for warehouses
  • Embedding scannable codes in documents

How it works

The JsBarcode library renders barcodes into an SVG element via a virtual DOM. The SVG is converted to a PNG data URL for download via canvas. Format-specific validation (length, allowed characters) happens before rendering and errors are surfaced.

Examples

Format=CODE128, value=ABC-12345
Standard Code 128 barcode with human-readable text below

Frequently asked questions

Which format should I pick?
CODE128 if you don't have a specific requirement — it's general-purpose, dense, and supports the full ASCII range. EAN-13/UPC for retail products. Code 39 for industrial or older systems. ITF-14 for shipping cartons.
Why does EAN-13 require exactly 12 or 13 digits?
EAN-13 has a strict 13-digit length where the 13th is a Luhn-like check digit. If you supply 12 digits, the check digit is computed; 13 digits are verified.

Related tools