Code 128
Letters, numbers and symbols, up to 40 characters per barcode.
The CardDeck barcode generator makes Code 128 barcodes for IDs, asset tags, tickets and shipping labels, and EAN-13 and UPC-A barcodes for retail products, with the check digit calculated for you. Download a crisp SVG, or add the barcode to an ID, membership card or badge.
Free plan · No credit card required
Generated in your browser · nothing you type is sent anywhere · SVG and PNG downloads
A barcode generator converts a number or text into a one-dimensional barcode that laser, LED and camera scanners can read. CardDeck generates Code 128 for IDs, assets and tickets, plus EAN-13 and UPC-A for retail products with automatic check digits, and exports vector SVG files. Static barcodes are unlimited on every plan.
Code 128 for text and internal IDs; EAN-13 or UPC-A for registered retail product numbers.
Type one value, or upload a spreadsheet to generate one barcode per row.
CardDeck validates the value and adds the check digit. Download SVG for print or PNG for screens.
Print on labels and packaging, or place the barcode on an ID, membership card or badge template.
Letters, numbers and symbols, up to 40 characters per barcode.
Retail product codes from 12 digits, with the 13th check digit calculated for you.
12-digit product codes for the US and Canada, with automatic check digit.
Wrong length, letters in numeric formats and unsupported characters are caught before export.
SVG stays sharp at any print size; PNG for documents and screens.
One barcode per spreadsheet row through the batch generator.
Add a barcode field to ID cards, membership cards, badges and labels.
Static barcodes are unlimited on every plan.
| Aspect | Without CardDeck | With CardDeck |
|---|---|---|
| Check digit | Calculate by hand or hope it is right | Calculated and validated automatically |
| Bulk creation | One at a time | Thousands from a CSV or Excel file |
| On ID and member cards | Separate tool, then paste in | Built into card templates |
| Export quality | Low-resolution images | Vector SVG, sharp at any size |
| Cost | Often limited or watermarked | Unlimited static barcodes on every plan |
A barcode generator is a tool that turns a value, such as a product number or employee ID, into a pattern of bars and spaces that a scanner can read. You choose the format (symbology), enter the value and download an image to print.
A one-dimensional (1D) barcode stores data across its width only. A scanner sweeps across the bars, measures the width of each bar and space, and decodes the result into characters that it sends to the till, library system or access controller as if someone had typed them.
Scanners and the systems behind them expect specific formats. A supermarket till looks for EAN-13 or UPC-A. A warehouse or access-control reader is often set up for Code 128. Picking the right symbology is the most important decision you make, and the next section explains how.
Use Code 128 for anything internal, such as employee IDs, asset tags, tickets, library cards and shipping labels. Use EAN-13 or UPC-A only for retail products that carry a GS1-issued number.
Yes. To sell products through most retailers and marketplaces, the number inside your EAN-13 or UPC-A barcode must come from GS1, the not-for-profit organization that manages these standards. CardDeck generates the barcode image from the number you provide; it does not issue product numbers.
Some sellers resell old numbers that were originally issued to other companies. Major retailers and marketplaces can check the number against GS1's registry, and a mismatch can cause listings to be rejected. If retail is your goal, get your numbers directly from GS1.
For anything that never passes through a retail checkout, such as internal stock, asset tags, staff IDs or event tickets, you do not need GS1 numbers. Use Code 128 with any value that suits your system.
Choose a format, type the value, check the preview and download. The free tool works in your browser with no sign-up; an account lets you save barcodes, generate them in bulk and place them on cards.
1. Pick the format. Code 128, EAN-13 or UPC-A. 2. Enter the value. - Code 128: letters, numbers and symbols, up to 40 characters. - EAN-13: the first 12 digits. CardDeck adds the 13th (check) digit. - UPC-A: the first 11 digits. CardDeck adds the 12th (check) digit. 3. Read the validation message. If the length is wrong or a character is not allowed, CardDeck tells you before you export. 4. Choose the color. Black on white is safest. Dark colors work; red bars do not, because many laser scanners use red light and cannot see them. 5. Download SVG for print, or PNG for documents and screens. 6. Test with your actual scanner before printing a full run.
For product ranges, asset registers or member lists, use the bulk barcode generator. Upload a CSV or Excel file and get one barcode per row, named from your ID column.
In the card designer, add a barcode field to any template and map it to a column such as employee number. Every employee ID card or membership card in the batch then carries its own scannable number.
Print barcodes in solid black on a white or light background, keep the quiet zones clear, respect the format's minimum size and test with the scanner that will actually read them.
The X-dimension is the width of the narrowest bar or space. Every other bar is a multiple of it, so it controls the whole barcode's size.
Do not let text, borders or packaging folds run into these margins.
Do not squash barcodes to fit a tight space. For retail codes, GS1 discourages truncating the bar height, because shorter bars are harder to scan at an angle.
A barcode stores a short line of data in one dimension and is read by dedicated laser, LED or camera scanners. A QR code stores much more in two dimensions and is read by phone cameras. Use a barcode when an existing scanner needs a number; use a QR code when people need to open a page.
Many cards use both. An employee ID might carry a Code 128 barcode for the door reader and a QR code that opens a verification page. A product label can have an EAN-13 for the till and a QR code for setup instructions. The QR code generator makes the second half, and our article on barcode vs QR code covers the choice in more depth.
Yes. Every CardDeck card template can include a barcode field, filled per person from your data, so each ID, membership card or badge carries its own scannable number.
Check with your access-control or library vendor which format their scanners expect; most read Code 128 out of the box. Retail and stock teams can find more workflows under retail and inventory.
Yes. Static barcodes are unlimited on every CardDeck plan, including Free, and the free browser tool needs no sign-up and adds no watermark. Paid plans add larger batch jobs and card features.
The free tool generates barcodes in your browser. Nothing you type is stored unless you create an account and save it.
Most people stay on Free for one-off barcodes. Upgrade when you need larger spreadsheets in one job, barcodes placed on branded ID or membership cards, or a team workspace where several people manage the same templates. Static barcodes never expire and never depend on your plan, so a barcode you printed on Free keeps scanning if you change plans later.
Can’t find an answer? Visit the Help Center.
To sell products through retailers you need numbers issued by GS1. CardDeck generates the barcode image from the number you provide.
Virtually all modern 1D laser, LED and camera-based barcode scanners read Code 128. Some are configured to accept only certain formats, so test with your own scanner.
Yes. Use the batch generator to create one barcode per CSV or Excel row: up to 25 rows per job on Free, 500 on Pro, 2,000 on Team and 25,000 on Business.
A check digit is a final digit calculated from the others. Scanners recalculate it to catch misreads. CardDeck adds it automatically for EAN-13 and UPC-A.
Yes, with Code 128, which encodes uppercase and lowercase letters, digits and symbols. EAN-13 and UPC-A are numbers only.
SVG, because it is vector and keeps bar edges sharp at any size. Use PNG only for screens and documents.
Dark bars on a light background can work, but black on white is the safest. Avoid red bars, because many laser scanners use red light and cannot see them.
Some phone apps can read 1D barcodes, but the default camera is built mainly for QR codes. If people will scan with phones, use a QR code.
Yes. Add a barcode field to any CardDeck card template and map it to the employee number column.
Bulk barcode generator: create hundreds of barcodes from Excel or CSV
Explore →A free QR code generator for codes that look like your brand and scan every time
Explore →Employee ID card maker for IDs your security team can trust
Explore →Digital membership cards that renew themselves
Explore →Free plan · No credit card required