How to use the code 128 barcode generator
- Type the SKU, reference or serial you want to encode. Code 128 accepts upper and lower case letters, digits, hyphens, slashes and spaces.
- Keep values reasonably short; every extra character widens the barcode, and a very long code needs a very wide label to scan.
- Decide whether to print the text under the bars. For stock labels it is useful; for security tags you may prefer to hide it.
- Scan the preview to check it returns exactly the value you typed, including case, then download the SVG or PNG.
What to include
- A consistent numbering scheme, such as a prefix for the product category followed by a running number
- No leading or trailing spaces, which scanners will faithfully read and your software may reject
- The readable text beneath the bars for manual entry
- A quiet zone on both ends; Code 128 is sensitive to clutter next to the start and stop patterns
- Enough bar height for handheld scanners to read at an angle
- A test scan into the actual software or spreadsheet that will receive the value
Why Code 128 is the best barcode for internal labels
Code 128 packs more data into less width than older formats like Code 39, handles letters as well as numbers, and includes a built-in check character so misreads are caught. Because it has no fixed length and no registration body, you can start using it today with whatever reference scheme your business already has: "SHELF-A12", "INV-2026-0042", a customer ID, a job number. Warehouse scanners, supermarket handhelds and phone apps all read it without configuration.
The main thing to avoid is using it on retail packaging. A supermarket till is set up to look up EAN or UPC numbers in its product database, so a Code 128 label on a shelf product will scan but will not match anything. Keep Code 128 for everything you scan yourself and use EAN-13 or UPC-A for products that go through someone else's checkout.
Frequently asked questions
What characters can a Code 128 barcode contain?
All printable ASCII characters: upper and lower case letters, digits and common punctuation. The tool switches between the internal code sets automatically to keep the barcode as narrow as possible.
Is there a maximum length for Code 128?
There is no hard limit in the format, but scanners struggle with very wide codes. Keep values under about 25 characters for labels and under 50 for anything printed large.
Can I generate many Code 128 barcodes at once from a list?
This page makes one at a time. For a sheet of labels with names and barcodes, use the product label variant, which prints a grid you can fill row by row.
Will a Code 128 barcode scan into Excel or an inventory app?
Yes. A scanner acts like a keyboard, typing the decoded value wherever the cursor is, followed by Enter. Scan into a cell or the search box of your app.
Does the generator keep a record of the codes I make?
No. Rendering happens in your browser, and nothing is sent to or stored on our servers.