Barcode Generator
Generate barcodes in CODE 128, CODE 39, EAN-13, EAN-8, UPC-A, ITF-14, and more. Customize colors and size, then download as PNG or SVG.
100% In-Browser Processing. Your files never leave your device.
Options
Any ASCII characters — most versatile format
Tips
- CODE 128 is the best general-purpose format — it supports all printable ASCII characters.
- EAN-13 and UPC-A are used for retail products. The check digit is computed automatically.
- Use SVG for print and PNG for digital use (web, email, documents).
- All generation happens locally — your data never leaves the browser.
What is Barcode Generator?
A barcode is a machine-readable representation of data in a visual, linear format. Different barcode symbologies (formats) are used in different industries: CODE 128 is the most versatile and widely used in logistics and shipping; EAN-13 and UPC-A are used on retail product packaging worldwide; ITF-14 is used on shipping cartons; CODE 39 is common in industrial and government applications. This tool generates 1D barcodes entirely in your browser and lets you download them as PNG or SVG.
How to Use Barcode Generator
- Enter the value you want to encode in the input field.
- Select the barcode format that matches your use case (CODE 128 is a safe default for most purposes).
- Adjust the bar width and height to suit your printing or display requirements.
- Toggle the text display on or off depending on whether you want the human-readable value shown below the barcode.
- Optionally customise the bar and background colours.
- Download as PNG for digital use or SVG for scalable print output.
Common Use Cases
- Generating a CODE 128 barcode for an internal inventory or asset tracking system.
- Creating an EAN-13 or UPC-A barcode for a retail product.
- Producing an ITF-14 barcode for outer carton / shipping packaging.
- Generating CODE 39 barcodes for ID cards, badges, or government documents.
- Creating barcodes for event tickets, library labels, or healthcare wristbands.
Why Use an In-Browser Tool?
Barcodes are generated entirely in your browser using a JavaScript library. The values you encode — which might be internal product codes, serial numbers, or inventory identifiers — are never sent to any server. Download is instant and the tool is completely free.
Frequently Asked Questions
Which barcode format should I use?
CODE 128 is the best default — it encodes all printable ASCII characters and is accepted almost everywhere. Use EAN-13 or UPC-A for retail products, ITF-14 for shipping cartons, and CODE 39 when legacy systems require it.
Why does EAN-13 require exactly 12 digits?
EAN-13 barcodes are 13 digits long, but the 13th digit is a check digit computed automatically from the first 12. You only need to enter the 12 data digits.
Should I download PNG or SVG?
SVG is best for print because it scales to any size without pixelation — ideal for labels, packaging, and large-format printing. PNG is better for digital use such as web pages, PDFs, or email.
Can I use a white barcode on a dark background?
Technically yes — use the color pickers to set a light bar color and a dark background. However, most barcode scanners are optimised for dark bars on a light background. Inverted barcodes may not scan reliably on all hardware.