Barcode Generator
Generate CODE128, EAN, UPC, and other barcode formats. Download as SVG or PNG.
Any ASCII text
Preview
Free online barcode generator for CODE128, EAN-13, UPC, and more
Barcodes are machine-readable representations of data used everywhere from supermarket shelves and shipping labels to hospital wristbands and library books. Generating the correct format for your use case used to require dedicated software or command-line libraries. AlteredIdea's barcode generator runs entirely in your browser: no installation, no account, no cost.
The tool covers the most widely deployed linear barcode symbologies: CODE128 for flexible alphanumeric encoding, EAN-13 and EAN-8 for retail products, UPC-A and UPC-E for North American retail, CODE39 for industrial and government applications, and ITF-14 for outer carton identification. Download the result as a scalable SVG or a print-ready PNG.
How to use: step by step
- 1Choose a barcode format
Select from CODE128, EAN-13, EAN-8, UPC-A, UPC-E, CODE39, or ITF-14 depending on your use case. - 2Enter your value
Type the text or digits you want to encode. Each format shows the exact input requirements. - 3Adjust appearance
Set bar width, height, background colour, and line colour to match your label design. - 4Toggle human-readable text
Enable or disable the decoded value displayed beneath the bars. - 5Download your barcode
Click SVG for a lossless vector file or PNG for a high-resolution raster image at 2× resolution.
Related Tools
Password Generator
Generate cryptographically secure passwords with customizable rules.
UUID / GUID Generator
Generate v1, v3, v4, or v5 UUIDs in bulk with multiple format options.
QR & Barcode Reader
Decode QR codes from uploaded images or your camera in real-time.
Lorem Ipsum Generator
Generate classic lorem ipsum placeholder text by words, sentences, or paragraphs.
Frequently Asked Questions
- What barcode formats does this tool support?
- The generator supports CODE128, EAN-13, EAN-8, UPC-A, UPC-E, CODE39, and ITF-14: the most commonly used linear barcode standards across retail, logistics, and publishing.
- What is the difference between CODE128 and EAN-13?
- CODE128 can encode any ASCII text and is widely used in shipping and inventory. EAN-13 encodes exactly 13 digits and is the international standard for retail product identification, often printed on consumer product packaging.
- Do I need to provide the check digit?
- For EAN-13, EAN-8, UPC-A, and ITF-14 the tool automatically calculates and appends the check digit. You supply the data digits only: just enter 12 digits for EAN-13, for example.
- Can I use this barcode generator for commercial products?
- The barcode image itself is free to use. However, if you need a registered GS1 barcode (such as one that can be scanned at retail checkout globally), you must obtain an official GS1 company prefix. This tool is ideal for internal use, prototyping, or testing.
- What resolution is the PNG download?
- The PNG is rendered at 2× pixel density using an HTML Canvas, giving you a crisp, high-resolution image suitable for printing on labels up to a few inches wide.
- Why does CODE39 reject some characters?
- CODE39 has a limited character set: uppercase A–Z, digits 0–9, and the special characters space, hyphen, dollar, slash, plus, and percent. Lowercase letters and most punctuation are not part of the standard.
- Is my barcode data sent to a server?
- No. All barcode generation happens entirely in your browser using the JsBarcode library. Your input never leaves your device.
- Can I adjust the colours for dark-mode labels?
- Yes. Use the Background and Lines colour pickers to set any hex colour. For dark labels, swap the defaults: set the background to black (#000000) and the lines to white (#ffffff).
- What is ITF-14 used for?
- ITF-14 (Interleaved 2-of-5, 14 digits) is used to mark cartons and pallets of products. It encodes a GTIN-14 and is typically printed directly onto corrugated cardboard.
- How do I embed the barcode in a document?
- Download the SVG and insert it into Word, Google Docs, Figma, or any vector-capable tool. The SVG scales perfectly at any size without pixelation.
AlteredIdea vs alternatives
vs command-line tools: No terminal needed. Works in any browser on any device.
vs paid generator tools: Completely free, no account required, no rate limits.
vs library functions: Instant results: no coding needed. Just click and copy.