Barcode Generator
Make UPC, EAN, Code 128, Code 39 and 5 other barcode formats — runs in your browser.
General-purpose; any printable ASCII
Need check-digit autocorrect or product-code guidance? Use the dedicated UPC generator →
Everything runs in your browser. Nothing is uploaded.
What is barcode generator?
A barcode generator turns a string of text or digits into the black-and-white striped pattern that retail scanners, shipping conveyors, and inventory systems read optically. This tool covers the 8 most-used 1D (linear) barcode formats: UPC-A (North American retail), EAN-13 and EAN-8 (international retail), ITF-14 (shipping cartons), Code 128 and Code 39 (general-purpose), Codabar (libraries and medical), and MSI Plessey (warehouse).
Pick a format from the dropdown and the input updates with a sample value for that format. Type your own data and the live preview redraws as you type. The check-digit formats (UPC, EAN, ITF-14) automatically compute the trailing check digit if you only enter the data digits — or validate it and offer to correct it if you enter a full code with a wrong digit.
Everything runs in your browser — what you type never leaves your device. Downloads are PNG (for screenshots, listings, emails) and SVG (for design tools and lossless scaling).
For UPC-A specifically, the dedicated UPC generator offers a richer mismatch experience and product-code guidance focused on retail use. The page you’re on is the right starting point for everything else.
When to use a barcode generator
- Inventory and warehouse labels — Print Code 128 or Code 39 barcodes from your in-house SKU numbers for picking workflows, asset tagging, and stock counts. No GS1 registration needed for internal use.
- Event badges and tickets — Generate Code 128 barcodes from attendee IDs or ticket codes for conference check-in, museum admission, or class attendance scanners. Each badge gets a unique scannable code.
- Product prototyping and packaging mockups — Drop a real-looking UPC, EAN-13, or ITF-14 barcode onto comp art before manufacturing. Use the SVG download to scale to any print size without quality loss.
How to use the Barcode Generator
- Pick the format — Choose from UPC-A, EAN-13, EAN-8, ITF-14, Code 128, Code 39, Codabar, or MSI Plessey. The hint below the dropdown explains what each format expects.
- Type or paste your data — The input updates the live preview as you type. Check-digit formats (UPC, EAN, ITF-14) accept either the raw data or the full code with check digit; we'll compute or validate it for you.
- Download as PNG or SVG — PNG for screenshots and listing photos (1×, 2×, or 4× size). SVG for design tools that scale without quality loss. Copy the encoded data to clipboard with the Copy button.
Worked examples
Code 128 — any text
Input: HELLO-2026
Output: Standard Code 128 barcode encoding the literal string EAN-13 — auto check digit
Input: 590123412345
Output: Full 13-digit EAN-13 barcode: 5901234123457 (check digit 7 added) Code 39 — uppercase only
Input: PART-12345
Output: Code 39 barcode wrapped with implicit start/stop characters Frequently asked questions
Which barcode format should I use?
Why won't my Code 39 input accept lowercase letters?
- . space $ / + %. That's the complete character set defined by the standard. Lowercase letters don't exist in Code 39's encoding tables. If you need lowercase or extended ASCII, use Code 128 instead.