Barcode Generator
Turn text into a Code128 barcode, downloadable as a crisp SVG.
What is Barcode Generator
A barcode generator converts a string into a Code128 one-dimensional barcode. Code128-B supports ASCII characters 32–126 (letters, digits, symbols), and the result downloads as a sharp SVG. Everything runs locally in your browser.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
Code 128-B covers printable ASCII and nothing else
The B subset encodes the 95 printable ASCII characters, space through tilde. Anything outside that range — accented letters, CJK, emoji, a newline — is filtered out before encoding, because the symbology has no code points for them. If the output looks shorter than the input, that filtering is the reason.
Code 128 can switch subsets mid-symbol to pack digits more densely (subset C encodes two digits per symbol character), which is why long numeric strings make shorter barcodes in some generators. This implementation stays in B for predictability.
The checksum is mandatory, and the quiet zone too
Every Code 128 symbol ends with a modulo-103 check character computed from the start code and the weighted values of all data characters. A reader that returns a value at all has already verified it — which is why a misread is rare and a failure to read is common.
Scanners also need a quiet zone of at least ten modules on each side. A barcode printed flush against a label edge, or with text touching the bars, will fail on hardware that worked in testing.
Choosing a symbology for a real requirement
Code 128 is the general-purpose choice for internal labels, shipping and asset tags. Retail products need EAN-13 or UPC-A, which are numeric-only and fixed-length with their own check digit — a Code 128 label will simply not scan at a retail POS.
For anything printed small, check the X-dimension: bars and spaces must each be at least about 0.25 mm for reliable scanning, so a long payload forces a physically wider label. Shortening the encoded value is usually cheaper than buying a better scanner.
How to use
- 1.Enter the text to encode
- 2.Click Run
- 3.Download the SVG
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Values are generated locally with the platform's CSPRNG, never on a server | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
What is Code128?
A widely used one-dimensional barcode symbology that encodes letters, digits, and symbols as bars of varying widths. Common in logistics and inventory.
Which characters are supported?
Code128-B supports ASCII 32–126 (letters, digits, symbols, space). Non-ASCII characters such as Japanese are stripped automatically.
Why SVG?
SVG stays sharp at any size, making it ideal for printing and labels. Download and use it directly.
More in Generators
On this page
- What is Barcode Generator
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →