How it works
Pick a direction, then type either an ordinary number from 1 to 3999 or a Roman numeral. The letters stand for values: I 1, V 5, X 10, L 50, C 100, D 500, M 1000. A smaller letter before a larger one subtracts, so IV is 4 and IX is 9; otherwise values add. The converter checks that a typed numeral follows the standard form, so entries like IC are refused.
Formula
Take the largest value not above the number, write its letters, and repeat.
Example
Example in plain words. The year 2026.
2000 is MM, 26 is XXVI, so 2026 is MMXXVI.
The year 1987: 1000 M, 900 CM, 80 LXXX, 7 VII, giving MCMLXXXVII.
And 49 is XLIX, that is 40 plus 9.
Frequently asked questions
Why only up to 3999?
The standard system writes thousands with plain M letters, which stops being practical after 3999. Larger values need a bar notation that most fonts cannot show.
Did the Romans use this for arithmetic?
They mostly calculated on counting boards and wrote results in numerals. The subtractive style like IV became standard only later.