Barcode Generator
Generate barcodes — CODE128, EAN-13, EAN-8, UPC, CODE39, and more.
How the Barcode Generator works
The barcode generator creates barcodes in all major 1D and 2D formats directly in your browser — no server upload required. Select your format, enter the data, and download a high-resolution SVG or PNG ready for print, web, or label software integration. Supports Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF, QR Code, and Data Matrix with configurable size and quiet zone settings.
Code 128 and Code 39 for logistics
Code 128 is the most widely used 1D barcode in logistics and shipping. It encodes the full ASCII character set with high data density — a 10-character string fits in roughly 2 cm at standard print resolution. Code 39 encodes only uppercase letters, digits, and a handful of symbols, but is simpler to implement and supported by virtually every barcode reader. Both are used on shipping labels, warehouse shelves, and internal inventory systems.
EAN-13 and UPC-A for retail
EAN-13 is the global standard for retail product identification, encoding 12 digits plus a check digit. UPC-A is the North American equivalent (12 digits). These are the barcodes printed on consumer product packaging and scanned at supermarket checkouts. The check digit is calculated automatically by the generator — you enter the 12-digit product code (GS1 prefix + company number + item number) and the 13th digit is computed and appended.
Quiet zone requirements
Every barcode requires a mandatory blank area (quiet zone) on both sides of the bars to ensure reliable scanning. Code 128 requires a minimum quiet zone of 10× the narrow bar width (typically 2.5 mm at standard size). EAN-13 requires a 3.63 mm quiet zone on each side. The generator adds the correct quiet zone automatically and shows a warning if the chosen output size would make the quiet zone too narrow for reliable scanning.
SVG vs PNG output for different use cases
SVG (scalable vector graphics) output is ideal for print materials, web embedding, and label templates — it scales to any size without pixelation and produces the smallest file size. PNG output at specified DPI is needed for label printing software, Word documents, and applications that do not support SVG. For thermal label printers (Zebra, Dymo), SVG-to-PDF conversion via a print driver preserves vector quality at all label sizes.
Frequently asked questions
- Which barcode format should I use?
- CODE128 is the most versatile — it encodes any ASCII character and is widely used for shipping labels and inventory. EAN-13 is the international standard for retail products (the barcode on packaged goods). EAN-8 is a shorter version for small items. UPC is the US retail standard.
- What is CODE128?
- CODE128 is a high-density linear barcode that can encode all 128 ASCII characters. It is widely used for shipping labels (FedEx, UPS, DHL), inventory management, and internal tracking systems. It h fixed length limit.
- What is EAN-13?
- EAN-13 (European Article Number) is the international retail barcode standard used on products sold in stores. It consists of 13 digits: a country code, a manufacturer code, a product code, and a check digit. If you're selling retail products, you need a registered EAN/GTIN from GS1.
- Can I use this barcode commercially?
- You can generate and use CODE128 and CODE39 barcodes for internal purposes (inventory, shipping) without registration. For retail product barcodes (EAN-13, UPC), you need officially assigned numbers from GS1 — you cannot assign your own EAN-13 numbers.
Related tools
- JSON Formatter, Validator & Repair Tool
Format, minify, validate, and repair JSON instantly in your browser. Sort keys alphabetically, auto-format on paste, download as file, escape/unescape strings — free, no sign-up, 100% client-side.
- QR Code Generator
Generate QR codes for URLs, text, Wi-Fi, and more. Download as PNG.
- Password Generator
Generate strong, random passwords with custom length and character sets.
- Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text.
- URL Encoder / Decoder
Encode or decode URLs and query strings with percent-encoding.