Barcode Generator (EAN, UPC, Code 128).
Create EAN-13, EAN-8, UPC-A and Code 128 barcodes as crisp SVG images with automatic check digits.
Runs in your browserAbout Barcode Generator (EAN, UPC, Code 128)
This barcode generator draws the linear symbologies you meet on products, shipping labels and inventory tags. EAN-13 is the international retail code on almost every product; type its first 12 digits, such as 400638133393, and the tool computes the 13th check digit (1) for you, or verifies it if you enter all 13. EAN-8 is the short version for small packages, and UPC-A is the 12-digit North American format. Code 128 encodes any ASCII text — SKUs, serial numbers, URLs, even tab and group-separator characters — and automatically switches to its compact numeric mode for long runs of digits, which keeps the barcode short. The result is an SVG image: it scales to any print size without blurring, is tiny to store and can be dropped into HTML, a label template or a design tool. You can set the bar width, the height, the colours and whether the digits are printed underneath. Common mistakes are printing bars too narrow for the scanner (keep the narrowest bar at least 0.25 mm, roughly 2 px at 200 dpi), using light bars on a dark background or low-contrast colours such as red, which many laser scanners cannot see, trimming the white quiet zone at the sides, and inventing EAN numbers: retail codes must come from GS1, otherwise they may collide with real products. The barcode is drawn in your browser; nothing is uploaded.
How to Use
- Choose the barcode type and enter the digits or text.
- Adjust bar width, height, colours and the text line if needed.
- Download the SVG or copy its markup.
Frequently Asked Questions
Do I need to enter the check digit?
No. For EAN-13, EAN-8 and UPC-A the check digit is calculated automatically. If you enter it, the tool verifies it and reports a mismatch.
Which characters can Code 128 encode?
All 128 ASCII characters, including control characters. Letters with accents, Cyrillic and emoji are not part of Code 128; use a QR code for them.
Can I print the SVG at any size?
Yes. SVG is vector-based, so it stays sharp. Keep the proportions and the white margins, and make sure the narrowest bar is wide enough for your scanner.
Is my data sent to a server?
No. The barcode is generated in your browser and never uploaded.
Related Tools
Generate QR codes from text or URLs.
Make a QR code that joins a WiFi network or saves a contact (vCard), as PNG or SVG with custom colours.
Create placeholder images of any size with custom colours and label, as SVG, PNG, JPEG or WebP.
Generate NanoID, CUID2, KSUID and Snowflake IDs in bulk with custom size, alphabet and epoch.
Generate UUID v4, UUID v7, and ULID identifiers.
Generate secure, random passwords with entropy info.