Roman Numeral Converter
Convert any number from 1 to 3999 into Roman numerals, or decode a Roman numeral back into a number — both directions update live.
How it works
Roman numerals are built from seven letters — I, V, X, L, C, D, and M — worth 1, 5, 10, 50, 100, 500, and 1000. The clever part is subtractive notation: a smaller value placed before a larger one is subtracted, so IV means 4 instead of IIII, and CM means 900. To encode a number, the converter repeatedly subtracts the largest fitting Roman value (greedy algorithm) until nothing remains; to decode, it reads the numeral right to left, adding each value and subtracting it when it's smaller than the value already seen. Only numbers 1 through 3999 have standard forms, which is why the tool enforces that range, and malformed numerals like IIII or VV are rejected rather than guessed at.
How to use
The converter works in both directions and updates live as you type:
- Type any whole number from 1 to 3999 into the Number (1–3999) field. The Roman numeral field fills in automatically — try the preloaded 2026 to see MMXXVI.
- To decode instead, type a numeral such as MMXXIV into the Roman numeral field. The number field and the result line update to show 2024.
- Read the result line for the plain "2026 = MMXXVI" style answer, handy for copying.
- If you enter something invalid — a number outside 1–3999, or a malformed numeral like IIII — a clear error message explains the problem instead of guessing.
Frequently asked questions
What is subtractive notation?
A smaller value placed before a larger one is subtracted instead of added: IV is 4 (5 − 1), IX is 9 (10 − 1), XL is 40 (50 − 10), and CM is 900 (1000 − 100). It keeps numerals short — 4 is IV, not IIII.
How is 2026 converted to MMXXVI?
The converter repeatedly subtracts the largest fitting Roman value: 2026 leaves 2000 (MM), then 20 (XX), then 6 (VI) — hence MMXXVI. Decoding reverses the process: when a smaller value sits before a larger one it is subtracted, so in MCM the C subtracts from M to make 900.
Why only numbers 1 to 3999?
Standard Roman numerals have no symbols for values above 3999 without non-standard extensions like overlines. Keeping the 1–3999 range guarantees every result is a proper, universally recognized numeral.
Why is IIII rejected?
The tool enforces canonical forms: 4 must be written IV, 9 must be IX, and symbols like V, L, and D are never repeated. Accepting IIII or VV would silently produce non-standard output, so invalid input gets an error instead.