Skip to content

Converters

Roman Numeral Converter

Convert a number to Roman numerals or a Roman numeral back to a number, for values from 1 to 3999. Type in either box and the other updates instantly, with validation so you never get a malformed numeral.

Converters · Roman Numeral ConverterRuns in your browser
⇅

How to convert to and from Roman numerals

  1. Type a whole number from 1 to 3999 in the top box; the Roman numeral below rewrites itself with every keystroke.
  2. Or type into the Roman numeral box instead — lowercase letters are turned into capitals as you type and the number above updates.
  3. Watch for the red message under either box: it tells you whether the number is out of range or the numeral is malformed.
  4. Use the Copy button beside either field to grab that value; the label reads Copied! for a moment.

The thirteen building blocks

The converter works from a list of seven single letters plus six subtractive pairs. To encode a number it walks down the list from 1,000, appending a symbol and subtracting its value as many times as it fits before moving to the next entry. This greedy procedure always produces the canonical form, the one with the fewest symbols that follows the usual rules.

ValueNumeralKind
1000Msingle
900CMsubtractive
500Dsingle
400CDsubtractive
100Csingle
90XCsubtractive
50Lsingle
40XLsubtractive
10Xsingle
9IXsubtractive
5Vsingle
4IVsubtractive
1Isingle

Symbols used, in the order the algorithm tries them.

Worked examples: 1994 and 3999

For 1994: one M fits (994 left), D does not, so CM is taken (94 left); C and L do not fit, XC does (4 left); X, IX and V are too big, IV finishes it. Result: MCMXCIV. For 3999 the same walk yields MMM, CM, XC and IX, giving MMMCMXCIX, the longest numeral the tool can produce at nine letters. 2026 is MMXXVI, and 1666 is MDCLXVI, the only year that uses every letter exactly once in descending order.

How the reverse direction is validated

Parsing a numeral starts with a character check: anything other than M, D, C, L, X, V and I fails immediately. The letters are then summed left to right, subtracting a letter whenever the one after it is larger. Finally the total is encoded again and compared with what you typed; if the two strings differ, the input is rejected. That round trip is what filters out non-standard spellings.

TypedLetter sumCanonical formAccepted
IIII4IVno
IC99XCIXno
MIM1999MCMXCIXno
VX5Vno
XLIX49XLIXyes
mmxxiv2024MMXXIVyes (uppercased)

Inputs and whether the round-trip check accepts them.

Limits and quirks to know about

  • The range stops at 3999 because the tool has no overline (vinculum) notation for thousands, so 4000 and beyond cannot be written, and there is no numeral for zero.
  • Decimals such as 3.5 are refused; the number field only accepts whole numbers.
  • When one box becomes invalid, the other keeps its last good value rather than clearing, so a half-typed numeral does not wipe the number.
  • Clock-face IIII and additive forms like VIIII are rejected, as are the single Unicode characters such as Ⅻ (U+216B); type ordinary letters.
  • Spaces before or after a numeral are ignored, but spaces inside it are not.

Where you still meet Roman numerals

  • Copyright years in film and television credits, such as MCMXCIV for 1994.
  • Super Bowl and Olympiad numbering: LVIII is 58.
  • Monarchs and popes (Louis XIV, Elizabeth II) and generational suffixes like III.
  • Front-matter page numbers in books, printed in lowercase (i, ii, iii), which the tool accepts and uppercases.
  • Outline headings, clock faces and building cornerstones.

Frequently asked questions

What range of numbers can it convert?

1 to 3999, which is the standard range for classic Roman numerals using the letters I, V, X, L, C, D and M.

How are Roman numerals written?

Symbols are added from largest to smallest (e.g. MMXXIV = 2024), and subtractive pairs like IV (4) and IX (9) avoid four repeats of a symbol.

Does it catch invalid numerals?

Yes. Malformed numerals like “IIII” or “IC” are rejected, so you only get valid, canonical results.

Is the converter free?

Yes, completely free with no sign-up. It runs entirely in your browser.

Why does typing lowercase letters turn them into capitals?

The Roman numeral field uppercases its contents as you type, because the parser compares against the canonical uppercase form. Lowercase input is still read correctly.

Why is IIII rejected when my clock uses it?

Clock faces use IIII for visual balance, but it is not the standard subtractive form. The tool only accepts the form it would itself generate, which is IV.

How do I write 4000 or larger?

Classically a bar over a numeral multiplies it by 1,000, so 4000 is IV with an overline. The converter does not support that notation, so its upper limit is MMMCMXCIX (3999).

What happens if I paste a numeral with spaces or punctuation?

Leading and trailing spaces are trimmed, but any other character, including a space in the middle or a full stop, makes the numeral invalid and the number box keeps its previous value.

Explore

113 tools. Zero uploads. One place.

Every tool opens instantly, works on your phone and keeps your files on your device.

Roman Numeral Converter guides