Barcode Generator

Generate barcodes in multiple formats instantly. Download as PNG or SVG.

Enter any text or number to encode.

2px

80px

Show text below barcode

How to generate a barcode

  1. 1

    Select a barcode format. Use CODE128 for flexible internal labels, EAN-13 or UPC-A for retail products, CODE39 for alphanumeric asset tags, or ITF-14 for outer shipping cartons. See the format guide below if you are unsure.

  2. 2

    Enter the value to encode. Each format has specific character set requirements; the hint beneath the field tells you exactly what is accepted and the correct length for numeric-only formats.

  3. 3

    Adjust Bar Width and Bar Height for your print size. For shelf labels use a narrower height; for shipping labels a taller barcode scans more reliably from a distance. Toggle the human-readable text label on or off.

  4. 4

    Download as PNG for documents, labels, and digital use, or as SVG for scalable print output that can be placed at any size in InDesign, Illustrator, or a laser cutter file without any pixelation.

Not sure which format to pick?

CODE128

Best all-purpose choice

Encodes any ASCII character. Ideal for internal inventory, warehouse tracking, event tickets, and shipping labels where retail scanner compatibility is not required.

EAN-13 / UPC-A

Retail products

Use EAN-13 for international markets and UPC-A for the US and Canada. Both require a legitimate GTIN from GS1 before use on products sold in retail.

ITF-14 / CODE39

Logistics and assets

ITF-14 is the standard for outer shipping cartons. CODE39 supports letters and numbers, making it popular for asset tags, ID badges, and industrial parts labelling.

PNG or SVG: and why it matters for printing

Barcodes generated here are created instantly in your browser using the JsBarcode library, with nothing uploaded or transmitted. Both PNG and SVG outputs are available, and the choice matters more than most people realise. PNG is a raster image at a fixed pixel size; it works well for digital use, Word documents, and label software that does not support vectors. But if you scale a PNG barcode beyond its native size, the bars can become blurry and cause scan failures.

SVG is a resolution-independent vector format that stays perfectly sharp at any size. For professional print runs, placing an SVG barcode in InDesign or Illustrator means the output at 300 DPI is identical to 600 DPI, with no aliasing on the bar edges. It is also the right format for laser cutting and CNC engraving. All barcodes generated here are static image files; they encode your value permanently with no expiry and no dependency on any online service.

Frequently Asked Questions

What barcode format should I use for retail products?

EAN-13 is the international standard for retail products sold outside the United States. UPC-A is the standard for US and Canadian retail. Both require a valid GTIN (Global Trade Item Number) issued by a body such as GS1 before they can legally appear on products sold in retail.

Can I use CODE128 for inventory and shipping labels?

Yes. CODE128 encodes the full ASCII character set, including letters, numbers, and symbols, making it the most versatile choice for internal inventory labels, warehouse tracking, and shipping documentation where standard retail compatibility is not required.

Do these barcodes expire?

No. Barcodes are static PNG or SVG files that encode your value permanently with no connection to any online service. The code will scan correctly for as long as the physical label or printed image remains legible.

Is my data sent to a server when generating barcodes?

No. Barcodes are generated entirely in your browser using the JsBarcode open-source library. No data is uploaded, logged, or transmitted to any server at any point.