Free online barcode generator. Create Code 128, EAN-13, EAN-8, UPC-A, Code 39, and ITF barcodes instantly. Download as SVG or PNG — no signup, 100% browser-based.
About Barcode Generator
Barcode Generator is a free, browser-based tool that creates barcodes in all major linear symbologies — Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI Plessey, and Pharmacode. Barcodes are rendered as crisp, scalable SVG graphics using JsBarcode, and can be downloaded as SVG (for professional printing at any size) or high-resolution PNG (for digital use and screen display). All processing happens in your browser — no data is transmitted to any server, no account is required, and there are no usage limits.
How to Generate a Barcode
- Select a format — Choose the barcode symbology that matches your use case. Code 128 is the most versatile (alphanumeric). EAN-13 and UPC-A are required for retail products. Code 39 is common in logistics and government applications.
- Enter your data — Type or paste the data to encode. Each format has specific data requirements: EAN-13 accepts only 12–13 digits, Code 128 accepts full ASCII, Code 39 accepts uppercase letters and digits. Invalid data is flagged instantly.
- Customize appearance — Adjust bar width, height, margins, colors, and text display. For printing, use maximum bar height and default width. For small labels, reduce height and margins.
- Preview in real time — The barcode preview updates instantly as you change settings. The Valid/Invalid badge confirms your data meets the format's requirements.
- Download — Click "Download SVG" for vector output (recommended for print) or "Download PNG" for raster output at 3× display resolution. SVG barcodes scale to any size without pixelation.
Which Barcode Format Should You Use?
Code 128 — The most versatile linear barcode. Encodes the full ASCII character set (letters, numbers, symbols). Use for shipping labels, asset tracking, inventory management, and any application that needs to encode alphanumeric data. Supported by virtually all barcode scanners.
EAN-13 / UPC-A — Required for retail products sold through major retailers. EAN-13 is the worldwide standard (13 digits); UPC-A is the North American variant (12 digits). You need a GS1 company prefix for official product identification. For internal use, any valid digit string works.
Code 39 — Widely used in government, military (LOGMARS), automotive (AIAG), and healthcare. Supports uppercase A–Z, digits 0–9, and seven special characters. Self-checking (single character errors are always detected).
ITF-14 — Designed for shipping cartons and outer packaging. Encodes 14 digits (GTIN-14). The thick bars and wide tolerances make it readable even through shrink wrap on rough corrugated cardboard.
Common Use Cases
- Creating product barcodes (EAN-13/UPC-A) for retail packaging and price labels
- Generating shipping labels with Code 128 barcodes for logistics and fulfillment
- Printing asset tags and inventory labels for warehouse management systems
- Creating event tickets and admission passes with scannable barcodes
- Generating library book labels and document tracking barcodes
- Creating barcode labels for pharmaceutical packaging compliance (Pharmacode)
- Prototyping barcode integrations for POS systems and scanner applications