Skip to main content
BarcodeSuite
BlogGet Started
BarcodeSuite

Professional barcode generation tool for developers and businesses.

Popular Formats

  • Code 128
  • QR Code
  • EAN-13
  • UPC-A

Support

  • Contact Us
  • Feature Requests
  • Report Issue

Legal

  • Privacy Policy
  • Terms of Service

© 2025 BarcodeSuite. All rights reserved.

Code 128

CODE128

High-density linear barcode symbology

Allowed characters: ASCII 0-127
Live Preview
Your barcode updates automatically as you customize settings

Barcode Customization Options

Barcode Content
Enter the text or numbers you want to encode in the barcode
Display Options
Toggle whether to display the encoded text below the barcode
Choose how the text should be aligned below the barcode
Choose whether text appears above or below the barcode
Set the font size for the text, between 8 and 48 pixels
Set the spacing between the barcode and text, between 0 and 20 pixels
Dimensions
Set the width of individual bars, between 1 and 10 pixels
Set the height of the barcode bars, between 20 and 300 pixels
Colors
Choose the background color for the barcode
Choose the color for the barcode bars
Margins
Set the top margin around the barcode, between 0 and 50 pixels
Set the bottom margin around the barcode, between 0 and 50 pixels
Set the left margin around the barcode, between 0 and 50 pixels
Set the right margin around the barcode, between 0 and 50 pixels
About Code 128
Example: 123456789012
Character Set: ASCII 0-127

Code 128 is a high-density, variable-length linear barcode symbology defined by ISO/IEC 15417:2007. It can encode all 128 ASCII characters (0-127) including letters, numbers, symbols, and control characters. The symbology uses three code sets (A, B, C) to optimize data density and includes a mandatory check digit for error detection.

Code Sets:
  • Code Set A: Standard ASCII, control characters
  • Code Set B: Standard ASCII, lowercase letters
  • Code Set C: Numeric pairs (00-99) for density
  • Automatic switching between sets for optimization
Key Applications:
  • Shipping labels and logistics (UCC/EAN-128)
  • Product packaging and identification
  • Supply chain and inventory management
  • Healthcare specimen tracking (ISBT 128)

Technical Advantages: Code 128 offers the highest data density among linear barcodes while maintaining excellent print tolerance. The built-in check digit and sophisticated encoding algorithm provide superior data integrity. Support for function codes (FNC1-4) enables specialized applications like GS1-128 for supply chain management.

Industry Standards: Widely adopted in GS1-128 (formerly UCC/EAN-128) for global supply chain identification, ISBT 128 for blood banking, and HIBC 128 for healthcare. The format's versatility and reliability make it the preferred choice for mission-critical applications requiring high data capacity and accuracy.

Explore Other Barcode Formats

Discover more barcode formats for different use cases and industries

Popular
EAN-13
European Article Number for retail products
Generate Free Online
EAN-8
Compact version of EAN-13 for small products
Generate Free Online
Popular
UPC-A
Universal Product Code for North America
Generate Free Online
UPC-E
Compressed version of UPC-A
Generate Free Online
Code 39
Alphanumeric barcode widely used in industry
Generate Free Online
ITF-14
Interleaved 2 of 5 for shipping containers
Generate Free Online
View All Formats