Results
Free Barcode Generator - Create Custom Barcodes Online (CODE128, EAN-13, QR & More)
Generate professional barcodes in 10+ industry-standard formats. Customize dimensions, colors, and text. Download as SVG or PNG - free, browser-based, no sign-up required.
What Is a Barcode Generator?
A barcode generator is a tool that encodes alphanumeric data into a visual pattern of parallel bars and spaces that can be read by a barcode scanner or smartphone camera. Barcodes are used across every industry - retail point-of-sale systems, warehouse inventory management, logistics and shipping labels, library book tracking, healthcare patient identification, and manufacturing quality control.
Our free online barcode generator supports 10 industry-standard barcode formats, lets you customize every visual element (bar width, height, color, font, margin), and exports high-quality SVG or PNG files ready for print and digital use - all in your browser with no data sent to any server.
Supported Barcode Formats - Complete Reference
CODE128
The most versatile and widely-used 1D barcode format. Supports the full ASCII character set - letters, numbers, and special characters. High data density and self-checking. Used in shipping labels (FedEx, UPS), warehouse management, and general industrial applications. The recommended default for any custom barcode.
Industries: Logistics, shipping, warehousing, general business
CODE39
An older alphanumeric barcode supporting uppercase A–Z, digits 0–9, and a limited set of special characters (space, $, %, +, -, ., /). Lower data density than CODE128 but widely supported by legacy scanners. Used in automotive, defense, and healthcare industries.
Industries: Automotive, defense, healthcare, legacy systems
EAN-13
European Article Number - a 13-digit numeric barcode that is the global standard for retail product identification. Includes a 2–3 digit country code, 4–5 digit manufacturer code, product code, and check digit. Every retail product sold outside North America uses EAN-13.
Industries: International retail products, grocery stores, supermarkets
EAN-8
A compact 8-digit version of EAN-13 for small products where a full-size barcode wouldn't fit - candy bars, small cosmetics, matchbooks. Must be assigned by GS1.
Industries: Small retail products with limited label space
UPC-A
Universal Product Code - 12-digit barcode used as the retail product standard in the United States and Canada. Includes manufacturer and product identifiers. Familiar as the barcode on virtually every product sold in North American stores.
Industries: North American retail, grocery, consumer goods
UPC-E
A compressed 6-digit version of UPC-A for small packages. Suppresses leading zeros to fit in a smaller space. Must be derived from a valid UPC-A code.
Industries: Small US/Canadian retail products
ITF / ITF-14
Interleaved 2 of 5 - encodes pairs of digits in alternating bars and spaces for high efficiency. ITF-14 is the 14-digit version used on shipping cartons, pallets, and outer packaging in global supply chains. Highly resistant to printing imperfections.
Industries: Outer shipping cartons, pallets, supply chain
MSI
MSI Plessey - a numeric-only barcode typically used in retail shelf labels, bin locations, and inventory management systems. Supports multiple check digit algorithms (Mod 10, Mod 11, Mod 1010).
Industries: Retail shelf labels, inventory bin locations
Codabar
One of the oldest barcode formats, used in blood banks, libraries (Monarch barcodes), photo lab envelopes, and FedEx airbills. Supports digits 0–9 and special characters –$:/.+.
Industries: Blood banks, libraries, overnight delivery, photo labs
How to Create a Barcode - Step by Step
- Select a preset - Default (general use), Compact (small labels), Tall (high-visibility), or Retail (product packaging). Presets automatically set the right width, height, and margin for each context.
- Choose the barcode format - Select from CODE128, CODE39, EAN-13, EAN-8, UPC-A, UPC-E, ITF, ITF-14, MSI, or Codabar based on your industry standard and scanning environment.
- Enter your data - Type or paste the value to encode. Each format has specific data requirements: EAN-13 requires exactly 12 digits (the 13th is auto-calculated), UPC-A requires 11 digits, Codabar requires digits and special characters only.
- Adjust dimensions - Set bar width (1–6), height in pixels (40–400), and quiet zone margin (0–40px). Wider bars and taller barcodes scan more reliably at greater distances.
- Customize text display - Toggle value display, set font family, font size, text margin, and text alignment (left, center, right).
- Set colors - Choose custom line color and background color. Always maintain high contrast - dark lines on light background for maximum scannability.
- Download - Click Download SVG for infinitely scalable vector output (best for print), or Download PNG for raster output (for web and digital use).
Barcode Design Best Practices
Frequently Asked Questions - Barcode Generator
What is the most widely used barcode format?
CODE128 is the most versatile and widely-supported 1D barcode format globally. It supports all ASCII characters, has high data density, and is accepted by virtually every barcode scanner. For retail products sold internationally, EAN-13 is the mandatory standard. For North American retail, UPC-A is required.
How do I get a barcode for my product to sell in stores?
For commercial retail products, you need a GS1-registered barcode. This requires purchasing a GS1 Company Prefix, which licenses you to create valid EAN-13 or UPC-A barcodes for your products. Our tool can generate EAN-13 and UPC-A barcodes for testing and prototyping, but for retail sale, you need officially registered codes from GS1.
What is the difference between SVG and PNG output?
SVG is a vector format - it scales to any size without losing quality. It's best for print production, large-format labels, and any use where the barcode will be resized. PNG is a raster format at a fixed resolution - it's best for digital use, web pages, email, and software screenshots.
Can I use colored barcodes?
Yes, but with caution. Barcodes must have sufficient contrast between the bars and background to scan reliably. Black on white is the safest choice. Avoid using red or orange for bars - many laser scanners use a red laser that cannot read red-colored bars. If using color, always scan-test thoroughly before printing.
Are barcodes generated locally or sent to a server?
All barcode generation happens entirely in your browser using the JsBarcode JavaScript library. Your data values are never transmitted to any server. This makes the tool safe for sensitive product data, internal SKUs, and confidential inventory information.
What data can I encode in a CODE128 barcode?
CODE128 can encode any of the 128 ASCII characters - all 26 uppercase and lowercase letters, digits 0–9, and special characters including spaces, punctuation, and control characters. Maximum data length depends on bar width and scanning conditions, but practical maximums are typically 48–80 characters for reliable scanning.
Related Tools
Discover more free developer tools that might interest you.
Resume Builder
Create professional resumes with customizable templates
Use ToolInvoice Generator
Create professional invoices with templates
Use ToolProfile Card
Create professional buisness profile cards
Use ToolQR Code Generator
Create QR codes for business and marketing
Use ToolRelated guides
Read the how-to, then come back to this tool when you are ready to run it locally.
- Why Your Barcode Won’t Scan (Quiet Zone, Format, and Check Digits)Code128 vs EAN-13 vs UPC, printers that bleed, guns that expect another symbology. Generate a 1D barcode in the browser - drawing bars is not a GS1 license.
- Why Your QR Code Won’t Scan (Print, Contrast, and Payload Size)Finder patterns, error correction, logos, and glossy lamination. Generate a scannable code in the browser - a QR is not encryption.
- How QR Codes Work (and How to Generate One)QR basics and local generation for URLs, Wi-Fi, and vCards.