Code 128 Barcode Generator Software Component


SKU: N/A Category:


This is a software library, component and SDK for generating Code 128 barcodes. The library includes full source code of the native implementation in each supported programming language. This reusable software component is ideal for getting Code 128 barcode generator capabilities in your software.

Try it Out

Barcode Type:
Height (pixels)
Module Width (pixels)
Height (pixels)
Include Checksum (type: EAN/UPC)
Width in mm
Height in mm
Pixels per mm
({{bc.arg3 * 25.4 | number : 0}} dpi)

Right-click to save the barcode image

Code 128

Code 128 barcodes are a commonly used barcode solution, readable by most barcode scanners. Code 128 is defined in the standard ISO/IEC 15417:2007.

The following example encodes ‘abcdefgh’.

Code 128 barcodes that encodes "abcdef"

The component automatically optimizes for length. It does this using an optimization algorithm that automatically generates short codes for what you want to include in the barcode.

For example, Code 128 is quite dense when it comes to numbers. The following example encodes ‘1234567’. The optimization algorithms ensures that it is encoded in a compact way using the internal Code 128C codes.

Code 128 barcodes that encodes "1234567"


The library has no dependency on a platform, which means it will readily work on any platform, including Windows, Linux, Mac and Mobile platforms.

The current version is 1.0.12, released 2019-02-12. We will update v1 with bug fixes and additions. You can download new versions for at least five years after the purchase from

The library is available natively in many programming languages. More details about language support and versions is available here.

Missing a programming language? We might be able to offer additional languages. Contact us at [email protected].

User Manual

The user manual is included.


The library includes functionalty for scaling that does not damage the barcode as many image processing tools might do.


Additional information

Programming Language

C/C++/Objective C, C#, Java, JavaScript, PHP, Python, Ruby, Swift, Visual Basic