LocalExcelTool
Get started

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. 1.Enter the text to encode
  2. 2.Click Run
  3. 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.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveValues are generated locally with the platform's CSPRNG, never on a serverThe same — the conversion is the same maths

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