Barcode Generator
Generate Code 128, EAN-13, UPC-A, Code 39 and ITF barcodes as crisp SVG or PNG.
Any ASCII text. Runs of digits are packed two per symbol automatically.
No barcode yet
Enter the data to encode. The barcode redraws as you type, and any problem with the input is explained below.
Runs entirely in your browser. Your data isn't uploaded — this page makes no network request with anything you type or upload, which you can verify in your browser's network tab. How this works.
What is the Barcode Generator?
A barcode generator turns a product number, SKU or serial into the pattern of bars a scanner reads. Choose the symbology, type the data, and a correctly encoded barcode is drawn as you type — with the check digit calculated for you, the right quiet zones on either side, and the human-readable digits printed underneath in the groups you see on real labels.
It supports the formats that cover almost every everyday use: EAN-13, UPC-A and EAN-8 for retail products, ITF-14 for outer cartons, Code 128 for shipping labels, SKUs and anything with letters, Code 39 for ID badges and industrial parts, and plain Interleaved 2 of 5. Download the result as an SVG, which stays sharp at any print size, or as a PNG at up to eight times the on-screen size. Nothing is uploaded; the barcode is built in your browser.
How to use it
- Pick the barcode type. Use EAN-13 or UPC-A for retail, ITF-14 for cartons and Code 128 for anything else.
- Enter the data. For EAN, UPC and ITF-14 you can leave off the check digit and it is calculated.
- Adjust bar height, bar width, quiet zone, text size and colours if you need to.
- Download an SVG for print and design work, or a PNG for documents and the web.
- Test-scan the printed barcode before you print a large run.
Example
An EAN-13 number with its check digit calculated.
400638133393
Encoded: 4006381333931 Check digit: 1 (calculated) Printed as: 4 006381 333931 Width: 95 modules plus 11 + 7 quiet zone
Features
- EAN-13, UPC-A, EAN-8, ITF-14, Code 128, Code 39 and Interleaved 2 of 5
- Check digits calculated, or verified if you type them
- Code 128 switches between code sets automatically for the shortest barcode
- Optional mod 43 check for Code 39 and mod 10 for Interleaved 2 of 5
- Retail-style digit grouping and extended guard bars on EAN and UPC
- Bearer bars for ITF-14 cartons
- Pixel-exact SVG and PNG downloads, with warnings for narrow quiet zones and low contrast
- Free, no watermark, nothing uploaded