Skip to main content
BarcodeSuite
Batch GeneratorBlogGet Started
BarcodeSuite

Professional barcode generation tool for developers and businesses.

Popular Formats

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

Tools

  • Batch Generator
  • WiFi QR Code
  • vCard QR Code
  • All Formats

Resources

  • Blog
  • Implementation Guides
  • Case Studies
  • Best Practices

Support

  • Contact Us
  • Feature Requests
  • Report Issue

Legal

  • Privacy Policy
  • Terms of Service

© 2025 BarcodeSuite. All rights reserved.

Home
Formats
Barcodes
Code 128

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.

Related Articles

Relevant to this format
Guide
8 min read
Code 128 Barcode: Complete Implementation Guide for Business
Everything you need to know about Code 128 barcodes - the most versatile barcode format. Learn implementation, benefits, and best practices for Code 128 in your business.
Read Article
Case Studies
8 min read
Case Study: Manufacturing Company Cuts Inventory Errors by 95% with QR Code Implementation
Learn how TechComponents Inc. transformed their manufacturing operations with QR codes, reducing inventory errors by 95% and improving production efficiency by 60%.
Read Article
Best Practices
5 min read
Best Practices for Barcode Implementation in Retail
Master retail barcode implementation with proven best practices. Learn POS integration, inventory management, and ROI optimization for retail barcode systems.
Read Article
View All Articles

Explore Other Barcode Formats

Discover more barcode formats for different use cases and industries

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