Barcode Generator
A barcode generator turns text or digits into a crisp barcode you can print and scan. Pick from seven formats (CODE128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14, or QR), auto-fill GS1 check digits, and download PNG or vector SVG with zero signup and zero watermark.
Your barcode
Letters, digits, and signs. The go-to code for parcels, stock labels, and IDs.
SVG stays crisp at any print size. Test one printed label with your scanner before printing a full batch.
Your details stay in your browser. Nothing you type is sent to a server, and no account is needed.
Live preview
Your barcode (CODE128)
MAKEDOCFREE-001

What a barcode is
A barcode is a set of dark bars and light gaps that a scanner reads as letters or digits. The bars hold the same text you typed, in a form a scanner can read fast. Shops, warehouses, and offices use barcodes to track goods, boxes, files, and stock without typing long numbers by hand. A printed barcode works with any scanner that reads its type, and a phone camera can read QR codes with no extra app.
Which barcode type to pick
Pick EAN-13 for goods you sell in a shop, since shops expect it. Pick CODE128 when you need letters and digits on a parcel or a stock label. Pick Code 39 for plain stock and ID labels. Pick QR when the code must hold a web link or more words than bars can hold.
| Type | What it holds | Used for |
|---|---|---|
| CODE128 | Letters, digits, and signs | Parcels, stock labels, IDs |
| EAN-13 | 13 digits with a check digit | Goods sold in shops |
| Code 39 | Capital letters, digits, some signs | Stock and ID labels |
| QR code | Words, links, lots of text | Posters, cards, menus, web links |
What the EAN-13 check digit does
The last digit of an EAN-13 code is a check digit. It is worked out from the first 12 digits, and it catches most typos. If one digit is typed wrong, the check sum breaks, and a scanner turns the code down. The tool on this page checks the digit before it draws the code, and it tells you the right digit when yours is wrong. A right check digit does not prove the code is yours or that it is listed with GS1. It only proves the digits add up. You can check the same hand maths on the GS1 page that shows how to work out the check digit by hand.
Worked example: the EAN-13 check digit for 5901234123457
Take the code 5901234123457. The first 12 digits are 590123412345, and the last digit, 7, is the check digit. Here is the check, step by step. Odd-place digits count once, even-place digits count three times.
| Place | Digit | Times | Result |
|---|---|---|---|
| 1 | 5 | x 1 | 5 |
| 2 | 9 | x 3 | 27 |
| 3 | 0 | x 1 | 0 |
| 4 | 1 | x 3 | 3 |
| 5 | 2 | x 1 | 2 |
| 6 | 3 | x 3 | 9 |
| 7 | 4 | x 1 | 4 |
| 8 | 1 | x 3 | 3 |
| 9 | 2 | x 1 | 2 |
| 10 | 3 | x 3 | 9 |
| 11 | 4 | x 1 | 4 |
| 12 | 5 | x 3 | 15 |
| Total | 83 | ||
- Add the odd-place digits times 1. 5 + 0 + 2 + 4 + 2 + 4 = 17.
- Add the even-place digits times 3. 27 + 3 + 9 + 3 + 9 + 15 = 66.
- Add both sums. 17 + 66 = 83.
- Find the next multiple of 10. 90 - 83 = 7. The check digit is 7, so 5901234123457 passes the check. Try it in the tool above: pick EAN-13 and type the code.
How to use the barcode generator
- Pick the barcode type. The note under the list says what each type takes.
- Type the text or number for the code.
- Pick a size. Big codes scan from farther off, small codes fit tight labels.
- Check the live preview. If the text is wrong, the tool says so in plain words instead of drawing a broken code.
- Hit Download PNG for one code, or Print barcode sheet for 6 copies.
Common barcode mistakes to avoid
- EAN-13 with 12 digits, or 14. It needs 13.
- A wrong check digit at the end of an EAN-13 code.
- Small letters in a Code 39 code. The tool raises them to capitals as you type.
- A code printed too small for the scanner to read.
- Light grey bars on a white back, or a code printed over a dark patch. Black bars on white scan best.
- A code saved as a small, blurry picture. The PNG from this tool is sharp at print size.
How to print barcodes that scan
Print black bars on plain white paper or labels, with no shine. Leave a clear white edge around the code. Print at 100% size, with no shrink to fit. A code that is too small fails first. Test one print with the same scanner you will use at the till or in the store room, from the same distance you will scan at. If it reads on the first pass, print the rest. If it does not, go one size up before you print more.
Common questions about barcodes
Is this barcode generator free?
Yes. You can make as many barcodes as you like, and each one downloads as a PNG or vector SVG with no fee and no watermark. There is no account to make and no card to add. The tool runs in your browser, so every code stays on your own device.
What is the EAN-13 check digit?
The check digit is the last digit of an EAN code, and it is worked out from the first 12 digits. Odd-place digits count once, even-place digits count three times, and the check digit is what brings the total up to the next multiple of 10. It catches typing slips, and scanners turn down a code with the wrong digit.
Which barcode type should I use for a shop product?
Use EAN-13 for goods you sell in a shop, since shop tills and scanners expect 13 digits with a check digit. If you sell on your own site or at a market stall, CODE128 works well for parcels and stock labels. A shop code from GS1 is the safe pick when the goods will sit on a store shelf.
Why does my barcode not scan?
The most common cause is size: a code printed too small fails first. Low contrast is next, such as grey bars or a code over a dark patch. A wrong check digit on EAN-13 also stops a scan. Print black on white at full size, leave a clear edge, and test one copy before you print more.
Can I print many copies of one barcode?
Yes. Pick 6, 12, or 24 copies per sheet so you can cut labels for boxes, shelves, or stock items. Click Print barcode sheet and print at 100% size with no shrink to fit. Test one printed copy with your scanner first, then run the rest of your batch.
Make your barcode now
You now know which barcode type fits your case, how the EAN-13 check digit works, and how to print a code that scans. Make your code in the tool above, test one print with your scanner, and print the rest. If the code goes on a parcel for a client, the free invoice generator makes the bill for the same job. When the client pays, send a free receipt to prove it was paid, and if the goods go out on rent, the rent agreement generator can help with the paper work. For more help, read the free document guides.
Last updated: December 6, 2026.