Code 128 generator
Code 128 encodes all everyday text (letters, digits, punctuation) compactly: ideal for stock labels, serial numbers, parcels or library books. The tool picks the shortest character set on its own.
How to do it
- Type the text or number to encode (80 characters at most).
- Set the module width (0.25 to 0.5 mm) and bar height.
- Check the preview: the number of Code 128 symbols shows the code length.
- Download the image, or open the label sheet for a whole list.
Tips
- Runs of digits are encoded two at a time: an even number of digits gives a shorter code.
- Keep 10 modules of white quiet zone on each side.
- For standard logistics data (batch, expiry date), use GS1-128 mode.
Frequently asked questions
What is the difference between Code 128 and Code 39?
Code 128 is more compact and encodes lower case and punctuation; Code 39 is older, limited to capitals and a few signs, but still required by some systems.
What size makes Code 128 readable?
A module of at least 0.25 mm and a height of at least 15% of the length, or 6 mm minimum; the further the scanner, the wider the module.
Are my codes sent anywhere?
No: everything is calculated in your browser. Only your settings are kept on your device.
Related tools
- 📲Stories and postsText, image or both overlaid, in the right sizes for Instagram, TikTok, Facebook, LinkedIn, X… to approve and share.
- 📱QR code generatorLink, Wi-Fi, contact, SEPA… with logo, colours and shapes. PNG, SVG, vector PDF, in bulk.
- 🔤Word counter and typographyWords, characters, readability, social media limits; French or English typography in one click.
- 🪟Enlarge an image for tracingA photo or drawing printed large across several sheets, to scale: outlines to trace on a window or wall, mirror, grid, stencil, assembly plan.