Enter any value, pick a format, and instantly generate a barcode you can download as PNG. Supports CODE128, EAN-13, EAN-8, UPC-A, and CODE39.
Your barcode will appear here after you click Generate
How to Use
Type the value you want to encode in the input box (numbers, letters, or both depending on the format).
Select the barcode format β CODE128 works for almost everything; use EAN-13 for retail products.
Adjust bar width and height using the sliders to match your printing requirements.
Click Generate Barcode, then Download PNG to save it.
Frequently Asked Questions
What is a barcode?
A barcode is a machine-readable visual representation of data β typically numbers or text β encoded as parallel bars of varying widths and spacings. Barcode scanners read the pattern of light and dark bars to decode the information instantly. They are used everywhere from supermarket products to shipping labels, library books, and boarding passes.
What is the difference between CODE128, EAN-13, EAN-8, UPC-A, and CODE39?
CODE128 is the most versatile β it supports all ASCII characters and has no length limit, making it great for shipping labels, internal IDs, and general use. EAN-13 is the global standard for retail products (13 digits); the last digit is a checksum. EAN-8 is a shorter 8-digit version for small packages where space is limited. UPC-A is the North American retail standard (12 digits), essentially a subset of EAN-13. CODE39 is an older format used in automotive and defence industries β it supports uppercase letters and numbers but is less space-efficient.
What are barcodes used for?
Barcodes are used in retail (product pricing and inventory), logistics (tracking parcels and shipping labels), healthcare (medication management and patient wristbands), libraries (book tracking), event ticketing, warehouse management, and manufacturing. Essentially any process that requires fast, accurate data entry benefits from barcodes.
Does my data get sent to any server?
No. This barcode generator runs entirely in your browser using the JsBarcode JavaScript library. Your data never leaves your device and nothing is uploaded to any server. It is completely private.
Why does EAN-13 / EAN-8 / UPC-A show an error for my value?
EAN-13 requires exactly 13 digits, EAN-8 requires exactly 8 digits, and UPC-A requires exactly 12 digits. Also, the last digit of each is a checksum calculated from the other digits β if it does not match, the barcode is invalid. Use CODE128 if you need a flexible format that accepts any text or number without strict length rules.