Barcode Generator

Create a barcode with a live preview, format checks, and full-size SVG or PNG downloads.

✓ Free to use · Runs in your browser · No sign-up

Enter a value. Preview your barcode.

The preview updates as you make changes. Everything is created in this browser. Your entries are not uploaded.

Choose the format required by your scanner or labeling system.
Ordinary English letters, digits, spaces and punctuation. Up to 80 characters.
Wider bars make the whole barcode wider. Downloads keep the full size.
30–250 pixels. Leave white space around the barcode when printing.

How to use Barcode Generator

  1. Choose the barcode format your scanner or labeling system expects.
  2. Enter the value and adjust the bar width, height, and visible label. The preview updates automatically.
  3. Download SVG for scalable artwork or PNG for a fixed-size image, then test the output with your scanner.

A closer look

A barcode turns a value into a pattern of dark bars and white spaces. This tool supports CODE128 for printable English letters, numbers and symbols; CODE39 for its uppercase character set; and EAN-13 and UPC-A for complete numeric codes. Retail formats require the correct final check digit, and leading zeros are preserved. Generating an image does not register, assign, or verify ownership of a retail identifier. Use the number and format supplied by your own inventory or product-number system.

A practical example

For an internal label such as BOX-123, choose CODE128 and preview the bars. EAN-13 instead needs a complete 13-digit identifier with a valid check digit.

A useful tip

Keep the white margins, use good print contrast, and avoid stretching the image. A long value makes a wide barcode. A correct encoding does not guarantee every printer and scanner combination will read a small label.

Good questions. Simple answers.

Why was my EAN or UPC rejected?

EAN-13 needs 13 digits and UPC-A needs 12, including a valid check digit. This tool rejects missing or incorrect check digits instead of silently changing your identifier.

Which file should I download?

SVG stays sharp when scaled proportionally. PNG uses the full pixel dimensions shown above the preview. Both use black bars on a white background; the on-screen preview may scroll when wide.

Explore all generators for related tasks and category-specific guidance, or read how Toolzafi handles your data.

A few more useful tools