Barcode Generator
Generate a barcode from text or numbers in standard formats like EAN-13, EAN-8, UPC, and CODE39, rendered instantly in your browser with no data sent to a server. Create scannable barcodes for inventory tracking, library catalogs, or product packaging, completely free.
Usage examples
Quickly generating a barcode for inventory
Create a CODE128 barcode from a product code for inventory tags or price labels, ready to print.
Previewing an EAN-13 product barcode
Check that a 13-digit EAN-13 barcode intended for packaging renders in a correctly scannable form before finalizing the design.
Labeling library or office assets with CODE39
Generate CODE39 labels, which support letters and numbers together, for your own internal asset tracking numbers.
Making a CODE39 barcode for a library catalog number
Encode an alphanumeric catalog ID with CODE39 to print a label for a book or media item in a small collection.
Generating an EAN-8 barcode for a small package
Use the shorter EAN-8 format to fit a scannable barcode onto compact packaging where a full EAN-13 wouldn't fit.
Frequently asked questions
Is what I enter sent to a server?
No. The barcode is generated entirely in your browser, and what you enter is never sent to a server.
Can I enter any number for EAN-13 or UPC?
No. EAN-13 requires 12-13 digits, and UPC requires 11-12 digits. If the digit count doesn't match, an error message is shown.
Will this barcode actually scan at a real store?
It follows the standard specification for each format (CODE128, EAN13, EAN8, UPC, CODE39), so most barcode scanners will read it. For real retail use, though, you need an officially issued product code.
What format can I download the barcode in?
You can download it as a PNG image file.
What's the difference between the barcode formats?
CODE128 encodes any ASCII text or numbers and is common in shipping and inventory. EAN-13/EAN-8 and UPC are fixed-length numeric formats used on retail packaging worldwide. CODE39 supports uppercase letters, numbers, and a few symbols, and is popular for internal asset or ID tracking.
Why did I get an error even though my input looks like numbers?
Each format has strict rules — for example EAN-13 needs exactly 12 or 13 digits, and UPC needs 11 or 12. Extra spaces, letters, or the wrong digit count will trigger the validation error, so double-check the exact character count for your chosen format.
Can I resize the barcode image before printing?
The downloaded PNG is generated at a fixed size suited for typical labels. If you need a different size for printing, resize the PNG afterward in an image editor or print dialog — scaling up moderately usually keeps it scannable as long as the bars stay sharp.