Skip to main content
Check Digit Calculator
Diagnostic

Check Digit Extraction Tool

Locate scheme-specific check characters and separate them from an identifier payload. Review check positions and multi-character fields.

Last updated:

Diagnostic, Analysis & Utilities

Isolate scheme-specific check characters.

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

Initialising algorithm engine for Check Digit Extraction Tool...

How Check Digit Extraction Tool Works?

The Check Digit Extraction Tool separates check characters from the rest of a code. It uses the check positions defined by the scheme. Those positions may be at the end, in the middle or in 2–5 places.

  1. 1Paste the identifier.
  2. 2Select the scheme so the tool knows the check positions.
  3. 3Normalise separators and case.
  4. 4Copy the characters at the check positions into the output.
  5. 5Return the payload with the check characters removed.

Check Digit Extraction Tool Formula

The extraction formula is Check = identifier[P_scheme] and Payload = identifier without P_scheme.

P_scheme = set of check positions
Check = [identifier[p] for p in P_scheme]
Payload = identifier with positions in P_scheme removed
  • P_scheme is the list of check positions.
Worked example: VIN 1M8GDM9AXKP042788
Check position = 9
Check = X
Payload = 1M8GDM9A + KP042788

Check Digit Extraction Tool Conversion Table

The extraction table lists where 8 schemes store their check characters.

SchemeIdentifierCheck positionsExtracted checkPayload
EAN-135901234123457Position 137590123412345
IBANGB82WEST12345698765432Positions 3–482GB WEST12345698765432
VIN1M8GDM9AXKP042788Position 9X1M8GDM9A KP042788
ISBN-100306406152Position 102030640615
Passport MRZL898902C36UTO7408122F1204159ZE184226B<<<<<10Positions 10, 20, 28, 43, 446, 2, 9, 1, 0Fields without check digits
ISAN0000-0000-3A8D-0000-Z-0000-0000-6After episode and after versionZ, 6000000003A8D0000 + 00000000
CPF11144477735Positions 10–1135111444777
GMN1987654Ad4X4bL5ttr2310c2KLast 2 characters2K1987654Ad4X4bL5ttr2310c

What is Check Digit Extraction Tool?

A Check Digit Extraction Tool is a tool that isolates the check characters of an identifier by the scheme's layout. The output feeds validation, analysis, and database columns.

Extraction is not always the last character: VINs use position 9, IBANs use positions 3–4, and passports carry 5 check digits in 1 line.

What are the uses of Check Digit Extraction Tool?

There are 3 main uses of the Check Digit Extraction Tool, including database design, parser testing, and data analysis.

  • Database design: Architects store payload and check fields in separate columns.
  • Parser testing: Developers confirm parsers split fields correctly.
  • Data analysis: Analysts count check value distributions across a dataset.