Skip to main content
Toollyz

Search tools

Search for a command to run...

Barcode Generator

Generate scannable 1D barcodes in 14 popular formats — EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, ITF-14, ITF, MSI, Pharmacode, Codabar — with live preview, custom colors and sizing, plus SVG and 2× PNG export. Free, private, browser-only.

What is the Barcode Generator?

A barcode generator turns a text or numeric value into a scannable 1D barcode using a published encoding (Code 128, EAN-13, Code 39 and so on). Toollyz Barcode Generator runs the encoding inside your browser using the open-source JsBarcode library, which supports 14 production-grade formats: Code 128 (auto / A / B / C variants), Code 39, EAN-13, EAN-8, UPC-A, UPC-E, ITF-14 and ITF (Interleaved 2 of 5), MSI Plessey, Pharmacode and Codabar. Live preview updates as you tweak the value, format, foreground / background colour, bar width, height, margin, font size, custom caption and flat-bottom toggle. Export the result as a crisp SVG (vector, scales to any size) or a 2× PNG (rasterised at double resolution for clean prints). A built-in per-format hint ("EAN-13 needs 12 or 13 digits", "ITF needs an even number of digits") helps you avoid invalid input before JsBarcode rejects it. Toollyz has no backend — settings save to localStorage so refreshes don't lose your work.

How to use it

  1. Pick a format from the grouped Retail / Logistics / Industrial / Pharma / Generic list — the sample value pre-fills.
  2. Type or paste the value you want to encode. Format-specific hints tell you the expected length and character set.
  3. Adjust colours, bar width, height, margin and text size — the preview updates live.
  4. Click SVG (copy/download) for vector output or PNG 2× for a high-resolution raster.

Benefits

  • 14 supported 1D barcode formats — every common retail, logistics, industrial and pharma standard.
  • Live SVG preview with custom foreground, background, bar width, height, margin and font size.
  • Optional custom caption that overrides the default "show encoded value" text.
  • Format-specific lint that catches obvious input mistakes before JsBarcode rejects them.
  • SVG export (copy markup or download .svg) — vector, infinitely scalable.
  • PNG 2× export (rasterised at double resolution) for crisp printable barcodes.
  • Flat-bottom toggle to drop the EAN/UPC guard bars when you don't need them.
  • 100% private — Toollyz has no backend, settings saved to localStorage.

Frequently asked questions

Which library does this use?

The open-source JsBarcode library (production-grade encoders for 14 popular 1D barcode formats). The barcode is drawn into an inline SVG, which you can copy as markup or download as a file. The PNG export rasterises the SVG via a canvas at 2× for crisp prints.

Which format should I pick?

Use EAN-13 or UPC-A for retail products with a GS1 prefix. Code 128 is the safest general-purpose pick for serial numbers, tracking codes and labels. Code 39 is common in automotive and defence. ITF-14 is the case-level shipping barcode. Pharmacode is for pharma packaging. The format picker is grouped by industry to make this easier.

Why won't my value scan?

Most scan failures are either an invalid value for the chosen format (wrong length, wrong characters), too-narrow bars relative to the scanner's optics, or insufficient quiet-zone margin. Toollyz lints common mistakes before rendering; bump the bar width or margin if scans still fail.

Can I make a QR code or Data Matrix?

Not from this tool — QR, Data Matrix, PDF417 and Aztec are 2D codes and need different encoders. Use Toollyz QR Code Generator for QR codes. Data Matrix and Aztec may land in future updates.

What does the flat-bottom toggle do?

EAN and UPC barcodes traditionally have longer guard bars on each side and at the centre. Flat bottom removes those guards, giving a uniform-height barcode — useful when the barcode is a small detail in a larger design and you don't need the visual marker.

Can I add a custom caption?

Yes — use the Custom caption field to override the auto-generated text below the bars. Leave it blank to show the encoded value (or hide the caption entirely with the Show text checkbox).

Are EAN and UPC check digits added automatically?

Yes. EAN-13 (12 digits in), EAN-8 (7 digits in), UPC-A (11 digits in) and ITF-14 (13 digits in) all have a check digit appended by JsBarcode. If you paste the full code including a check digit, it's validated rather than recomputed.

Does the PNG export include the caption?

Yes — the PNG rasterises the entire SVG including the caption, foreground, background and margin. The SVG export is also self-contained.

Are my barcodes uploaded?

No. Toollyz has no backend — JsBarcode runs in your browser and the SVG / PNG is created locally. Settings save to localStorage; the barcode itself is never persisted anywhere.

Is this Barcode Generator free?

Completely free with no signup and no limits. Generate as many barcodes as you like — privately in your browser.