xBarcodexBarcode
Industry Code 128 Sets A & B

Code 128 AB Barcode Generator (Code 128 Sets A & B)

Generate Code 128 AB barcodes optimizing alphanumeric text encoding without numeric compaction Set C.

Live Generator
22/500

Completes check digits when their position is clear. Use parenthesized AIs for GS1. Existing check digits are validated. Other formats keep their usual behavior.

FG
BG
🛡️Zero Data Retention: Encoded in edge memory. Never logged or stored.

Technical Specifications

Structure 1D Linear (Code 128 Sets A & B)
Capacity Variable length text switching between Set A and Set B without Set C
Character Set ASCII characters (sets A and B)
Quiet Zone Requirement auto modules (1D Linear)

Common Applications

This standard is widely used in the following industries:

1D Linear utilized across retail, logistics, manufacturing, and global supply chains.
Input Constraints & Parity: This format computes a weighted Modulo-103 checksum across all codewords (including start characters, subset switches, and data). Internal symbols and check digits are generated automatically.
Developer Quickstart

Automate Code 128 AB via API

Full API Reference →
curl -X POST https://api.xbarcode.ai/v1/render \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "format": "code128ab",
  "content": "12345678"
}' > barcode.svg
API outputs: SVG, PDF, EPS and matrix JSON. PNG is exported in the browser. < 20ms Edge latency
Related Standards

Alternative Symbologies related to Code 128 AB

Need an Industry-Grade Solution?

Explore how xBarcode powers retail GTIN, shipping labels, and GS1 Digital Link migration.