MyWebUtils
Barcode Generator
Generate various 1D barcodes for your data.

Supports all 128 ASCII characters — text, numbers, and symbols.

About the 1D Barcode Generator

What is a 1D Barcode?

A 1D (one-dimensional) barcode encodes data as a sequence of parallel bars and spaces with varying widths. A scanner reads the light-and-dark pattern and decodes it back into the original number or string — usually in under a second. Despite being decades old, 1D barcodes are still the global standard for retail checkout, inventory management, shipping labels, and pharmaceutical packaging.

They're not flashy, but they're fast, reliable, and every scanner on the planet reads them without any configuration.

All 8 Supported Barcode Formats

FormatData RequirementsCommon Use
CODE128All 128 ASCII characters, any lengthLogistics, shipping, general purpose
CODE39A–Z, 0–9, and - . $ / + % spaceAutomotive, defence, healthcare
EAN-1312 digits (13th check digit auto-calculated)Retail products worldwide, ISBN books
EAN-87 digits (8th check digit auto-calculated)Small retail items with limited space
UPC-A11 digits (12th check digit auto-calculated)Retail products in North America
ITF-1413 digits (14th check digit auto-calculated)Outer cartons and shipping containers
MSIDigits only (0–9), any lengthWarehouse shelving, inventory bins
PharmacodeA whole number between 3 and 131070Pharmaceutical packaging verification

How to Create a Barcode

  1. Enter your data — a format hint appears below the input showing exactly what the selected format accepts.
  2. Select the format — CODE128 works for most purposes. Use EAN-13 or UPC-A for retail products.
  3. Adjust bar width and height using the sliders to fit your label size.
  4. Toggle the text value to show or hide the encoded data below the bars.
  5. Customise the colours if your label design needs specific bar or background colours.
  6. Download as SVG for scalable print use, or PNG for digital embedding.

Who Uses Which Format

  • Retail and e-commerce sellers need EAN-13 for products sold internationally — it's the standard every point-of-sale system in the world reads. Selling in North America only? Use UPC-A instead. EAN-13 also encodes ISBN-13 for book covers, so publishers use the exact same format.
  • For warehouse and inventory work, CODE128 is the most flexible choice. It handles letters, numbers, and symbols, so you can encode whatever internal SKU or bin code system you already use — no restrictions on length.
  • Shipping containers and outer cartons use ITF-14. It's the same idea as EAN-13 but designed specifically for corrugated packaging where printing quality can vary.
  • CODE39 has been around since the 1970s and every scanner ever made reads it without question. It's widely used in asset tracking, healthcare ID systems, and defence logistics for exactly that reason.
  • Pharmacode is very niche — it's only used in pharmaceutical packaging — but if that's your industry, it's the format your packaging line expects. Enter any whole number between 3 and 131070.

Tips for Best Results

  • Download as SVG for anything printed — it stays sharp at any size, from a label to a banner.
  • PNG is fine for digital use: websites, spreadsheets, emails, or embedding in documents.
  • Keep the contrast high. Dark bars on a white or light background is the safest combination. Coloured barcodes can look great but always test-scan them before committing to a print run.
  • For EAN and UPC retail barcodes, use bar width 2–3 and height at least 80px. Scanners at checkout counters expect a certain minimum size to read reliably.
  • Always test-scan with a real scanner or phone app before printing a large batch. What looks fine on screen can still fail to scan if the bar width is too thin for your printer resolution.
  • If you get a validation error, check the format hint directly below the data input — EAN-13 needs exactly 12 digits, UPC-A exactly 11.

Common Questions

How do I create a barcode with this tool?

Type your data, pick a format, and the barcode appears instantly. Adjust bar width and height with the sliders, then download as SVG or PNG. That's the whole process.

Is it free?

Yes — no account, no subscription, no watermark. Download as many barcodes as you need in SVG or PNG.

Which format should I use for retail products?

EAN-13 for products sold internationally (including books using ISBN-13), UPC-A for North America, and EAN-8 for small items where label space is limited.

Why do I keep getting a validation error with EAN-13?

EAN-13 needs exactly 12 digits — the 13th is a check digit the tool calculates automatically. Make sure you're entering digits only, no spaces or letters, and exactly 12 of them. Same logic applies to UPC-A (11 digits) and EAN-8 (7 digits).

Can I use these on actual product labels?

Yes. Download as SVG for the sharpest print output at any scale. For retail EAN/UPC barcodes, start with bar width 2–3 and height at least 80px before scaling to your label dimensions, and test-scan before printing a full run.

More QR & Barcode Tools Tools