Skip to main content

Code 128 · Set B

Code128B Generator — true Set B encoding

Type any mix of upper- and lowercase letters, digits, spaces and common punctuation and get a scannable Code128B barcode — as a vector SVG or a print-ready PNG, generated locally in your browser.

By the Bulk Barcode Generator team · Updated September 2026

A Code128B generator is a tool that encodes text — letters, digits, spaces and printable punctuation — into a Code 128 Set B linear barcode, the code set designed for everyday alphanumeric data.

Options

Results

Generated barcodes will appear here.
95
printable characters in Set B
106
Code 128 bar/space patterns
1
automatic check character
0
accounts or installs needed

01Basics

What is Code128B?

Code128B is the code set of the Code 128 barcode symbology that covers everyday text: uppercase and lowercase letters, digits, spaces and the printable punctuation marks on a standard keyboard. When people say a value "needs full text" in a Code 128 barcode, Code128B is usually the answer.

A Code128B symbol starts with a Start-B pattern, encodes each character as one bar/space module pair, and ends with a mandatory check character and stop pattern. The check character is calculated from the value itself, which is why scanners catch a mis-typed character in a Set B label so reliably.

This generator always emits true Set B encoding. It does not silently fall back to another code set, and it rejects characters outside Set B — such as tab or other control characters — instead of deleting them behind your back. What you scan is always exactly what you typed.

02Step by step

How to create a Code128B barcode

Four steps from text to finished Code128B label artwork.

  1. 1

    Enter your text

    Letters, digits, spaces and printable punctuation — for example ABC-12345 or ORDER 2026/B — are all valid Set B input.

  2. 2

    Adjust the Code128B options

    Bar width and quiet zone control print size; the human-readable line under the barcode can be toggled for labels that need a readable fallback.

  3. 3

    Generate the Code128B barcode

    The barcode renders instantly. Unsupported characters are flagged next to the input, never auto-corrected.

  4. 4

    Download your Code128B as SVG or PNG

    SVG keeps edges sharp at any print size; PNG works everywhere images are pasted. Bulk mode delivers up to 100 symbols as a ZIP.

03Comparison

Code128B vs Code128C

Both are Code 128 — the difference is which characters each set encodes and how densely.

PropertyCode128BCode128C
Character setLetters, digits, punctuation, spaceDigit pairs only (00–99)
DensityOne character per module pairTwo digits per module pair
Typical dataSKUs, order numbers, batch textLong numeric IDs, counters
Input rulesPrintable ASCII (32–126)Even number of digits

04Deep dive

When to use a Code128B generator

Code128B is the default choice whenever the value mixes letters with digits or includes punctuation: product SKUs like ABC-12345, order references like ORDER-2026/B, or location codes like Aisle 4-B. If your values contain lowercase letters, Set B is the only Code 128 set that carries them without switching, which is why a Code128B generator is the workhorse for mixed alphanumeric data.

For values that are nothing but a long run of digits, Code 128C produces a visibly narrower symbol because it packs two digits into the space of one character — use the Code128C Generator for those. Choosing between them deliberately, instead of letting an auto encoder guess, keeps every Code128B symbol predictable for downstream systems.

05Deep dive

Characters a Code128B generator supports

Code128B covers printable ASCII from space (32) through tilde ~ (126): the digits 0–9, the letters a–z and A–Z, the space character, and punctuation such as - . / + ( ) : % # $ @ & * = ? ! and quotes. That is 95 characters in total — everything a standard keyboard can type without a control key.

Characters outside that range — control characters like tab, or characters from non-Latin alphabets — cannot be encoded in Set B. The Code128B generator rejects them with a specific message rather than stripping or substituting them, so the barcode you print matches the value in your system character for character.

06Deep dive

Code128B scanning and print quality

A Code128B barcode is only as good as its print. Keep the quiet zone — the clear white margin around the bars — intact after cutting, match the bar width to your printer’s resolution, and always scan a sample with the actual device that will read the label in production. The SVG output is vector, so it scales to any label size without the blur that corrupts bar edges.

07Use cases

Common Code128B uses

Where a Code128B generator is the everyday choice.

  • SKU labels with Code128B

    Mixed alphanumeric SKUs scan first time on warehouse and point-of-sale readers when printed as Code128B.

  • Order tracking with Code128B

    Reference numbers with prefixes and slashes survive internal systems unchanged.

  • Document control

    Version tags like DOC-0042-REV-C on drawings and procedures, printed as Code128B.

  • Membership and library cards

    Printed IDs that combine letters and digits in a single symbol.

Your data stays in your browser

Every barcode on this site is rendered locally on your device. Values, spreadsheets and generated images are never uploaded to a server — there is no upload to intercept, store or leak.

09FAQ

Frequently asked questions

Direct answers to the most common questions about this tool.

01What characters can a Code128B generator encode?

All printable ASCII characters from space to tilde: uppercase and lowercase letters, digits, the space, and standard punctuation — 95 characters in total. Control characters and non-Latin characters are not part of Set B and are rejected with an error instead of being removed.

02Does Code128B support lowercase letters?

Yes — lowercase letters are exactly what distinguishes Set B from Set A, which covers uppercase and control characters. A Code128B generator keeps mixed-case text like Part-9a intact.

03How is Code128B different from plain Code 128?

Plain “Code 128” usually means automatic mode, where the encoder picks code sets for you. This tool forces Set B explicitly, so every Code128B symbol uses one predictable encoding and the input rules are enforced strictly — useful when a downstream system expects true Set B symbols.

04Can this Code128B generator make several barcodes at once?

Yes. Switch the tool to Bulk mode and paste one value per line — up to 100 at a time — then download the batch as a ZIP. For very long lists, the Excel tool reads a whole column from a spreadsheet.

05Is the Code128B output really free to use commercially?

Yes. Code 128 is a published, unlicensed symbology — anyone may generate and print Code128B barcodes without royalties, and the SVG and PNG files you download are yours without watermarks or restrictions.

06Is there a scan test I should do before printing Code128B labels?

Always print one sample first and scan it with the actual device that will read it in production. Check that the quiet zone is intact after the label is cut — the default margin in this Code128B generator follows common reader guidance.

Your Code128B, exactly as typed

Enter a value above and download a true Set B barcode in seconds — free, local and watermark-free.

Back to the generator