Roman Numeral Converter
Convert whole numbers from 1 through 3999 into canonical Roman numerals, or convert a canonical Roman numeral back into a number. The reverse conversion accepts lowercase input but rejects nonstandard arrangements rather than guessing their intended value.
By Dr. Hassan Khames EliwaLast updated
Result
How it works
The seven symbols
The supported symbols are I for one, V for five, X for ten, L for fifty, C for one hundred, D for five hundred and M for one thousand. Most groups add values from left to right in descending order. Modern canonical notation also uses a small, specific set of subtractive pairs rather than permitting any smaller symbol before any larger one.
The accepted subtractive pairs are IV, IX, XL, XC, CD and CM. They represent four, nine, forty, ninety, four hundred and nine hundred. Other shortcuts, such as IL for forty-nine, are rejected. The converter follows a single modern normalized convention so a successful round trip produces one reproducible spelling.
Number to Roman
The forward conversion takes the largest available symbol or subtractive pair, subtracts its value, and repeats until nothing remains. It handles thousands, hundreds, tens and units in descending order. Only whole numbers within the supported range are meaningful here. There is no symbol for zero in this convention, and negative values and fractions are outside the scope of the tool.
Roman to number
The reverse conversion first trims surrounding whitespace and normalizes letters to uppercase. It then checks the entire string against the canonical thousands, hundreds, tens and units pattern. Only after that validation does it add the symbol values. A final re-encoding check ensures the resulting number has the same canonical representation.
Roman numerals have varied across historical periods and uses. Clock faces, inscriptions and manuscripts can contain legitimate historical forms that this deliberately narrow converter does not accept. Overbars, extended notation and Unicode numeral characters are not supported. For transcription work, preserve the original text rather than replacing it silently with this calculator's preferred modern spelling.
Worked example
Example 1: a year into Roman notation
Choose Number to Roman and enter 2026. The converter produces MMXXVI: two thousands, two tens, a five and a one. The output is not a date calculation; it simply rewrites the integer. Entering that result in reverse mode returns the original number.
Example 2: subtractive groups back into a number
Choose Roman to number and enter MCMXCIV. The groups are M, CM, XC and IV, corresponding to one thousand, nine hundred, ninety and four. Their sum is 1994, the displayed whole-number result. Lowercase mcmxciv with surrounding spaces produces the same result, while internal spaces are not accepted as part of one numeral.
Expert tips
Common mistakes
- Subtracting arbitrary symbols. The existence of IX does not mean every smaller-before-larger pair is valid. A permissive arithmetic interpretation can assign a value to malformed text, which is why this converter validates the structure first.
- Expecting clock-face IIII to pass. Some clocks use an additive form for four. This tool uses IV and rejects IIII by design; that rejection is about the chosen canonical format, not a judgment that the clock is fraudulent.
- Extending the range by repetition. Typing additional M symbols is not supported beyond 3999. Large-number notation needs an explicitly chosen convention, such as overbars, which this simple converter intentionally does not infer.
Frequently asked questions
Why stop at 3999?
That range fits the familiar unbarred modern convention with at most three leading M symbols. Larger values require additional notation choices, and silently choosing one would make the conversion less predictable.
Are lowercase letters allowed?
Yes. The reverse input is normalized to uppercase after surrounding whitespace is removed. The output always uses uppercase Latin letters so the canonical spelling is consistent.
Can it convert zero?
No. This supported Roman-numeral convention represents positive integers only. Historical treatments of zero are a separate topic and are not encoded as an ordinary numeral by this tool.
Why is IC rejected?
The canonical representation of ninety-nine is XCIX. IC uses an unsupported subtractive shortcut, so accepting it would break the one-spelling-per-number rule used by this converter.
Does a rejected inscription have no meaning?
Not necessarily. Historical practice is broader than this modern validation rule. A rejected string may need contextual interpretation by a historian rather than automatic correction by a general-purpose converter.
Related calculators
Related guides
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min read
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee