Skip to main content
Check Digit Calculator
Diagnostic

Identifier Format Validator

Check an identifier's length, allowed characters and fixed positions before checksum testing. Review format rules and failure cases.

Last updated:

Diagnostic, Analysis & Utilities

Check length and permitted characters.

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

Initialising algorithm engine for Identifier Format Validator...

How Identifier Format Validator Works?

The Identifier Format Validator checks the shape of a code before running its checksum. It checks length, allowed characters and any characters that must occupy fixed positions.

  1. 1Select the identifier scheme.
  2. 2Check the length against the scheme's fixed or allowed lengths.
  3. 3Check each character against the allowed set for its position.
  4. 4Check fixed parts such as prefixes and separators.
  5. 5Report the first rule that fails, or pass the identifier to checksum validation.

Identifier Format Validator Formula

The format rule is valid_format ⇔ input matches the scheme's regular expression.

valid_format = regex_scheme.test(input)
valid = valid_format ∧ valid_checksum
  • regex_scheme encodes length and character rules.
Worked example: VIN 1M8GDM9AXKP04278O
Length = 17 → pass
Position 17 = O → fail (letters I, O, Q not allowed)
Checksum not run

Identifier Format Validator Conversion Table

The format validator table lists length rules, character sets, and regular expressions for 8 schemes.

SchemeLengthAllowed charactersRegular expression
EAN-13130–9^\d{13}$
IBAN15–34A–Z, 0–9^[A-Z]{2}\d{2}[A-Z0-9]{11,30}$
VIN17A–Z except I, O, Q; 0–9^[A-HJ-NPR-Z0-9]{17}$
ISBN-10100–9, X last^\d{9}[\dX]$
ORCID iD19 with hyphens0–9, X last^\d{4}-\d{4}-\d{4}-\d{3}[\dX]$
ISO 6346114 letters + 7 digits^[A-Z]{3}[UJZ]\d{7}$
Spanish NIF98 digits + letter^\d{8}[A-HJ-NP-TV-Z]$
LEI20A–Z, 0–9^[A-Z0-9]{18}\d{2}$

What is Identifier Format Validator?

An Identifier Format Validator is a tool that checks whether an identifier has the right length and characters for its scheme. Format checks run first, and checksum checks run second.

Format errors (wrong length, forbidden letters) explain most rejected inputs and give clearer messages than a checksum failure.

What are the uses of Identifier Format Validator?

There are 3 main uses of the Identifier Format Validator, including form input rules, import screening, and regex testing.

  • Form input rules: Developers copy tested regular expressions into forms.
  • Import screening: Data teams reject badly formatted rows early.
  • Regex testing: Engineers confirm patterns against real examples.