Loading Barcode Mint…

Barcode Mint

Free Online Barcode & QR Code Generator

Linear Barcode

Code 128 B Barcode Generator

Code 128 subset B is the workhorse variant for mixed-case text, encoding upper and lowercase letters, digits, and symbols in one compact barcode.

Open the generator ↓
Preview
100%

01

Symbology

Code 128
All 106 →
02

Data

03

Properties

Properties

2
100
18
10
04

Bulk & batch generate

🔒 Pro

Turn a CSV — or a numbered sequence — into hundreds of barcodes at once, exported as a ZIP of images or a print-ready PDF sheet. Launching with Pro.

Launching soon

Pricing — join the early list

The browser generator stays free forever. Paid plans are for teams who need bulk output and developers who need the REST API at scale — commercial license included. Tell us what you'd use; early-list members get first access and launch pricing.

For the generator

Free $0/forever

What you're using right now

  • 100+ barcode & QR symbologies
  • Live preview & customization
  • PNG & SVG export, no login
  • Copy to clipboard
Available now ✓

For developers — REST API

Priced by requests. Commercial license and self-serve keys included; usage dashboard at launch.

Small $19/mo$190/yr 500 req / mo
Large $499/mo$4,990/yr 50K req / mo
Enterprise Custom Contact us

Get early access + launch pricing

Which features would you actually use? (optional — it helps us decide what to build first)

No spam — one email when it launches. The free tool isn't going anywhere.

What Is a Code 128 B Barcode?

Code 128 B is the character-set-B variant of Code 128, supporting the full printable ASCII range: uppercase letters, lowercase letters, digits 0–9, and standard punctuation and symbols. It does not include the non-printable control characters that subset A supports. In practice, subset B is the most commonly used of the three Code 128 subsets because most real-world data — product names, mixed-case model numbers, email-derived codes, alphanumeric order IDs — needs both letter cases in the same string.

When you use plain, auto-mode Code 128 and type any lowercase letter, the encoder will typically drop into subset B automatically to represent it. Choosing Code 128 B explicitly in Barcode Mint forces that subset for the entire symbol, which is useful when a downstream system or scanner configuration expects consistent subset B output rather than a barcode that could switch subsets mid-stream.

How Subset B Fits the Code 128 Family

All three Code 128 subsets share identical bar geometry, start/stop codes, and a modulo-103 check digit — they differ only in which characters map to which internal code values:

Because subset B covers essentially all printable characters people actually type, it's the default assumption for anything that isn't strictly numeric or strictly control-character-driven. If your data is a long pure-digit string, subset C will produce a noticeably shorter barcode for the same information — but the moment even one letter appears, subset B (or auto Code 128) becomes necessary.

Where Code 128 B Is Used

Subset B is the default for most modern Code 128 applications involving readable, mixed-case data:

Code 128 B Technical Specifications

Code 128 B is governed by the same ISO/IEC 15417 standard as the other Code 128 subsets. It encodes all 95 printable ASCII characters — uppercase and lowercase letters, digits, punctuation, and symbols — but excludes non-printable control characters. Each character uses 11 modules split across 3 bars and 3 spaces, plus a distinct stop pattern at the end of the symbol. There's no fixed maximum data length in the standard itself, though physical label width and scanner depth-of-field impose practical limits. A single check digit is mandatory, computed as a modulo-103 weighted checksum over the start character and every encoded symbol value; Barcode Mint calculates and appends it automatically, so no manual math is required.

How to Create a Code 128 B Barcode in Barcode Mint

Select Code 128 B from Barcode Mint's symbology list to force subset B encoding. Type your mixed-case text or alphanumeric string into the data field — the live preview renders instantly so you can confirm the bar pattern before exporting. From there:

For sequential IDs — like incrementing order numbers with a letter prefix — use the batch/sequence feature. For larger label runs, the bulk CSV → ZIP/PDF tool converts a spreadsheet column into a complete set of barcode files or a single printable PDF. Developers can generate Code 128 B barcodes programmatically via the REST API using /barcode?type=code128b&data=YOURDATA.

Print and Scan Best Practices

Subset B's mixed-case flexibility comes with a few practical considerations at print time:

Code 128 B vs. Related Codes

Against Code 128 A, subset B adds lowercase letters but drops support for control characters — the right trade for almost all consumer-facing and general business data. Against Code 128 C, subset B is roughly twice as wide for purely numeric strings, since C encodes two digits per character; if your data turns out to be all-digit, switching to C shortens the barcode meaningfully. Against Code 39, subset B is denser and includes lowercase letters that Code 39 can't represent without its Full ASCII extension, though Code 39 remains more universally supported on very old scanner hardware. For most modern mixed-case applications, subset B (or auto Code 128) is the default recommendation over any of these alternatives.

Common uses

Frequently asked questions

What does a code 128 b barcode generator encode?
A code 128 b barcode generator encodes the full printable ASCII set — uppercase letters, lowercase letters, digits, and symbols — making it the standard choice for general mixed-case text and alphanumeric codes.
Is Code 128 B the same as regular Code 128?

Not exactly. Plain Code 128 auto-selects between subsets A, B, and C for maximum efficiency, while Code 128 B forces subset B for the entire barcode. For typical mixed-case text, the two often produce identical results.

Can Code 128 B encode numbers efficiently?
It can encode digits, but not as densely as subset C, which packs two digits into one code value. For strings that are purely numeric and long, subset C produces a shorter barcode.
Does Code 128 B support control characters?
No, subset B does not include non-printable control characters. If you need those, use Code 128 A instead.
Can I generate a batch of Code 128 B barcodes from a list?

Yes. Barcode Mint's bulk CSV → ZIP/PDF tool accepts a spreadsheet of values and outputs a complete set of Code 128 B barcodes as individual files or a print-ready PDF.

Related barcode types

Browse all 106 barcode & QR types →