
Number Base Converter
Convert an integer between bases 2 through 36.
Open toolEnter an integer from 1 to 3,999 or a Roman numeral string (I to MMMCMXCIX) into this Roman numeral converter to translate between Hindu-Arabic numbers and canonical subtractive Roman notation in your browser.
Enter the inputs, then select Convert numeral.
Result will appear here
This Roman numeral converter maps integers and numeral strings across a 13-token value table combining the seven classical symbols (M, D, C, L, X, V, I) with the six canonical subtractive pairs (CM, CD, XC, XL, IX, IV). When converting an integer to Roman numerals, the algorithm repeatedly subtracts the largest matching token from 1000 down to 1 and appends its symbol until the remainder reaches zero.
13 Canonical Tokens: 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.
Standard subtractive notation places I before V or X (IV = 4, IX = 9), X before L or C (XL = 40, XC = 90), and C before D or M (CD = 400, CM = 900) so no symbol repeats four times in a row. For radix conversion, use our Number Base Converter or Binary Calculator.
Complete reference of the 7 base Roman symbols, 6 subtractive pairs, and common year conversions.
| Arabic Value | Canonical Roman Numeral | Token Type | Composition / Usage Example |
|---|---|---|---|
| 1 | I | Base unit | 1 (I), 2 (II), 3 (III) |
| 4 | IV | Subtractive pair | 5 - 1 (one before five) |
| 5 | V | Base five | Never repeated (VV is invalid; use X) |
| 9 | IX | Subtractive pair | 10 - 1 (one before ten) |
| 10 | X | Base ten | 10 (X), 20 (XX), 30 (XXX) |
| 40 | XL | Subtractive pair | 50 - 10 (ten before fifty) |
| 50 | L | Base fifty | Never repeated (LL is invalid; use C) |
| 90 | XC | Subtractive pair | 100 - 10 (ten before one hundred) |
| 100 | C | Base hundred | 100 (C), 200 (CC), 300 (CCC) |
| 400 | CD | Subtractive pair | 500 - 100 (one hundred before five hundred) |
| 500 | D | Base five hundred | Never repeated (DD is invalid; use M) |
| 900 | CM | Subtractive pair | 1000 - 100 (one hundred before one thousand) |
| 1000 | M | Base thousand | 1000 (M), 2000 (MM), 3000 (MMM) |
| 1999 | MCMXCIX | Milestone year | 1000 (M) + 900 (CM) + 90 (XC) + 9 (IX) |
| 2026 | MMXXVI | Preloaded year | 2000 (MM) + 20 (XX) + 5 (V) + 1 (I) |
| 3999 | MMMCMXCIX | Maximum standard value | 3000 (MMM) + 900 (CM) + 90 (XC) + 9 (IX) |
Translate any integer or numeral string in three steps.
Type your value from 1 to 3,999 or a numeral string into the Arabic integer or Roman numeral field (2026 is preloaded). Roman strings can be entered in uppercase (MMXXVI) or lowercase (mmxxvi).
Choose Arabic in the Input notation dropdown when converting a number like 2026 into MMXXVI, or switch to Roman when decoding MCMXCIV back into 1994.
Select Convert numeral to display the exact output in the result panel, then click Copy or Download (result.txt) to save the converted value.
See how the converter handles current years, full calendar dates, and multi-pair subtractive strings.
With 2026 in the input box and Input notation set to Arabic, the greedy encoder extracts 2000 (MM), 20 (XX), 5 (V), and 1 (I), returning MMXXVI for copyright footers, cornerstones, and event titles.

Because the input field accepts one integer at a time, convert a full date like November 6, 2026 by running month 11 (XI), day 6 (VI), and year 2026 (MMXXVI) separately, then joining them with dots or hyphens (XI.VI.MMXXVI). Need to count exact days between two calendar dates? Use our Date Difference Calculator.

Switch Input notation to Roman and enter MCMXCIV. The parser matches M (1000), CM (900), XC (90), and IV (4) from left to right and sums them to 1994. For integer quotient and remainder division when breaking numbers down manually, try the Long Division Calculator.

When you convert in Roman mode, the tool performs a two-stage verification rather than blindly summing letters.
First, it trims whitespace, converts lowercase letters (mcmxcix) to uppercase (MCMXCIX), and checks that the string consists of 1 to 15 Roman characters (I, V, X, L, C, D, M). Second, after greedily matching tokens from M (1000) down to I (1), it re-encodes the resulting integer back into a canonical Roman string (encode(total) === s).
This round-trip check catches non-canonical strings before returning a result. For example, entering clock-face IIII (4), doubled five-symbols VV (10) or LL (100), or invalid cross-rank subtractions such as IC (99) or IL (49) triggers the validation error 'Use canonical subtractive Roman numeral notation.'

Standard ASCII Roman numerals cover integers from 1 (I) through 3,999 (MMMCMXCIX).
Entering 0, negative numbers, decimal fractions, or integers of 4,000 or higher in Arabic mode returns 'Enter an integer from 1 to 3,999.' Classical Roman notation has no character for 0 (medieval Latin manuscripts wrote nulla instead).
Because a single symbol cannot repeat four times (MMMM is non-canonical), numbers from 4,000 upward require a horizontal overbar (vinculum) that multiplies a numeral by 1,000. Since plain-text strings do not support overlines reliably across fonts, canonical converters cap integer input at 3,999. For large powers of ten and E-notation, use the Scientific Notation Converter.


Convert an integer between bases 2 through 36.
Open tool
Calculate arithmetic or bitwise operations on binary integers.
Open toolUse this free scientific notation converter to convert decimals and E-notation (like 2.5e-3 or 12345) into standard form, coefficient, and power of 10.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this free long division calculator to find the whole-number quotient, remainder, and Euclidean equation (a = b × q + r) for integers up to 1 billion.
Open tool
Use this free modulo calculator to compute the non-negative Euclidean remainder (a mod b) for positive or negative integers between -1 billion and 1 billion.
Open tool
Find the greatest common factor of the supplied integers.
Open tool
Calculate the number of calendar days between two dates.
Open toolAnswers about using Roman Numeral Converter and understanding its results.
Break the integer into thousands, hundreds, tens, and ones, then replace each place value with its canonical Roman token: 1000=M, 900=CM, 500=D, 400=CD, 100=C, 90=XC, 50=L, 40=XL, 10=X, 9=IX, 5=V, 4=IV, and 1=I. For example, 1999 breaks into 1000 (M) + 900 (CM) + 90 (XC) + 9 (IX) = MCMXCIX.
Scan the numeral from left to right. Whenever a smaller value precedes a larger value (IV, IX, XL, XC, CD, CM), treat the pair as a single subtractive token (4, 9, 40, 90, 400, 900); otherwise add each symbol's value (M=1000, D=500, C=100, L=50, X=10, V=5, I=1). To use the tool, set Input notation to Roman, enter the letters, and click Convert numeral.
Under canonical rules, no symbol (I, X, C, M) may appear more than three times consecutively. Because 3,000 is MMM and there is no standard single-character ASCII symbol for 5,000, 3,999 (MMMCMXCIX) is the largest number representable without overline (vinculum) notation.
Convert the month (1 to 12), day (1 to 31), and four-digit year (1 to 3999) as three separate integers in Arabic mode, then join the three outputs with dots or hyphens. For example, 07/04/1776 converts as 7 -> VII, 4 -> IV, and 1776 -> MDCCLXXVI, giving VII.IV.MDCCLXXVI.
Canonical subtractive notation only allows subtracting a power of ten (I, X, C) from the next two higher symbols (I from V or X, X from L or C, and C from D or M). Subtracting I (1) directly from M (1000) violates place-value separation and is rejected.
To convert an Arabic integer (1 to 3999) to a canonical Roman numeral in Excel or Google Sheets, use =ROMAN(2026) (or =ROMAN(2026, 0) for strict classical form). To convert a Roman numeral back to an integer, use =ARABIC("MMXXVI").
Choose another tool for your next calculation, conversion, or text task.