Roman numerals converter
Type a number to get its Roman numeral, or type a Roman numeral to get the number. Both directions are checked for valid form.
The rules in brief
I = 1, V = 5, X = 10, L = 50, C = 100, D = 500 and M = 1,000. Symbols are added from largest to smallest, and a smaller symbol before a larger one is subtracted, but only in six pairs: IV, IX, XL, XC, CD and CM. No symbol repeats more than three times in a row, so 4 is IV, not IIII (clock faces are a famous exception).
Above 3,999, a bar over a symbol multiplies it by 1,000, so C̅D̅X̅X̅X̅I̅X̅ is 439,000 and C̅D̅X̅X̅X̅I̅X̅CDXXXIX is 439,439. The Romans had no symbol for zero.