Roman numeral converter for whole numbers

This roman numeral converter changes a whole number from 1 to 3999 into standard Roman numerals, and a standard Roman numeral back into a number. It runs in your browser and shows the subtractive breakdown behind every result, so you can see which symbols were added and why an example such as 1994 becomes MCMXCIV.

Enter a value

Choose a direction and enter a number or Roman numeral.

Enter whole-number digits from 1 through 3999.

Standard subtractive notation: IV, IX, XL, XC, CD, CM. Values 1–3999; no overbars. Surrounding whitespace and leading Arabic zeros are ignored.

Result

Your value in the other notation.

Breakdown

The token breakdown will appear here.

Choose a direction, enter a value, then convert.

How to convert a number or a Roman numeral

Choose a direction first. The Direction menu offers Arabic to Roman and Roman to Arabic, and the field below changes with it. Under Arabic to Roman, the field is labeled Number, its placeholder shows 1994, and it accepts whole-number digits from 1 through 3999. Under Roman to Arabic, the label switches to Roman numeral, the placeholder shows MCMXCIV, and it accepts standard Roman letters in upper, lower or mixed case.

The Roman letter case (result and breakdown) menu below the field sets the Roman result and breakdown letters, in both directions; an Arabic result always prints digits. Select Convert, or press Enter in the field, to run the conversion. The Result panel shows the converted value with a breakdown line beneath it.

Select Copy result to copy the value, or Download .txt to save it as roman-numeral.txt or arabic-number.txt, depending on the direction chosen. Reset clears the field, the result and the breakdown, and sets Direction and letter case back to Arabic to Roman and UPPERCASE.

Roman numeral symbols and subtractive notation

Seven letters carry a fixed value: I is 1, V is 5, X is 10, L is 50, C is 100, D is 500 and M is 1000. Standard notation also uses six subtractive pairs for the digits 4 and 9 in each place: IV for 4, IX for 9, XL for 40, XC for 90, CD for 400 and CM for 900. The converter builds a Roman result by taking the largest available symbol or pair again and again until nothing is left, so 1994 becomes M, then CM, then XC, then IV, for 1000 plus 900 plus 90 plus 4.

The breakdown line under the result spells this out in full: first the symbols and pairs, then their values in the same order, then the total, so you can check the arithmetic. Reading a Roman numeral back works the same way in reverse, matching the largest symbol or pair at each position and adding the values, again with a breakdown beneath the number.

Limits and what the converter rejects

Standard notation without overbars covers whole numbers from 1 through 3999, the range this converter supports. Zero, negative numbers, fractions and numbers of 4000 or more are rejected, not rounded or approximated. On the Roman side, only the ASCII letters I, V, X, L, C, D and M are accepted; digits, spaces inside the numeral, punctuation, overbars and look-alike glyphs from other alphabets are all rejected. Spaces before or after the value, and leading zeros in a number, are ignored.

Spelling must be canonical: I, X, C and M may repeat at most three times, V, L and D appear at most once, and each subtractive pair may appear only once, so IIII and IC are rejected in favor of IV and XCIX (see Questions). Typing a Roman numeral into the Number field, or digits into the Roman numeral field, names the mismatch instead of guessing. The converter has no date, calendar or birthday mode: it converts a number or a Roman numeral, nothing else.

Questions

How do I convert Roman numerals to numbers?

Set Direction to Roman to Arabic, type a standard Roman numeral such as MCMXCIV in the Roman numeral field, then select Convert. Letter case does not matter for this input. The result shows the number, and the breakdown line shows the same symbols and values the converter matched to reach it.

Why are values limited to 1 through 3999?

Standard Roman notation has no symbol above M, and M may repeat at most three times, so the largest value is 3999, written MMMCMXCIX. Larger numbers, along with zero, negative numbers and fractions, fall outside what this converter's notation can represent and are rejected.

Why are IIII and IC rejected?

This converter checks for canonical subtractive spelling, where 4 is IV and 99 is XCIX. IIII is a clock-face convention outside that standard. IC tries to subtract I from C, but standard notation lets I subtract only from V and X, X only from L and C, and C only from D and M.

Does letter case matter for Roman numeral input?

Roman numeral input may be typed in uppercase, lowercase or mixed case with the same result: MCMXCIV, mcmxciv and McMxCiV all give 1994. The separate letter-case menu only decides how a Roman result and breakdown are displayed; it never changes what the field accepts.