Toolvore

Barcode Generator

Validate or add GTIN check digits and generate one barcode or a batch label sheet as PNG and SVG.

This tool runs entirely in your browser. Your data is never uploaded, never stored, and never leaves your device.

Generates PNG and SVG barcodes in eight symbologies, validates or adds GTIN check digits, and can lay as many as 60 newline-separated values onto a printable PNG label sheet.

How to use it

  1. 1Enter one value for PNG and SVG, or up to 60 non-empty lines for those first-value files plus a complete label sheet.
  2. 2Choose CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, MSI or pharmacode; GTIN formats accept data digits alone or a full code with a verifiable check digit.
  3. 3Set 24–240 px bar height, 1–4 px module width, 0–60 px quiet zone, human-readable text, colours and one to five sheet columns.
  4. 4Test the live rendering, read any check-digit note, then download the individual PNG/SVG or the multi-label PNG sheet.

Example

Input
590123412345, format EAN-13
Output
Check digit 7 added; downloads are 590123412345-ean13.png and 590123412345-ean13.svg, encoding 5901234123457

EAN-13 accepts 12 data digits or all 13 digits, but rejects a supplied check digit that does not match. Corresponding data/total lengths are 7/8 for EAN-8, 11/12 for UPC-A and 13/14 for ITF-14.

What happens to your data

JsBarcode renders every canvas and SVG locally and no entered value or generated label is uploaded. A syntactically valid product barcode does not prove that the number is registered or yours: obtain trade-item identifiers through the relevant GS1 organisation, preserve the required quiet zone, and scan-test the actual material, size and printer before production.

Last updated September 2026

Generate one barcode for PNG and SVG download or turn newline-separated values into a printable PNG label sheet. Supported formats are Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI, and Pharmacode.

Rendering happens locally in your browser. Adjust module width, bar height, quiet zone, colours, readable text, and sheet columns, then scan-test the exact printed size and material before production.

How it works

Choose the symbology that matches the receiving system. Code 128 is compact for general letters and numbers; Code 39 is broadly used but less dense; retail EAN, UPC, and ITF formats require valid GTIN-length digits and check digits.

For EAN-13, EAN-8, UPC-A, and ITF-14, enter either the data digits without a check digit or the complete code. The tool calculates a missing check digit and rejects a supplied one that does not validate.

Single-value mode provides PNG and SVG. Multiple values create a label sheet for up to 60 entries with one to five columns. A technically valid symbol does not register a product number or grant use of a GTIN; obtain retail identifiers from the appropriate issuing organisation.

Common use cases

  • Create a Code 128 asset for an internal identifier
  • Validate or add a GTIN check digit before rendering
  • Prepare a small printable sheet of barcode labels
  • Export scalable SVG artwork for layout software
  • Compare quiet zone and module width before print testing

Frequently asked questions

Does generating an EAN or UPC register a retail product number?+

No. The tool only validates digits and renders a symbol. A retail GTIN must come from the appropriate authorised issuing system for the product and market.

Can the tool calculate a missing GTIN check digit?+

Yes. Enter 12 digits for EAN-13, 7 for EAN-8, 11 for UPC-A, or 13 for ITF-14. A complete code is also accepted only when its check digit validates.

Which barcode format should I choose?+

Use the format required by the scanner, retailer, carrier, or workflow. Code 128 is a flexible general-purpose choice, while EAN, UPC, and ITF formats have strict numeric structures. Confirm the specification with the receiving system.

Why do quiet zone and module width matter?+

Scanners need clear space around the bars and enough printed width to resolve each module. Increasing size cannot repair poor contrast, blur, ink spread, or an incompatible scanner, so test the final physical label.

What does batch mode export?+

Two or more newline-separated values produce one printable PNG label sheet with up to 60 barcodes and one to five columns. Single-value mode instead offers separate PNG and SVG downloads.

Can I rely on an on-screen barcode without testing it?+

No. Verify the encoded value, then scan the exported barcode at its final size on the real printer, material, lighting, and target device before a production run.

Is barcode data uploaded?+

No. Validation, rendering, and export run locally in your browser.