Roman Numeral Validator and Notation Checker

Validation trims spaces, uppercases Latin letters, rejects unknown characters, tests the canonical pattern, decodes the string, and re-encodes the value. The input is accepted only when the re-encoding matches.

Roman Numeral Validator

Modern mode accepts only canonical strings from I through MMMCMXCIX. Historical reference mode adds the documented clock-face form IIII and does not claim to certify every inscription ever cut.

Six subtractive pairs

I may precede V or X. X may precede L or C. C may precede D or M. V, L, and D are never subtractive prefixes in this standard.