Converters Numbers

Roman numeral converter

Number
Or a numeral
Roman numeral MMXXVI
Value 2,026
Note
Local · standard subtractive form, 1 to 3999

Fill in either box. Numbers become numerals in standard subtractive form, so 4 is IV and not IIII, and numerals are read back to numbers with anything malformed rejected rather than guessed at. If both boxes have something in them, the numeral wins.

How to convert Roman numerals

1 Type a number between 1 and 3999, or type a numeral into the second box.
2 Read the conversion. The seven symbols are listed underneath for reference.
3 Clear the numeral box before typing a number, since a numeral present in it takes priority.
4 If a numeral is rejected, it is not in standard form: usually a repeated V, L or D, or four of one symbol in a row.

Two rules do nearly all the work. A smaller symbol placed before a larger one subtracts, so IV is four and IX is nine, but only I, X and C are allowed to subtract and only from the next two symbols up. I can precede V and X, X can precede L and C, C can precede D and M, and nothing else is legal. That single restriction is why 99 is XCIX and never IC, and why 49 is XLIX rather than IL. The second rule is that no symbol repeats more than three times, which is where IV comes from instead of IIII. V, L and D never repeat at all, since two of any of them is just the next symbol up.

Validation here is done by round trip rather than by a table of special cases. A numeral is read to a number, that number is written back out, and the two are compared. If they do not match, the numeral was not in standard form. IIII reads as four, four writes back as IV, so IIII is refused. The same test catches VV, XXXX, MMMM, IL and every other malformed string without anyone having to enumerate them. Case and surrounding spaces are ignored, so mmxxvi is read the same as MMXXVI.

The IIII on clock faces is a real exception and not a mistake. Clock dials have used it for centuries, alongside a normal IX on the other side, and the usual explanations are visual balance against the VIII opposite and the convenience of casting the numerals in three moulds. It is a typographic convention rather than notation, which is why this converter will not produce it and will not accept it.

The ceiling is 3999 because 4000 needs four M and standard form forbids it. Romans wrote larger numbers with a vinculum, a bar over the numeral meaning multiply by a thousand, so a barred V is five thousand. That notation has no agreed digital representation, it is not what anyone converting a date wants, and it is left out. There is also no zero and no negative number in the system, and no fraction: Roman fractions were a separate duodecimal set with S for a half and dots for twelfths, and they are not part of what this page does.

What people use it for

  • Reading the copyright year at the end of a film
  • Working out the date carved on a building or a monument
  • Writing a year for a tattoo, a ring or an invitation
  • Checking an event number such as a Super Bowl or an Olympiad
  • Reading a preface or chapter numbered in numerals
  • Confirming that a numeral someone has written down is actually valid

Questions

Standard form does not repeat a symbol more than three times. The IIII on clock faces is a typographic convention rather than correct notation.

The Unicode Standard, Number Forms code chart
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding