Full character support
Uppercase and lowercase letters, digits, spaces and common symbols.
The CardDeck Code 128 barcode generator turns letters, numbers and symbols into a compact barcode that almost every scanner reads. Use it for employee and student IDs, asset tags, tickets, internal SKUs and shipping references, then download a crisp SVG or add it to a card.
Free plan · No credit card required
Generated in your browser · nothing you type is sent anywhere · SVG and PNG downloads
Code 128 is a high-density 1D barcode that can encode all 128 ASCII characters, including uppercase and lowercase letters, digits and symbols. It is defined in ISO/IEC 15417, includes a modulo-103 check character, and is read by virtually every modern barcode scanner. It suits IDs, asset tags, tickets and shipping labels.
Letters, numbers and symbols, up to 40 characters, such as NWL-0428 or AST-00412.
CardDeck adds the start pattern, check character and stop pattern for you.
Download SVG for print or PNG for screens, or add it to an ID or membership card template.
Print a sample at the real size and scan it with the device your team uses.
Uppercase and lowercase letters, digits, spaces and common symbols.
The modulo-103 check is calculated and added for you.
Unsupported characters and over-long values are flagged before export.
SVG keeps bars crisp on labels, cards and packaging.
Add a Code 128 field to any card template and fill it from your data.
One Code 128 barcode per spreadsheet row.
Static barcodes are unlimited on every plan.
| Aspect | Without CardDeck | With CardDeck |
|---|---|---|
| Characters | EAN-13 / UPC-A: digits only | Code 128: letters, digits and symbols |
| Length | EAN-13 / UPC-A: fixed 13 / 12 digits | Code 128: variable (up to 40 in CardDeck) |
| Density | Code 39: wider for the same text | Code 128: more compact |
| Check | Code 39: check optional | Code 128: mandatory modulo-103 check |
| Registration | EAN-13 / UPC-A: GS1 numbers for retail | Code 128: none needed for internal use |
Code 128 is a linear (1D) barcode symbology that can encode the full 128-character ASCII set: uppercase and lowercase letters, digits, punctuation and control characters. It is one of the most widely used barcodes in logistics, healthcare, libraries, access control and asset management.
The symbology is specified in the international standard ISO/IEC 15417. Because it is so common, virtually every modern laser, LED and camera-based scanner reads it without special setup.
GS1-128 (formerly UCC/EAN-128) is a specific application of Code 128 used on shipping and logistics labels, with GS1 Application Identifiers that mark data such as batch numbers and dates. It follows extra GS1 rules. If a retailer or carrier asks for GS1-128, follow their label specification.
Code 128 has three code sets that share the same bar patterns but assign them different characters. A barcode can switch between sets mid-way to encode data in the fewest characters.
Special characters let a barcode switch from one set to another, or shift for a single character. A scanner decodes all of this automatically and outputs only your original value, so the person scanning never sees which set was used.
The CardDeck Code 128 generator accepts printable characters (letters, digits, spaces and symbols) up to 40 characters per barcode. That covers employee numbers, asset tags, ticket codes and internal SKUs. Control characters are rarely needed on cards and labels and are not part of the input.
The Code 128 check character is a modulo-103 checksum. You take the start character's value, add each data character's value multiplied by its position, divide the total by 103 and use the remainder as the check character's value.
If a scanner misreads one bar, the recalculated checksum will almost always not match, so the scanner rejects the read and tries again instead of sending a wrong value to your system.
The check character is part of the bar pattern only. It is not printed in the human-readable text and not sent to your system by the scanner. CardDeck calculates it for every barcode, so you only enter your value. Unlike EAN-13 and UPC-A, Code 128 has no check digit to include in your data; see the EAN-13 barcode generator for how retail check digits differ.
A Code 128 barcode's width depends on its content and its X-dimension, the width of the narrowest bar. Choose an X-dimension your printer and scanner handle well, keep at least 10X of quiet zone on each side and do not make the bars too short.
Every Code 128 barcode is 11 modules per character, plus 35 modules for the start character, check character and stop pattern. In code set B, an 8-character ID such as NWL-0428 is 11 × 8 + 35 = 123 modules wide.
Long all-numeric values are narrower if the encoder uses code set C.
Keep the bars tall enough to scan at a slight angle. A practical minimum is about 15% of the barcode's width, and taller is easier, especially for hand-held scanners. On an ID card, 8–12 mm of bar height is common.
Code 128 is used wherever a system needs to identify something with a short alphanumeric code: people, assets, tickets, documents and shipments. If the item is not sold at a retail checkout, Code 128 is usually the right choice.
Upload a CSV or Excel file with one value per row to the bulk barcode generator, choose Code 128 and download a ZIP of files or a print-ready PDF sheet. The rows per job are 25 on Free, 500 on Pro, 2,000 on Team and 25,000 on Business.
The bulk barcode generator page covers label printing and how to place barcodes on cards in the same job. For other formats, start at the main barcode generator.
Can’t find an answer? Visit the Help Center.
Yes. Code set B includes uppercase and lowercase letters, digits and punctuation, so values like Bk-2291a encode correctly.
The standard has no fixed maximum, but long values make very wide barcodes. CardDeck accepts up to 40 characters, and shorter is easier to scan.
No. The modulo-103 check character is added to the bar pattern automatically and is not part of your value.
No. GS1-128 is a use of Code 128 with GS1 rules and Application Identifiers for logistics labels. Plain Code 128 has no such rules.
Some phone apps can, but the default camera is built mainly for QR codes. Dedicated scanners read Code 128 reliably.
Check the quiet zones, bar height, print contrast and size. Some scanners also have Code 128 disabled in their settings, so check the scanner configuration.
Yes. Static barcodes, including Code 128, are free and unlimited on every plan.
A free barcode generator for barcodes your scanners already read
Explore →Bulk barcode generator: create hundreds of barcodes from Excel or CSV
Explore →Employee ID card maker for IDs your security team can trust
Explore →EAN-13 barcode generator for retail product codes
Explore →Free plan · No credit card required