Barcode Generator
Enter 12 digits (check digit added automatically) or 13 digits
What is Barcode Generator
EAN-13 and Code 128 are two of the most widely used barcode formats. EAN-13 encodes exactly 13 digits and is the standard barcode printed on retail products sold around the world. Code 128 handles the full printable ASCII character set at any length, which makes it the go-to for shipping labels, warehouse inventory, and ID badges. This tool generates both formats in your browser and lets you save the result as a crisp SVG or a PNG.
How to use
- Select EAN-13 for retail product barcodes or Code 128 for text and alphanumeric content.
- Type your value into the field. For EAN-13, enter 12 digits and the check digit is added automatically, or enter all 13 digits to have them validated.
- Watch the barcode render instantly as you type.
- Click Download SVG for a print-ready vector file, or Download PNG for a raster image.
When to use it
Selling handmade goods at a craft fair? Assign 12-digit SKUs to your products, paste them in, and download PNG barcodes you can print as stickers. Need to track shipments instead? Use Code 128 to encode order IDs like 'ORD-2025-08741' onto labels so scanners at every depot read them without a database lookup.
Frequently asked questions
What is the difference between EAN-13 and Code 128?
EAN-13 encodes exactly 13 digits and is used on consumer retail products. Code 128 encodes any printable text at any length, making it more flexible for internal systems like warehouses and shipping.
I only have 12 digits for an EAN-13. What is the 13th?
The 13th digit is a check digit derived from the first 12 using a weighted sum formula. Enter your 12 digits and this tool calculates and appends it for you.
Can I use these barcodes commercially?
The barcodes you generate here are yours to use freely. For retail EAN-13 barcodes on products sold in stores, you need a GS1 company prefix registered through GS1. This tool is ideal for prototyping, internal tracking, and non-retail uses.
Which download format should I use?
SVG is resolution-independent and scales perfectly for print. PNG works better for digital use, emails, or systems that do not accept SVG files.
Can I share this tool with my inputs pre-filled?
Yes. The URL updates automatically as you type. Copy it from the address bar or use the Share button - anyone who opens the link will see your exact inputs ready to go.
Related tools
Color Scheme Generator
Generate complementary, analogous, triadic, split-complementary, and tetradic color schemes from any base color. Free online color scheme generator.
CSS Box Shadow Generator
Create CSS box shadows with a live preview. Adjust offset, blur, spread, color and opacity, stack layers and copy the ready to use CSS.
CSS Gradient Generator
Build linear and radial CSS gradients with a live preview. Add color stops, set the angle or shape, and copy the ready-to-use background CSS.