Barcode Generator
This free barcode generator turns a number or text into a print-ready barcode with the check digit worked out: EAN-13, UPC-A, Code 128, Code 39, EAN-8, ITF-14 or GS1-128. Download SVG or PNG, no sign-up.
Preview
334 × 144 pxFix the value above to see the barcode.
Size, text & colours
Make many at once (ZIP)
Uses the barcode type and settings above.
Why make barcodes here?
There's no watermark, sign-up or download limit, and every barcode is encoded from its specification rather than drawn from whatever you type: check digits are calculated or verified, Code 128 picks the shortest mix of code sets, and the files are exact to the pixel. Everything runs in your browser, so product numbers and asset codes never leave your device.
How to make a barcode
- Choose the type: Code 128 for anything internal, EAN-13 or UPC-A for retail products, ITF-14 for cartons.
- Type the number or text. The check digit is added for you, and anything that can't be encoded is explained.
- Adjust the bar width, height, quiet zone, text and colours. The pixel size and the printed size at your DPI are shown under the preview.
- Download PNG or SVG, copy it, or paste a list into Make many at once for a ZIP.
Which barcode type do you need?
Barcode types (symbologies) differ in what they can hold and where scanners expect them. Pick by where the barcode will be scanned:
| Type | Holds | Used for | Good to know |
|---|---|---|---|
| Code 128 | All 128 ASCII characters | Shipping, inventory, asset tags, tickets | The most compact general barcode; pairs of digits take half the width |
| EAN-13 | 12 digits + check digit | Retail products worldwide; books (ISBN) | Needs a number licensed from GS1 for retail |
| UPC-A | 11 digits + check digit | Retail products in the US and Canada | The same as an EAN-13 that starts with 0 |
| Code 39 | A–Z, 0–9, space, - . $ / + % | Industry, government, ID badges, older systems | Wide; no check character unless you add mod 43 |
| EAN-8 | 7 digits + check digit | Packs too small for an EAN-13 | Assigned individually by GS1 |
| ITF-14 | 13 digits + check digit | Cartons and outer cases | Prints well on corrugated board; bearer bars stop misreads |
| GS1-128 | GS1 element strings: (01) GTIN, (17) expiry, (10) batch … | Pallet and shipping labels | Code 128 with FNC1 and application identifiers |
Need to store a web link, contact or Wi-Fi password instead? That's a job for a 2D code: use the QR code generator, and read either kind back with the QR code scanner.
How check digits work
The last digit of an EAN-13, UPC-A, EAN-8 or ITF-14 is a check digit that lets the scanner catch misreads. Starting from the rightmost data digit, multiply the digits alternately by 3 and 1, add them up, and take what's needed to reach the next multiple of 10. For the UPC-A 03600029145: 5×3 + 4×1 + 1×3 + 9×1 + 2×3 + 0 + 0 + 0 + 6×3 + 3×1 + 0×3 = 58, so the check digit is 2 and the full code is 036000291452.
Code 128 always carries a hidden check symbol (a weighted sum modulo 103) that is never shown in the text. Code 39 has none by default; turning on the mod 43 option adds one more character, which only helps if the scanner is set to check it.
Getting real UPC and EAN numbers
A barcode is only a picture of a number. For products sold through shops and marketplaces, that number has to be a GTIN (Global Trade Item Number) licensed to your company by GS1, the not-for-profit that runs the system in each country. Retailers check new products against the GS1 database, so invented numbers or second-hand ones bought cheaply can be rejected or clash with someone else's product. Once you have your GTINs, enter them here to get print-ready files. For stock you only track yourself, such as bin locations, tools or equipment, any Code 128 values you like will do.
Printing barcodes that scan
- Size. An EAN-13 at 100% is 37.29 × 25.93 mm with bars 0.33 mm wide; GS1 allows 80% to 200% for products scanned at a checkout. Keep the full height: shortened bars are harder to scan at an angle.
- Quiet zones. Leave the white margins. EAN-13 needs 11 bar widths on the left and 7 on the right, UPC-A 9 on each side, and Code 128, Code 39 and ITF-14 at least 10.
- Colour. Dark bars on a white or light background. Red, orange and yellow bars look like empty space to the red light most scanners use, and inverted (light-on-dark) barcodes fail on many scanners.
- Sharp edges. Use whole-pixel bar widths and don't enlarge a small PNG; download the SVG, or a PNG at the size you'll print.
How wide each bar comes out on paper depends on the bar width in pixels and the print resolution:
| Bar width | Printed at 300 dpi | Printed at 600 dpi |
|---|---|---|
| 2 px | 0.17 mm | 0.08 mm |
| 3 px | 0.25 mm | 0.13 mm |
| 4 px | 0.34 mm | 0.17 mm |
| 5 px | 0.42 mm | 0.21 mm |
| 6 px | 0.51 mm | 0.25 mm |
So for an EAN-13 at about 100% size on a 300 dpi printer, choose 4 px bars. If you need the image at an exact size in millimetres, the unit converter turns millimetres into inches, and the image resizer or SVG to PNG converter can make other pixel sizes without blurring.
ISBN barcodes for books
The barcode on a book is an EAN-13 made from its ISBN-13, which starts with 978 or 979. If you only have an older 10-digit ISBN, type it in the EAN-13 box with or without hyphens (for example 0-306-40615-2): it's checked and converted to its ISBN-13 (9780306406157) automatically. Many US booksellers also want a small 5-digit price add-on to the right of the main barcode; this tool doesn't draw add-ons yet.
Code 128 and Code 39 in practice
Code 128 is the default here because it suits almost everything that isn't a retail product. It has three code sets, and switching between them mid-barcode keeps it short: ABC123456789 is encoded as three letters in set B, then the digits in pairs in set C, which is narrower than encoding every digit on its own. Code 39 is older and wider for the same text (about one and a half times for letters and three times for long numbers), but some industrial, government and badge systems require it. Both can hold the dashes and slashes of part numbers and asset tags. If you need a hidden tab or Enter key in a Code 128 barcode (for scanners that type into forms), open Size, text & colours, tick Read escapes and write \t or \n.
Frequently asked questions
How do I make a barcode for free?
Pick the barcode type, type the number or text, and the barcode appears as you type. Adjust the bar width, height and text if you like, then download it as PNG or SVG. It's free with no sign-up and no watermark, and the barcode is made in your browser, so nothing you type is uploaded.
Which barcode type should I use?
For products sold in shops, use UPC-A in the US and Canada or EAN-13 elsewhere, with a number from GS1. Books use EAN-13 made from the ISBN. Outer cartons use ITF-14 and logistics labels GS1-128. For anything internal, such as inventory, asset tags, tickets or library cards, Code 128 is the best choice: it takes letters and numbers and is compact. Code 39 is mainly for older systems that require it.
Can I make my own UPC or EAN barcode to sell products?
You can make the barcode image for any number here, but a barcode for retail must carry a GTIN that belongs to your company. GTINs are licensed by GS1, the organisation that runs the system, and big retailers and marketplaces check them against the GS1 database. A made-up number can clash with another product. For items that never leave your own business, a Code 128 barcode with your own codes needs no registration.
What is the difference between UPC and EAN barcodes?
UPC-A has 12 digits and comes from the US and Canada; EAN-13 has 13 digits and is used everywhere else. They are the same system: a UPC-A is an EAN-13 that starts with 0, so 036000291452 and 0036000291452 are the same product. Retail scanners read both, and North American retailers have been expected to accept EAN-13 since 2005.
How is the EAN-13 check digit calculated?
Multiply the first 12 digits alternately by 1 and 3 (starting with 1), add the results, and take the amount needed to reach the next multiple of 10. For 400638133393 the products add up to 89, so the check digit is 1 and the full number is 4006381333931. UPC-A, EAN-8 and ITF-14 use the same rule counted from the right. The tool adds the check digit for you, or tells you the right one if the digit you typed is wrong.
What size should a printed barcode be?
An EAN-13 at its standard 100% size is 37.29 mm wide and 25.93 mm tall, with bars 0.33 mm wide, and GS1 allows 80% to 200% of that for products at a checkout. Don't cut the height down or crop the white margins. For Code 128 labels, bars of about 0.25 mm or wider suit most scanners; GS1-128 on shipping cartons needs at least 0.495 mm. The tool shows the printed size at the DPI you choose: at 300 dpi, 4 px bars are about 0.34 mm.
Should I download the barcode as PNG or SVG?
SVG is a vector file that stays sharp at any size, so it's the best choice for print, packaging and design programs such as Illustrator, Inkscape, Figma or Canva. PNG is a regular image for documents, label software, spreadsheets and websites; the DPI you choose is saved in the file so it prints at the size shown. When you resize either, scale width and height together and never blur or stretch the bars.
What characters can Code 128 and Code 39 encode?
Code 128 encodes all 128 ASCII characters: capitals, lowercase letters, digits, punctuation and control codes. It switches between code set A (capitals and control codes), B (capitals, lowercase and punctuation) and C (pairs of digits, which halves the width of long numbers), and this tool picks the shortest combination automatically. Code 39 has 43 characters: A–Z, 0–9, space and - . $ / + %. Its Full ASCII mode sends other characters as pairs, which the scanner must be set to decode.
Why won't my barcode scan?
The usual causes are bars printed too thin for the scanner, white margins (quiet zones) that were cropped, too little contrast, red or yellow bars (scanners use red light, so red ink looks blank), a barcode stretched in one direction, a low-resolution PNG enlarged until the edges blur, or a wrong check digit. Use black bars on white, keep the quiet zones, download a bigger PNG or the SVG, and test with your phone before printing a batch.
Do barcodes expire or need to be registered?
No. A barcode is just a number or text drawn as bars, so the image keeps working for as long as you use it, and nobody can switch it off. Registration only matters for retail GTINs, which come from GS1 with a membership. Internal barcodes for stock, assets or tickets need no registration at all.
Can I make many barcodes at once?
Yes. Open Make many at once, paste a list with one value per line (up to 500), and download a ZIP of SVG or PNG files named after each value, all with the current type and settings. Lines that can't be encoded, for example a UPC with a wrong check digit, are listed with the reason and left out.
Is anything I type uploaded?
No. Barcodes are encoded and drawn entirely in your browser, and the downloads are created on your device. Only your settings and the last values you entered are remembered in this browser, so the tool opens the way you left it.
Related tools
More free, private, browser-based utilities — no upload, no sign-up.