Any text or numbers
Your barcode will appear here.
Barcode Generator — Free & Instant
Create Code 128, EAN-13, UPC-A and more from any text or number, and download as a crisp PNG.
Barcode types explained
- Code 128: any text, numbers and symbols. The best general-purpose choice for shipping labels, inventory, library cards and tickets.
- Code 39: capital letters, digits and a few symbols. Older and wider than Code 128, but still required by some industrial, defence and healthcare systems.
- EAN-13: the 13-digit retail barcode used on products in most of the world.
- EAN-8: a short 8-digit version for very small packages.
- UPC-A: the 12-digit retail barcode used in the USA and Canada.
- ISBN-13: the book number, encoded as an EAN-13 starting with 978 or 979. Hyphens are removed.
How it works
The text you type is sent to our server, which uses the open-source python-barcode library to calculate the bar pattern and draw it as a PNG image with the readable text underneath and a white quiet zone on both sides. For the fixed-length retail types it checks the length and computes the check digit; if the input cannot be encoded, you get a message saying so instead of a broken barcode.
Worked example
A small shop labelling shelves types SHELF-B12 and picks Code 128. The barcode prints with SHELF-B12 underneath, and any USB or phone scanner reads it back as exactly that text. A publisher with ISBN 978-3-16-148410-0 picks ISBN-13 and gets a barcode reading 9783161484100, ready for the back cover.
Printing barcodes that scan
- Test before printing many. Scan the downloaded PNG on screen with a phone scanner app.
- Keep contrast high. Black bars on white paper scan best. Avoid red bars, which many laser scanners cannot see.
- Do not stretch it. Resize with the aspect ratio locked; squashing the bars sideways breaks the code.
- Mind the margins. Leave blank space at the left and right; text or a border touching the bars stops scanners.
- For codes that hold a web link or Wi-Fi details, a QR code is a better fit: try the URL QR Code Generator.
How to Use Generate a Barcode
Type or paste the text or number you want to encode.
Choose the barcode type: Code 128, Code 39, EAN-13, EAN-8, UPC-A or ISBN-13. The hint under each type shows what it accepts.
Click Generate. Our server draws the barcode with the human-readable text printed under it.
Download the PNG and check it with a phone barcode scanner before you print a batch.
Frequently Asked Questions
Which barcode type should I use?
For your own labels, stock codes, tickets or asset tags, use Code 128: it accepts any letters, numbers and symbols and is compact. Use EAN-13 (most of the world) or UPC-A (USA and Canada) only for retail products, with a number you were assigned. Use ISBN-13 for books.
Can I just make up an EAN or UPC number for a product?
You can make a barcode for any valid-looking number, but shops and marketplaces only accept numbers registered to your company through GS1. A made-up number can belong to someone else's product. Buy numbers from your national GS1 office if you sell through retailers.
What happens to the check digit?
EAN-13, EAN-8, UPC-A and ISBN-13 end with a check digit that is calculated from the other digits. If you enter 12 digits for EAN-13 (or 11 for UPC-A, 7 for EAN-8), the tool adds it. If you enter the full number and the last digit is wrong, it is silently replaced by the correct one, so compare the printed number with yours.
Why did my Code 39 text change?
Code 39 only supports capital letters, digits and a few symbols (space - . $ / + %). Lower-case letters are turned into capitals, and the tool adds a check character at the end of the printed text, which scanners use to catch misreads.
How big should I print it?
Print at 100% scale or larger, never smaller, and keep the white margins (quiet zone) on both sides: scanners need them. Retail EAN/UPC codes are normally printed about 37 mm wide; Code 128 grows wider the more characters you encode, so keep the text short.
Does it make QR codes?
No, this page makes one-dimensional barcodes. For QR codes, use the URL QR Code Generator, which runs entirely in your browser.
What happens to the text I enter?
It is sent over an encrypted connection to our server, which draws the barcode and returns the image. We do not keep the text. Input is limited to 2,048 characters.