Roman Numeral Converter
Convert any number to Roman numerals and back, instantly. Covers the standard 1–3,999 range, optional vinculum notation up to 3,999,999, rejects malformed numerals with a clear reason, and shows the breakdown. Free, no signup.
How it works
Roman numerals use seven letters with fixed values — I=1, V=5, X=10, L=50, C=100, D=500, M=1000. A number is built by placing symbols from largest to smallest and adding their values, with six special subtractive pairs to avoid four-in-a-row.
Number → Roman. The converter lists every value token from largest to smallest, including the subtractive pairs: M=1000, CM=900, D=500, CD=400, C=100, XC=90, L=50, XL=40, X=10, IX=9, V=5, IV=4, I=1. It repeatedly takes the largest token that fits the remaining value and appends its letters. This greedy method is provably minimal, so it always produces the canonical form — 4 becomes IV, never IIII.
Roman → Number.First any character outside the alphabet is rejected. Then the numeral is scanned left to right: if a symbol's value is less than the value of the symbol immediately to its right, it is subtracted; otherwise it is added. So in MCMXCIV the C before M subtracts (CM = 900) while the M at the front adds.
Validation by round-trip. Being decodable is not the same as being legal. To guarantee a real numeral, the tool re-encodes the decoded value and requires it to match your input. This single check rejects IIII, VV, IL and IC at once, because none is the canonical spelling of any integer — and the error tells you the correct form.
Vinculum mode. A bar (vinculum) over a numeral multiplies that group by 1,000. When enabled, the encoder splits the value into thousands and a 0–999 remainder, renders the thousands with a combining overline (Unicode U+0305), and appends the remainder. That lifts the range from 3,999 to 3,999,999. There is no symbol for zero or negatives, so those inputs are blocked with an explanation rather than a fake result.
Worked examples
Common values
A quick reference for years and round numbers people look up most.
| Number | Roman numeral |
|---|---|
| 4 | IV |
| 9 | IX |
| 14 | XIV |
| 40 | XL |
| 49 | XLIX |
| 90 | XC |
| 99 | XCIX |
| 400 | CD |
| 500 | D |
| 900 | CM |
| 1,000 | M |
| 1,500 | MD |
| 2,000 | MM |
| 2,024 | MMXXIV |
| 2,025 | MMXXV |
| 2,026 | MMXXVI |
| 3,999 | MMMCMXCIX |
Frequently asked questions
Sources & references
- Encyclopaedia Britannica — Roman numeral (symbols and additive/subtractive rules)
- The Unicode Standard — Number Forms (U+2150–U+218F) and the combining overline
- Royal Museums Greenwich — how Roman numerals work
The symbol values and subtractive rules are fixed by the numeral system itself. Encoding and decoding were last cross-checked against the sources above on 2026-07-10, and the converter runs a 17-plus case self-test on every load.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.