Check digits, fixed for you
Type 12 digits and the EAN-13 check digit is added. Type a wrong one and you get the correct digit with a one-click fix.
Create Code 128 barcodes for inventory, asset tags, shipping and anything that is not a retail product. Type any text — letters, numbers and punctuation — and download a crisp, scannable barcode.
Checked live against the official rules for this barcode type.
Any ASCII text — letters, digits and punctuation.
Pick a label template or adjust size, text, colors and style.
One click styles the label. Your data and size stay as they are.
Check your data
Tap to preview
Code 128 is the most widely used general-purpose 1D barcode. It encodes all 128 ASCII characters, is compact and reliable, and is read by virtually every barcode scanner and phone app.
It uses three code sets: A for uppercase letters and control characters, B for upper- and lowercase letters, and C, which packs two digits into each symbol character. The encoder switches between them automatically to keep the barcode as short as possible — long numbers in particular become much narrower than in Code 39.
Every Code 128 barcode ends with a mandatory modulo-103 check character, calculated automatically and never printed in the text. Each character is 11 modules wide, made of three bars and three spaces.
Specification
Four steps from data to a print-ready file.
Step 1
Enter your Code 128 data. Any ASCII text — letters, digits and punctuation.
Step 2
Check the live validation — check digits are added for you and any problem is explained in plain words.
Step 3
Pick a label template or adjust bar width, height, text, colours and style. The printed size updates as you go.
Step 4
Press Test scan, then download a PNG at up to 1200 DPI, vector SVG or PDF — or print it on label sheets.
Details most barcode generators charge for — all free in the studio above.
Type 12 digits and the EAN-13 check digit is added. Type a wrong one and you get the correct digit with a one-click fix.
Banners, tickets, hang tags, shelf prices, coupons and more — ready-made labels that never cover the bars.
Set the bar width and height and see the finished printed size update live, in mm or inches.
PNG at 300, 600 or 1200 DPI with every bar a whole number of pixels, plus vector SVG and exact-size PDF.
Warnings for red bars laser scanners cannot see, low contrast, thin bars and tight quiet zones.
Insert Application Identifiers like GTIN, expiry, batch and serial with one click — validated by the official rules.
Fill Avery 5160, L7160 and 22805 sheets, sticker sheets or a label grid with one click.
Keep a barcode as a design file, reopen it later, share a link, and undo or redo any change.
Real-world applications for this symbology.
Internal product codes, stock labels and bin locations in warehouses and shops.
Laptops, tools, furniture and equipment tracked with a serial or asset number.
Courier tracking numbers and order references printed on parcel labels.
Work orders, part numbers and serial numbers on production lines.
Patient wristbands, sample tubes and specimen labels.
Document IDs on forms, invoices and archive boxes for fast lookup.
Small details that make the difference between a code people ignore and one they scan.
Numbers with an even number of digits are encoded most compactly, using code set C.
For thermal label printers, choose a bar width that is a whole number of printer dots (for example 0.25 mm at 203 dpi is 2 dots).
Keep 10 modules of blank space on each side — about 3.3 mm at the default bar width.
Avoid very long values: if the barcode gets wider than your scanner’s field of view, use Data Matrix instead.
Use GS1-128 rather than plain Code 128 when your data contains GTINs, batches or dates for a supply chain partner.
Yes. Code 128 covers the full ASCII set, including lowercase letters, punctuation and spaces.
Not at the checkout — retail point-of-sale systems expect EAN-13 or UPC-A. Code 128 is ideal for internal codes, inventory and shipping.
No. The mandatory modulo-103 check character is added automatically by the encoder and decoded silently by the scanner.
Choose Code 128 unless a system requires Code 39. It holds more characters, produces shorter barcodes and has built-in error checking.
They are the three code sets inside Code 128. You do not need to choose one — the generator mixes them automatically for the shortest barcode.
Inventory, assets, warehouses and shipping.
Retail, logistics, 2D, healthcare and postal symbologies — validated with the official rules and ready to print.
The barcodes people make most.