Skip to content
Toolars
Explore

Barcode Generator

Generate barcodes for SKUs, labels and packaging in 21 formats, including CODE128, EAN-13 and UPC-A; validate locally and export PNG/SVG.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Preparing offline use…

Privacy information
Report bug

Task path / input to outcome

How to generate a barcode

  1. 01

    Pick the symbology

    Choose one of 21 symbologies; switching formats supplies a valid example. 1–64. CODE128 / CODE128A / CODE128B: Printable ASCII; CODE128A: ASCII 32–95; CODE128C / ITF: An even number of digits; CODE39 / CODE93: Uppercase letters, digits and standard punctuation. EAN13: 12/13; EAN8: 7/8; UPC: 11/12; ITF14: 13/14; UPCE: 6/8. EAN2/EAN5: 2/5; Supplemental symbol; use beside an EAN/UPC symbol. MSI / MSI10 / MSI11 / MSI1010 / MSI1110: Digits; the selected MSI check digits are added automatically. Pharmacode: Integer from 3 to 131070. Codabar: Digits and - $ : . + /; optional A–D start and end.

  2. 02

    Enter the value

    Type the data into Value, up to 64 characters. CODE128 accepts 1–64 printable ASCII characters, letters, digits, and symbols included. For EAN-13 enter the 12 data digits, for UPC-A the 11 — the checksum digit is calculated automatically, and if you paste the full 13- or 12-digit value including a checksum, that digit is verified and a mismatch names the expected number. Bar width (px): 1–4 px; Height (px): 40–240 px; Show human-readable value; Bar color; Background. Scanner support varies. Supplemental, MSI and Pharmacode symbols need a compatible reader.

  3. 03

    Style the barcode

    Outer margins grow with bar width: at least 12 narrow modules on each side. Keep the full margin when placing the image. Use dark marks on a light background. The 3:1 contrast check is only an initial filter, not a scan guarantee. This is a size estimate, not embedded DPI metadata or print certification. Keep integer scaling, preserve quiet zones and test the final output with the intended scanner. Scanner support varies.

  4. 04

    Generate and export

    Press Generate barcode; the renderer loads into this tab on demand. The validated PNG preview and SVG encode the normalized value, including a computed EAN-13 or UPC-A check digit. The human-readable value appears beneath the bars only when Display value is enabled; the bars still encode the same value when the text is hidden. Download toolars-barcode.png or toolars-barcode.svg, or use Copy SVG for the vector markup. Preview the exact PNG and download the same local bytes. SVG. Encoded value.

Tool facts

Processing
In your browser
Input leaves this device
Never
Retention
Optional local handoff
Price
Free

Your input stays in the browser.

Barcode Generator uses its verified local execution path and does not create a hidden input or output history.

Local execution

Runs inside the current browser tab.

No hidden processing

Active tool data never becomes a Toolars document record.

No account required

Use the core workflow without creating a profile. Favorites sync to your account after you sign in.

Workspace and handoff

Closing the tab clears normal workspace data. If you choose a handoff, the selected result stays on this device across reloads and tab closes, and can be accepted for 30 minutes. Accepting or dismissing removes it; expired records are cleared the next time the handoff feature is used.

What Barcode Generator actually does

A concise guide to the transformation, its boundaries, and the result you should expect.

Common questions

Which formats are supported, and what data do they take?
Choose one of 21 symbologies; switching formats supplies a valid example. 1–64. CODE128 / CODE128A / CODE128B: Printable ASCII; CODE128A: ASCII 32–95; CODE128C / ITF: An even number of digits; CODE39 / CODE93: Uppercase letters, digits and standard punctuation. EAN13: 12/13; EAN8: 7/8; UPC: 11/12; ITF14: 13/14; UPCE: 6/8. EAN2/EAN5: 2/5; Supplemental symbol; use beside an EAN/UPC symbol. MSI / MSI10 / MSI11 / MSI1010 / MSI1110: Digits; the selected MSI check digits are added automatically. Pharmacode: Integer from 3 to 131070. Codabar: Digits and - $ : . + /; optional A–D start and end. Bar width (px): 1–4 px; Height (px): 40–240 px; Show human-readable value; Bar color; Background. Scanner support varies. Supplemental, MSI and Pharmacode symbols need a compatible reader. Preview the exact PNG and download the same local bytes. SVG. Encoded value. Outer margins grow with bar width: at least 12 narrow modules on each side. Keep the full margin when placing the image.
Why does it say my checksum is invalid?
If you enter the full 13-digit EAN-13 or 12-digit UPC-A value including the checksum, that last digit is verified against the standard weighted calculation, and the error names the expected digit. This usually means the source value had a typo. Enter only the data digits — 12 or 11 — and the correct checksum is computed for you.
What are the size and color limits?
Outer margins grow with bar width: at least 12 narrow modules on each side. Keep the full margin when placing the image. One-pixel bars leave little room for resizing or print errors. Increase bar width and test at the final physical size. Use dark marks on a light background. The 3:1 contrast check is only an initial filter, not a scan guarantee. This is a size estimate, not embedded DPI metadata or print certification. Keep integer scaling, preserve quiet zones and test the final output with the intended scanner.
Is my data uploaded anywhere?
Processing runs in this browser; nothing is uploaded and no account is required. Closing the tab clears normal workspace data. If you choose a handoff, the selected result stays on this device across reloads and tab closes, and can be accepted for 30 minutes. Accepting or dismissing removes it; expired records are cleared the next time the handoff feature is used.

Keep reading

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

QR Code Generator

Create a QR code from text or a link, choose error correction and colors, then export PNG or SVG.

Create

QR Code Reader

Decode one QR code from a PNG or JPEG image using local Canvas and a Web Worker — no cloud fallback, no camera, links never opened.

Inspect