Skip to content

Barcode Generator

Make a printable Code 128 or EAN-13 barcode and download it as SVG or PNG.

Options
px
px
px

Enter a value to create a barcode.

Scan reliability depends on print size, contrast and quiet zones. Test-scan before printing in bulk.

Runs in your browser — your data is not uploaded.

How to use

  1. Choose Code 128 or EAN-13 in Format.
  2. Type or paste your barcode value into Value.
  3. Set Bar height, Module width and Margin to size your barcode.
  4. Choose PNG scale if you plan to use Download PNG or Copy image.
  5. Click Download SVG or Download PNG to save the barcode.

Examples

Internal part number on a small label

Input
ABC-12345
Output
Code 128: ABC-12345
123 modules · 143 × 80 px
Format: Code 128 · Modules: 123 · Size: 143 × 80 px

GS1 sample with an automatic check digit

Input
590123412345
Output
EAN-13: 5901234123457
Check digit: 7 (calculated)
Format: EAN-13 · Modules: 95 · Size: 226 × 120 px

Serial number for an asset tag

Input
SN-2026-000481
Output
Code 128: SN-2026-000481
167 modules · 374 × 120 px
Format: Code 128 · Modules: 167 · Size: 374 × 120 px

FAQ

Which barcode formats are supported?

The tool supports Code 128 and EAN-13, not UPC-A. Code 128 accepts up to 80 printable ASCII characters, including letters, numbers, spaces and punctuation.

Does the EAN-13 generator calculate the check digit?

Enter 12 digits to add the check digit automatically, or 13 digits to verify it. If the last digit is wrong, the tool tells you which digit is expected.

Can I create an EAN-13 number for my retail product?

Retail EAN-13 numbers are assigned by GS1. This tool draws the barcode; it does not assign or register a product number.

Should I use SVG or PNG for printing?

SVG keeps the bars as a vector path, so it can be resized without losing sharpness. PNG is a raster image, and PNG scale (1× to 4×) multiplies its pixel dimensions. Test-scan a printed barcode before using it.

Is my barcode value uploaded or saved?

The barcode is created in your browser, and the Value field is neither uploaded nor saved. Your option settings (Format, Show text, Bar height, Module width, Margin and PNG scale) are stored in localStorage. Site analytics records usage events without the barcode value.