Barcode Generator
Generate EAN-13, UPC-A, Code 128, Code 39, ITF-14, and more barcodes. Customize colors, size, and text. Download as SVG or PNG — free, no sign-up needed.
Preview updates automatically. Click the button above to download.
Related Tools
About Barcode Generator
How It Works
- Select a barcode type (EAN-13, UPC-A, Code 128, etc.)
- Enter the value you want to encode in the barcode
- Customize bar width, height, colors, and text display
- Preview updates in real time — download as SVG or PNG when ready
Common Use Cases
- Product labels and retail inventory management
- ISBN codes for books and publications
- Shipping and logistics tracking labels
- Library book and asset management
- Event tickets and access control
Frequently Asked Questions
What barcode formats does this tool support?
This tool supports the most widely used barcode formats: Code 128 (auto mode for any text), EAN-13 (standard retail), EAN-8 (compact retail), UPC-A (North American retail), UPC-E (compact UPC), Code 39 (alphanumeric, industrial), ITF-14 (logistics/shipping cases), MSI Plessey (inventory), Pharmacode (pharmaceutical packaging), and Codabar (blood banks, libraries).
What value should I enter for EAN-13?
EAN-13 requires exactly 13 digits. The last digit is a check digit automatically calculated from the first 12. You can enter all 13 digits (the tool validates the check digit), or enter 12 digits and the library will auto-calculate the 13th. Country codes are embedded in the first 2-3 digits — for example, 590 is Poland, 978/979 are ISBN book barcodes.
What is Code 128 and when should I use it?
Code 128 is the most versatile linear barcode format, supporting all 128 ASCII characters including letters, numbers, and special characters. It is compact, highly accurate, and widely supported. Use Code 128 for shipping labels, internal asset tracking, serial numbers, or any application that does not require a specific industry-standard format like EAN or UPC.
How do I use the generated barcode in my product or application?
Download the barcode as SVG for web use, design tools (Figma, Illustrator), or print — SVG scales without quality loss. Use PNG for situations requiring raster images such as Word documents, email templates, or systems that do not support SVG. For product labeling, print at minimum 100% scale to ensure scanability by retail scanners.
Why is my EAN-13 or UPC-A barcode showing an error?
EAN-13 requires exactly 12 or 13 numeric digits; UPC-A requires exactly 11 or 12 numeric digits. Any letters, spaces, or incorrect digit counts will cause a validation error. Also verify that the check digit (last digit) is correct if you are entering all 13/12 digits manually. The tool generates a default valid value when you switch formats to help you understand the expected input.
What is bar width and how does it affect the barcode?
Bar width controls the width of the narrowest bar in the barcode, measured in pixels. A value of 1–2 produces a compact barcode suitable for digital use or tight labels. A value of 3–5 produces wider, bolder bars recommended for physical printing, especially on low-resolution printers or for scanning from a distance. The overall barcode width scales proportionally.
Can I change the colors of a barcode and still scan it?
Yes, but color contrast is critical. The scanner reads the difference between bars and spaces. Use dark colors (black, dark navy, dark brown) for bars and light/white colors for backgrounds. Never use a light bar color on a dark background — most scanners cannot read inverted barcodes. Avoid low-contrast combinations such as gray bars on white; always test with your scanner before printing.
What is an ITF-14 barcode and where is it used?
ITF-14 (Interleaved 2 of 5, 14 digits) is used on outer cartons and shipping containers in the retail supply chain. It encodes a GTIN-14, typically formed by prepending a packaging indicator digit to the base EAN-13 product code. It requires exactly 14 numeric digits. Retailers and logistics providers use it to track case and pallet quantities.
Is this barcode generator free and private?
Yes — completely free and fully private. All barcode generation runs directly in your browser using the JsBarcode library; no data is sent to any server. You can generate barcodes for sensitive inventory codes, internal SKUs, or proprietary serial numbers without any data leaving your device.
How do I generate an ISBN barcode for a book?
ISBN-13 barcodes are EAN-13 barcodes. Select "EAN-13" as the barcode type and enter your 13-digit ISBN (starting with 978 or 979). The barcode generated is the standard Bookland EAN barcode used on book covers worldwide. Make sure to include all 13 digits including the check digit, or enter 12 digits and let the tool compute the check digit automatically.
What minimum size should I print a barcode at?
For retail scanning, EAN-13 and UPC-A should be printed at a minimum height of 22.85 mm (about 0.9 inches) and a minimum width of 37.29 mm (about 1.47 inches) at 100% scale. Smaller sizes risk scan failures. For internal or warehouse use with modern laser scanners, somewhat smaller sizes are acceptable, but always test before mass printing. SVG export ensures lossless scaling.