Roman Numeral Converter & Date Translator
Converts whole numbers from 1 to 3,999,999 into Roman numerals one decimal place at a time, using I, V, X, L, C, D and M with the six subtractive pairs IV, IX, XL, XC, CD and CM. From 4,000 up, the thousands group takes an overline meaning ×1,000, with a bracketed plain-text form. Reading a numeral back checks it against the same rules, names attested variants such as IIII, and dates convert day, month and year.
Type a number and the converter writes it in Roman numerals; type a numeral and it reads the value back; pick a date and it writes the day, month and year. Every result comes with a plain-text form that needs no special characters, a notation line that flags anything unusual, and a breakdown table that shows which letters stand for which decimal place. Numbers run from 1 to 3,999,999. Up to 3,999 the numerals are the familiar ones. From 4,000 the thousands group carries a bar over the top, which multiplies it by 1,000.
The bar is drawn with U+0305, the combining overline, after each letter. Not every font draws it, the display font on this site included, so the plain-text form repeats the result with the barred group in brackets: 12,345 is X̅I̅I̅CCCXLV, written (XII)CCCXLV in plain text. The brackets are this converter's convention, not a Roman one. The reader accepts either form. On a phone a long numeral, or a long date, may wrap across lines.
How the conversion works
Roman numerals are not positional the way the systems in the number base converter are, but a modern numeral is still built one decimal place at a time. Each digit from 1 to 9 has a fixed spelling in each place. For the units it is I, II, III, IV, V, VI, VII, VIII and IX. The tens use X, L and C in the same pattern, the hundreds C, D and M, and the thousands repeat M up to three times. Six subtractive pairs cover the fours and nines: IV, IX, XL, XC, CD and CM. A zero digit writes nothing at all, so 2,006 is MMVI.
Numbers of 4,000 and more split at the thousands:
n = 1,000 × t + r, numeral(n) = bar(numeral(t)) + numeral(r)
Here t is the number of thousands, from 4 to 3,999, and r is the remainder below 1,000. The thousands are written as an ordinary numeral and barred, so a bar over M means 1,000 × 1,000. That makes 3,999,999 the ceiling: M̅M̅M̅C̅M̅X̅C̅I̅X̅CMXCIX, or (MMMCMXCIX)CMXCIX in plain text. The longest result in the range belongs to 3,888,888: every place below the millions holds an 8, the longest digit to spell, and the millions hold their maximum, 3. It runs to 27 letters, or 42 code points counting the overlines, and 29 characters in plain text.
Reading runs the same rules backwards. The reader splits off any barred or bracketed group and then matches the rest place by place: thousands, then hundreds, then tens, then units. It adds up the parts and writes the value out again. If that rewrite matches what you typed, the notation line says Standard, or Bar means ×1,000 from 4,000 up. If it differs, the value is still given, with the note "Non-standard; modern form is" followed by the modern spelling. Lower-case letters and the Unicode numeral characters such as Ⅻ are accepted too.
Worked example: 1,999 and the other defaults
The default number is 1,999. Split into places it is 1,000, 900, 90 and 9. The thousands digit 1 is M. A hundreds digit of 9 takes the subtractive pair CM, 100 short of 1,000. The tens digit 9 is XC and the units digit 9 is IX. Together they make MCMXCIX, as the breakdown table lists. The number is below 4,000, so no bar is needed and the plain-text form is the same seven letters.
Switch to To number and the default numeral MMXXVI reads as 2,026: MM for 2,000, XX for 20 and VI for 6, with no hundreds. Switch to Date and the default, 2 November 2026, becomes II.XI.MMXXVI in day-month-year order, XI.II.MMXXVI in month-day-year order, or MMXXVI as the year alone.
Where the letters came from
The origin of the system is uncertain. Florian Cajori's A History of Mathematical Notations, published in 1928, opens its section on the Romans with "We possess little definite information on the origin of the Roman notation of numbers." Cajori reports that the Etruscans, who ruled Rome until about 500 B.C., used numeral signs that resembled the Roman ones. He also quotes the view that C and M were helped along by the words centum and mille, a hundred and a thousand. His summary is that "the dominating feature in the Roman notation is the principle of addition", as in II, XII, CC and MDC.
The letters lasted long after better tools arrived. Cajori writes that Hindu-Arabic numerals "became generally known in Europe about 1275", yet the Florentine banking house of Peruzzi still kept its fourteenth-century account books without them.
Addition first, subtraction sometimes
How often the Romans subtracted is disputed. Cajori himself calls "the frequent use of the principle of subtraction" conspicuous, as in IV, IX and XL, and cites L. C. Karpinski for subtractive forms on some early tombstones and on a signboard of 130 B.C. that wrote 83 as XXCIII. In the same section he quotes the palaeographer Adriano Cappelli, who found the rule "seldom applied by the old Romans and during the entire Middle Ages one finds only a few instances of it", all of them IX, never IV, from the middle of the fifteenth century. Cappelli also notes LXL for 90 in the eighth century, and IIIX and VIX for 13 and 16.
So the additive forms are not mistakes, only older habits. The converter accepts the additive fours and nines, IIII, VIIII, XXXX, LXXXX, CCCC, DCCCC and MMMM, and names the modern form beside the value. It also accepts IC, which is how the US Government Publishing Office's own table writes 99; that table has no XCIX. Its Style Manual likewise gives 1900 as "MCM or MDCCCC". Here the converter follows the common modern convention instead, in which I is subtracted only from V and X, so it names XCIX as the modern form of IC. Anything else is refused with a reason. VX is refused because V is never subtracted. IL is refused under the same convention, and the message adds that read symbol by symbol it comes to 49, written XLIX.
Bars, brackets and big numbers
Large numbers took several forms. Cajori notes that Pliny the Elder, around 77 A.D., wrote 83,000 as LXXXIII.M, using M as a multiplier. He also records that "the thousand-fold value of a number was indicated in some instances by a horizontal line placed above it". The writer Aelius Lampridius, in the fourth century, barred CXX for 120,000. Thousands could also be built from C, I and a reversed C, so that CIↃ meant 1,000, a notation that Priscian, a grammarian of about 500 A.D., shows to be at least that old.
The bar is the form that survived into style guides. Rule 12.29 of the GPO Style Manual says "a dashline over a letter denotes multiplied by 1,000". Its table gives a barred V for 5,000 and a barred M for 1,000,000, both of which the converter's rule matches. For 4,000 the table offers MMMM or an M before a barred V. This converter instead bars the whole thousands group, so 4,000 is I̅V̅, or (IV) in plain text, in the way Lampridius barred the whole of CXX. Either GPO form still reads as 4,000, with the modern form in the note, and MV̅CC reads as 4,200.
IIII on the clock face
The Seiko Museum in Ginza notes "many cases where IIII is used at the 4:00 position" on clock dials with Roman numerals, and gives several explanations without settling on one. One is that King Charles V of France, in the late fourteenth century, disliked IV because it subtracted from his own number. Another is that IV is easily misread as VI, while IIII balances the VIII in the symmetrical position. The theory the museum calls most popular is that IIII "looked well balanced on the radial dial plate design". Cajori records the form in print as well: a cosmography printed in Milan in 1556 used IIII for four. Enter IIII and the converter returns 4 with the modern form, IV.
Dates and other everyday uses
The Unicode Standard 17.0 notes that "in certain locales, compact date formats use Roman numerals for the month". Date mode writes each part in turn, so 31 December 1999 is XXXI.XII.MCMXCIX. Year 0 is refused, since there is no Roman numeral for zero. The day count between two dates is a job for the date difference calculator, and for a birthday the age calculator gives years, months and days.
Unicode also encodes ready-made numeral characters, Ⅰ to Ⅻ and Ⅼ, Ⅽ, Ⅾ and Ⅿ, in its Number Forms block "for compatibility with East Asian standards". Its advice is that "for most purposes, it is preferable to compose the Roman numerals from sequences of the appropriate Latin letters". This converter writes plain letters for that reason, and folds those characters back into letters when it reads them. The old forms from U+2180 onward, such as ↀ for 1,000, are reported rather than read.
Frequently asked questions
How do you write 4,000 in Roman numerals?
This converter writes 4,000 as IV with a bar over both letters, shown in plain text as (IV), because a bar multiplies a group by 1,000. The US Government Publishing Office Style Manual lists two other forms, MMMM and M followed by a barred V, and the converter reads both as 4,000 with a note that they are not the modern form.
Why do clocks show IIII instead of IV?
Nobody knows for certain. The Seiko Museum lists several theories: that King Charles V of France disliked IV in the late 14th century, that IV is easily confused with VI while IIII balances the VIII in the symmetrical position across the dial, and, the one it calls most popular, that IIII looks better balanced on a round dial. Older usage supports the habit too: Cajori quotes the palaeographer Adriano Cappelli, who found subtraction seldom used by the old Romans or in the Middle Ages, and notes that a 1556 Milan book printed four as IIII.
How do I write a date in Roman numerals?
Convert the day, the month and the year separately and join them with dots. 2 November 2026 becomes II.XI.MMXXVI in day-month-year order, or XI.II.MMXXVI in month-day-year order, and 31 December 1999 becomes XXXI.XII.MCMXCIX. The year is converted as a whole number, so 2026 is MM plus XX plus VI.
What is 1999 in Roman numerals?
1999 is MCMXCIX: M for 1,000, CM for 900, XC for 90 and IX for 9. Shortcuts such as MIM are not valid under the common modern convention, which this converter follows, where I is subtracted only from V and X. The converter rejects MIM and says that, read symbol by symbol, it comes to 1,999, which is written MCMXCIX.
Is there a zero in Roman numerals?
No. The seven letters I, V, X, L, C, D and M have no symbol for zero, so the converter starts at 1 and refuses 0 and negative numbers. That is also why a date in the year 0 cannot be written, and why a number such as 2,006 simply skips its empty hundreds and tens places: MMVI.
Is IC a valid Roman numeral for 99?
It depends on whose rules you follow. The GPO Style Manual's own table writes 99 as IC and has no entry for XCIX. The common modern convention, which this converter follows, subtracts I only from V and X, so it writes XCIX, ninety plus nine. The converter reads IC as 99 and names XCIX as the modern form, while other shortcuts such as IL for 49 are rejected with the correct form, XLIX.
Sources
- A History of Mathematical Notations, Volume I: Notations in Elementary Mathematics (Florian Cajori), sections 46 to 55, Open Court Publishing Company, via Internet Archive, 1928
- GPO Style Manual, Chapter 12: Numerals, rule 12.29 Roman numerals, U.S. Government Publishing Office, 2016
- The Unicode Standard, Version 17.0, Section 22.3.4: Acrophonic Systems and Other Letter-based Numbers (Roman Numerals), Unicode Consortium, 2025
- Unicode Character Database 17.0.0: UnicodeData.txt, Unicode Consortium, 2025
- The Mystery of Numerical Notation on the Dial Plate: 4 is Expressed as IIII, not IV, The Seiko Museum Ginza