Number to Roman Numeral Converter

Convert integers to Roman numerals

Type a value above — result appears instantly

Standard I-MMMCMXCIX · Extended overline up to 3,999,999 · Batch via comma

Number to Roman Numeral Converter

Type any whole number from 1 to 3,999,999 and get the numeral straight away, along with the subtractions that built it. Paste a comma-separated list to convert several at once, or copy the link to send someone the exact result.

1994 becomes MCMXCIV. Tap a piece to see why.

CM is 1000 − 100, so it adds 900.

1000 + 900 + 90 + 4= 1,994

How to convert a number to Roman numerals

  1. Enter a number

    Any whole number from 1 to 3,999,999. For a batch, separate them with commas, like 42, 1994, 2026.

  2. Read the numeral

    It updates as you type. Above 3,999 some letters get a bar over them, which means times 1,000.

  3. Check the working

    The steps panel lists each subtraction: what came off, which letters it wrote and what is left.

  4. Copy it or send the link

    Copy any single result, or use the share link so the same conversion opens on someone else's screen.

How the conversion works

The method is greedy: take the biggest value in a fixed table that still fits, write its letters, subtract, repeat. The table has 25 rows from 1,000,000 down to 1, and pairs like CM and IV are rows of their own, so no step needs a special case.

The loop

for (letters, value) in TABLE:while number >= value:result += lettersnumber -= valuereturn result
Working through 1994
SubtractWritesLeftSo far
1994 − 1000M994M
994 − 900CM94MCM
94 − 90XC4MCMXC
4 − 4IV0MCMXCIV
1994 = MCMXCIV

The six subtractive pairs

I can sit before V or X, X before L or C, and C before D or M. Nothing else subtracts, so 99 is XCIX and never IC.

  • IV

    4

    5 − 1

    not IIII

  • IX

    9

    10 − 1

    not VIIII

  • XL

    40

    50 − 10

    not XXXX

  • XC

    90

    100 − 10

    not LXXXX

  • CD

    400

    500 − 100

    not CCCC

  • CM

    900

    1000 − 100

    not DCCCC

Seven letters, and a bar for the big numbers

Everything is built from these seven letters. A bar drawn over a letter multiplies it by 1,000, which is how numerals past 3,999 get written. You will mostly meet the bar in old legal records and formal inscriptions.

Smallest to largest, one way to remember them:

I Value Xylophones Like Cows Dig Milk

  • I1A single stroke, the oldest tally mark.
  • V5Often explained as an open hand.
  • X10Commonly read as two Vs meeting at the point.
  • L50Thought to be half of an older sign for 100.
  • C100From centum, Latin for hundred.
  • D500Thought to be half of an old sign for 1,000.
  • M1,000From mille, Latin for thousand.

With a bar on top

  • V

    5,000

  • X

    10,000

  • C

    100,000

  • M

    1,000,000

A few conversions worth seeing

  • 4 in Roman numerals

    IV

    Not IIII. The Romans wrote both, but IV is the form used today. Clock faces are the exception.

  • 42 in Roman numerals

    XLII

    XL is 40 and II is 2.

  • 1994 in Roman numerals

    MCMXCIV

    Three subtractive pairs back to back, which is why it trips people up.

  • 2026 in Roman numerals

    MMXXVI

    MM is 2000, XX is 20, VI is 6. Pure addition, no subtraction at all.

  • 3888 in Roman numerals

    MMMDCCCLXXXVIII

    Fifteen letters, the longest numeral you can write without a bar.

  • 5000 in Roman numerals

    V

    One letter with a bar over it. The bar multiplies by 1,000.

Questions people ask

Limits, the subtractive rules, batch mode and that clock oddity.

Take the biggest value from the list (1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1) that still fits, write its letters, subtract it and repeat with what is left. For 1994 that gives M, then CM, then XC, then IV: MCMXCIV. The converter shows each of those steps.

UntangleTools Logo
UntangleTools Logo
UntangleTools Logo