Barcode Generator
Generate real Code 128 and Code 39 barcodes as PNG (no EAN-13, UPC, or SVG export — those aren't available here). Both formats are independently verified byte-correct against reference barcode libraries; out-of-range characters are rejected with a clear warning instead of silently mis-encoding.
12 / 50 characters
How to Use This Tool
Type or paste the value to encode (up to 50 characters)
text, numbers, or a product code.
Choose a format
letters, numbers, symbols) or Code 39 (uppercase letters, digits, and a small symbol set only). Neither EAN-13 nor UPC-A is available in this tool
Pro Tip
If you need a value with mixed-case text or symbols beyond Code 39's small allowed set, use Code 128 — it covers the full printable ASCII range and has been independently verified byte-correct. For a retail product that requires a real EAN-13 or UPC-A, don't try to approximate it with Code 128 or Code 39 here — those aren't interchangeable with retail symbologies, and a store's point-of-sale system will reject anything that isn't a real, check-digit-correct EAN/UPC.
About This Tool
When to Use
- An Etsy seller generates a Code 128 barcode for a custom candle SKU to print on shelf labels for his own inventory tracking, not for retail resale where a registered UPC would be required.
- A small brewery owner needing an EAN-13 barcode for a grocery distributor's onboarding form learns this tool can't produce one
- A librarian batch-generates Code 39 barcodes for a donated book collection using accession numbers that mix letters and digits, trusting the tool's verified full character-set support.
Key Details
A barcode generator renders machine-readable patterns from text or numbers — this tool specifically produces two linear (1D) formats: Code 128, a dense, general-purpose symbology supporting the full p...
Worked example
Using the tool's own default value, TOOLZIP-2025, in Code 39 mode: every character passes the allowed-character filter (nothing gets stripped), and the resulting barcode scans back correctly, since the full Code 39 character table has been independently verified against two reference barcode libraries. The same text also encodes correctly in Code 128 mode.
Interpreting your result
A correctly-encoded barcode should scan back to exactly the text you entered on the first try with any standard scanner or phone scanning app. If a Code 128 barcode preview doesn't appear, check the warning banner — characters outside printable ASCII (space through ~) are rejected rather than encoded. If a Code 39 barcode is missing characters you typed, check the warning banner for which characters were stripped (anything outside A–Z, 0–9, and - . space $ / + %, including a literal asterisk). Always physically test-scan before printing at volume; a barcode that looks visually correct on screen is not the same as one that reads correctly in a scanner.
Barcode Generator FAQ
What barcode format should I use?
This tool generates two formats: Code 128, which handles the full printable ASCII range (letters, numbers, symbols) and is the most versatile choice for general use, and Code 39, an older industrial format limited to uppercase letters, digits, and a handful of symbols. It does not generate EAN-13, UPC-A, or any other retail barcode symbology — if you need one of those for a product going on a store shelf, you'll need a dedicated EAN/UPC generator instead.
What is the difference between Code 128 and Code 39?
Code 128 encodes all printable ASCII characters (including lowercase) at higher data density, and this tool's Code 128 output has been independently verified byte-correct across its full character range. Code 39 is older, requires no check digit, and is still common in industrial/legacy settings — this tool's Code 39 output has also been independently verified correct across its full 44-character set, including the start/stop delimiter handling.
Does this tool support EAN-13 or UPC barcodes for retail products?
No. Despite general barcode terminology sometimes grouping these together, this tool only generates Code 128 and Code 39 — it doesn't compute EAN-13 or UPC-A check digits or produce those symbologies at all. For a product that needs a real retail barcode, you'll need a GS1-registered number and a dedicated EAN/UPC generator; a GS1 company prefix costs roughly $250–$10,500+/year depending on how many products you register. Code 128 here is suitable for internal, non-retail tracking — your own shelf or inventory system — not a barcode scanned at someone else's checkout.
Are all characters supported in Code 39 mode?
All 44 standard Code 39 characters (0–9, A–Z, and - . space $ / + %) encode correctly — independently verified against two separate reference barcode libraries (jsbarcode and the BWIPP engine), which agree with each other and with this tool's output. A literal asterisk (*) is treated as unsupported data and stripped before encoding, since '*' is reserved exclusively as the Code 39 start/stop delimiter — the tool still adds its own start/stop asterisks automatically.
What happens if I use an unsupported character?
In Code 39 mode, any character outside A–Z, 0–9, and - . space $ / + % (including a literal asterisk) is stripped from your input before encoding, with an on-screen warning listing what's allowed. In Code 128 mode, any character outside standard printable ASCII (space through ~ — so no emoji, accented letters, or control characters) is rejected outright with a warning, rather than being silently mapped to the wrong symbol.
Can I add human-readable text under the barcode?
Yes — the 'Show text below barcode' checkbox is on by default and prints the exact value you entered underneath the bars, useful for manual verification if a scanner ever fails to read the code.
Can I download the barcode as an image?
Yes, but only as PNG at the pixel dimensions shown in the preview (bar width × number of bars, plus your chosen height) — there's no SVG export option for this tool. If you need a vector file for a professional print run, you'll need to recreate the barcode in a dedicated vector tool.
Master Your Entire Toolkit
Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.
Built and reviewed by the Toolzip Team