Skip to main content
Check Digit Calculator
Industrial

Code 128 Checksum Calculator

Calculate a Code 128 symbol checksum. Include the start value, weight each data symbol by position and take the remainder modulo 103.

Last updated:

Industrial & Barcode Symbologies

Calculate the symbol check value.

Length: 10 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

Initialising algorithm engine for Code 128 Checksum Calculator...

How Code 128 Checksum Calculator Works?

The Code 128 Checksum Calculator works by adding the start character value to the sum of each data symbol value multiplied by its position, and taking the remainder modulo 103. The check symbol is mandatory and never appears in scanned output.

  1. 1Pick the start code: A (103), B (104), or C (105).
  2. 2Convert each symbol to its Code 128 value (Code B: ASCII − 32; Code C: each digit pair 00–99).
  3. 3Multiply each symbol value by its position (1, 2, 3…).
  4. 4Add the start value and all products.
  5. 5Take the remainder modulo 103 as the check symbol value.

Code 128 Checksum Calculator Formula

The Code 128 formula is Check = (start + Σ i·vᵢ) mod 103.

Check value = (Start + Σ i × vᵢ) mod 103
  • Start is 103, 104, or 105.
  • vᵢ is the value of symbol i.
  • i is the position after the start code.
Worked example: 1234567890 in Code C
Pairs: 12 34 56 78 90
105 + 12×1 + 34×2 + 56×3 + 78×4 + 90×5 = 1115
1115 mod 103 = 85

Code 128 Checksum Calculator Conversion Table

The Code 128 conversion table lists start codes and sample data with their check values.

Start codeStart valueSample dataWeighted totalCheck value
C1051234567890111585
B104Code 128119764
B104PJJ123C87955
C1050012345645543
B104Hello120976

What is Code 128 Checksum Calculator?

A Code 128 Checksum Calculator is a tool that computes the mandatory modulus 103 check symbol of a Code 128 barcode. Code 128 encodes all 128 ASCII characters through 3 code sets.

Code set C packs 2 digits into 1 symbol, so numeric data prints at about half the width of Code B.

What are the uses of Code 128 Checksum Calculator?

There are 3 main uses of the Code 128 Checksum Calculator, including shipping labels, barcode software checks, and print troubleshooting.

  • Shipping labels: Carriers encode tracking numbers in Code 128.
  • Barcode software checks: Developers test encoder output symbol by symbol.
  • Print troubleshooting: Technicians confirm check symbols when scanners reject labels.