Skip to content
EveryFix

Barcode Generator

The Barcode Generator creates real, scannable barcodes — CODE128, CODE39, EAN-13, UPC-A, and ITF-14 — right in your browser. Type your content, pick a format, and download a clean PNG. Nothing is uploaded. EAN-13 and UPC-A both carry a mod-10 check digit: each data digit is multiplied by an alternating weight of 1 and 3, the weighted values are summed, and the check digit is whatever amount brings that sum up to the next multiple of 10. Enter just the 12 (EAN-13) or 11 (UPC-A) data digits and the generator calculates and appends the check digit automatically; enter the full-length code instead and it validates that the trailing digit matches, marking the barcode invalid if it doesn't. CODE128 has no separate printed check digit at all — it bakes a modulo-103 checksum, computed from the position-weighted value of every encoded character, directly into the bar pattern itself.

Beginner1 minuteUpdated 2026-07-08

Any letters, numbers, or symbols.

Barcodes are generated in your browser and are real, scannable codes. CODE128 is the best all-purpose choice; use EAN/UPC for retail products and ITF-14 for shipping cartons.

How This Tool Works

Enter the text or numbers you want to encode, choose a barcode type (CODE128 works for almost anything), and a scannable barcode is drawn instantly. Click Download PNG to save it.

Formula & Method

Each barcode symbology encodes characters as a specific pattern of bars and spaces of set widths, with a check digit where the format requires one. This tool uses the JsBarcode engine to render valid, standards-compliant codes locally in your browser.

Example Calculation

Choose EAN-13 and type the 12 data digits 123456789012. The generator computes the mod-10 check digit by weighting alternating digits by 1 and 3 (1+3+5+7+9+1 for the ×1 positions, plus (2+4+6+8+0+2)×3 for the ×3 positions, totaling 92), then subtracting from the next multiple of 10 to get 8 — and renders the full 13-digit code 1234567890128 as a scannable barcode with that check digit printed beneath the bars.

Please note: This calculator provides estimates for general informational purposes only. Results may not be accurate for every situation — use your judgment and consult a relevant professional when it matters.

Frequently Asked Questions

Are these barcodes actually scannable?+

Yes. They are generated with a standards-compliant engine, so a phone or retail scanner reads them like any printed barcode. For best results, print at a good size and keep the white space around it.

Which format should I use?+

CODE128 is the best all-purpose choice — it handles letters, numbers, and symbols. Use EAN-13 or UPC-A for retail products, and ITF-14 for shipping cartons.

Why won't my content generate?+

Some formats are strict: EAN-13 needs 12–13 digits, UPC-A needs 11–12 digits, and ITF-14 needs exactly 14 digits. If your input doesn't fit, switch to CODE128, which accepts almost anything.

Is my data private?+

Yes — the barcode is created entirely in your browser and nothing you type is uploaded to or stored on any server.

Do I need to include the check digit myself?+

No — for EAN-13 and UPC-A, enter just the data digits (12 for EAN-13, 11 for UPC-A) and the tool calculates and appends the mod-10 check digit automatically. If you type the full-length code, including what you believe is the check digit, the tool instead validates it and marks the barcode invalid if that trailing digit doesn't match the calculated value.

How does CODE128 verify itself without a visible check digit?+

CODE128 doesn't add an extra printed digit to your data the way EAN-13 and UPC-A do. It computes a modulo-103 checksum from the position-weighted values of every character you enter and encodes that checksum directly into the bar pattern, so a scanner can confirm the read is correct without you ever seeing the extra digit.

Found this useful? Share it

Help someone else out — or link to it from your own site.

Link to this tool

Writing about barcode generator? Paste this on your site to link here.

<a href="https://everyfix.net/tools/barcode-generator/">Barcode Generator</a> by <a href="https://everyfix.net">EveryFix</a>