Roman Numeral Converter for Numbers and Numeral Text
Roman numerals still turn up on clock faces, book chapters, Super Bowl scores, film credits, and class rings, and typing them from memory invites small mistakes. This converter runs both directions inside the tab: enter 2024 to get MMXXIV, or paste MMXXVI to read back 2026. Every run validates the answer against the subtractive rule, so an input such as IIII is turned away with the correct form named in the message. A reference table of the core pairs and recent years sits under the widget, ready to copy. Nothing you type is sent anywhere.
Convert Numbers and Numerals Both Ways
| Number | Roman numeral |
|---|---|
| 1 | I |
| 2 | II |
| 3 | III |
| 4 | IV |
| 5 | V |
| 6 | VI |
| 7 | VII |
| 8 | VIII |
| 9 | IX |
| 10 | X |
| 11 | XI |
| 12 | XII |
| 13 | XIII |
| 14 | XIV |
| 15 | XV |
| 16 | XVI |
| 17 | XVII |
| 18 | XVIII |
| 19 | XIX |
| 20 | XX |
| 25 | XXV |
| 40 | XL |
| 50 | L |
| 90 | XC |
| 100 | C |
| 400 | CD |
| 500 | D |
| 900 | CM |
| 1000 | M |
| 1900 | MCM |
| 2000 | MM |
| 2024 | MMXXIV |
| 3999 | MMMCMXCIX |
- 2020 MMXX
- 2021 MMXXI
- 2022 MMXXII
- 2023 MMXXIII
- 2024 MMXXIV
- 2025 MMXXV
- 2026 MMXXVI
How It Works
The encoder holds one ordered list of pairs: CM for 900, CD for 400, XC for 90, XL for 40, IX for 9, and IV for 4 sit alongside the plain letters M, D, C, L, X, V, and I. Converting a number walks that list from the largest entry down, subtracting each amount while it still fits and appending its symbol. Because a pair is tested before the single letter it replaces, 1900 comes out as MCM instead of a long run of additive letters, and 1994 comes out as MCMXCIV.
Decoding reads the same table in reverse. Each letter is compared with its neighbor, and a pair worth more than the single letter in front of it counts as subtraction, so IV adds 4 instead of 1 plus 5. Input is trimmed, uppercased, and stripped of spaces first, which means mmxxiv and M M X X I V both land on 2024.
The check that matters is a round trip. After the letters are summed, the total is encoded again, and the second encoding has to match the text that was typed; when it does not, the run stops with the subtractive rule message. That is why IIII is refused even though four I letters add to four, and why IC never passes for 99. Values get the same treatment: numbers under 1 report that Roman numerals start at 1, and numbers over 3999 report the upper limit.
The encoder gives MCM for 1900, and decoding MMXXVI returns 2026, which is the path every run takes through the same two functions. Nothing leaves the page, so a title or date from an unpublished document is safe to test here.
Before and After
value: 2026
mode: Number to Roman
state: waiting for the run value: MMXXVI
mode: Number to Roman
state: accepted value: MMXXVI
mode: Roman to number
state: waiting for the run value: 2026
mode: Roman to number
state: accepted value: IIII
mode: Roman to number
state: waiting for the run value: cleared
mode: Roman to number
state: "IIII" breaks the subtractive rule; the correct form is IV Use Cases
| Developer | Production | Workflow |
|---|---|---|
| Read a version marker such as MMXXIV out of a legacy spec | Match a release label printed on packaging against the changelog | Check a homework answer for 1994 against MCMXCIV |
| Generate a numeral field before it reaches an API that expects text | Audit copyright lines that read 2024 where a numeral is wanted | Fill graduating class years for an alumni page |
| Round-trip test a converter service against the reference table | Check Super Bowl and sequel numbering before a print run | Solve a crossword clue that needs Roman letters |
| Validate user input so IIII never reaches the database | Transcribe an inscription photographed on site | Teach subtraction pairs with live examples from the table |
Common Mistakes and Troubleshooting
- Accepting IIII because it adds up. The round trip turns the input away and the message names IV as the form to type instead.
- Looking for a year 0 on old documents. Roman counting starts at 1, so dates before the era and negative figures need Arabic digits.
- Assuming case changes the meaning. Lowercase letters and stray spaces are cleaned up on the way in, but a wrong letter such as D instead of L still moves the total.
- Retyping a long numeral from memory. Copy from the reference table, or run the value through both directions and compare the two answers.
- Treating a rejection as a bug. The red line under the result explains which rule was hit, and the correct form is printed for you to copy.
Best Practices
- Keep the reference row for the pair you are working with in view. IX, IV, XL, XC, CD, and CM cover nearly every correction you will meet.
- Round trip important values. Convert a number to a numeral, switch direction, and convert back to confirm the pair of runs agrees.
- Write 1994 as MCMXCIV rather than a longer additive spelling. Only the shortest form passes the round trip check.
- Use numerals for display and Arabic digits for arithmetic. Labels read well in a document, and formulas stay simple in a spreadsheet.
- State the range in a document that mixes eras. Roman notation covers 1 to 3999, and anything outside that needs the bar notation or plain digits.
Frequently Asked Questions
Who invented Roman numerals?
Roman numerals grew out of tally marks cut into wood and stone, and the letters I, V, X, L, C, D, and M were reused as symbols for those marks. No single person invented the system, and the spellings settled gradually across the Roman Republic and Empire. An older Etruscan version used the same shapes before Latin letters were applied to them.
What does the subtractive rule mean, and why IV instead of IIII?
The subtractive rule puts a smaller letter before a larger one to take that value away, so IV reads as 5 minus 1 and IX reads as 10 minus 1. Writing IIII still adds up to four, but it is not the standard form, and this converter turns it away after a round trip through the encoder. XL, XC, CD, and CM follow the same idea at larger values, which is why the tool never returns 40 as XXXX.
What about the year 0 or the number 4000?
Roman counting begins at 1, so a year 0 and negative numbers have no Roman form, and the message from this tool says Roman numerals start at 1. Standard notation also stops at 3999, because the letters never repeat four times in a row. Values such as 4000 use a bar over the numerals to multiply them by a thousand, and this page does not draw that bar.
Where are Roman numerals still used today?
Clock faces often show IIII for the fourth hour next to VIII for the eighth, which is one reason the older form survives in plain sight. Book chapters, film credits, Super Bowl numbers, and sequel titles such as Rocky II use numerals as a display style. Universities, monarchs, and copyright lines keep the same convention, from graduating class years to Elizabeth II to MMXXIV at the bottom of a page.
How do I type Roman numerals on my phone?
Roman numerals are ordinary capital letters, so the keyboard already on your phone can produce them. The quickest route is to copy a value from the reference table on this page and paste it where you need it. Neither the number pad nor the symbol sheet holds Roman digits, so the table saves you from assembling the letters by hand.
What is the difference between Roman and Arabic numerals?
Arabic numerals are positional, which means the 2 in 26 and the 2 in 2026 stand for different amounts depending on the place each digit occupies. Roman numerals carry no place value, and each letter adds or subtracts a fixed amount from a running total. Arabic notation also includes zero, decimals, and negative values, while Roman notation covers whole numbers from 1 to 3999.
Can I use Roman numerals in Excel?
Excel reads MMXXIV as text rather than as a number, so SUM ignores it and sorting arranges the column in alphabetical order. The numerals still work well as a display column beside the plain numbers that formulas need. Generate the numerals here, paste them into the sheet, and keep a numeric column for any calculation.