Type a number between 1 and 3999 to get the Roman numeral, along with the value of each part that makes it up.
How a Roman numeral is put together
Seven letters carry all the values: I is 1, V is 5, X is 10, L is 50, C is 100, D is 500 and M is 1000. Writing a number means taking the largest value that fits, writing its letter, subtracting it, and repeating until nothing is left. For 2026 that gives M, another M, then X, X, V and I: MMXXVI. Letters run from the largest on the left to the smallest on the right, which is why the order is never a matter of taste.
The exception is subtraction, and there are exactly six cases: CM is 900, CD is 400, XC is 90, XL is 40, IX is 9 and IV is 4. A smaller letter placed before a larger one is taken away from it rather than added. Only I, X and C are ever subtracted, and only from the two values directly above them, which is why the list stops at six. It also means 49 is XLIX and never IL, however tempting the shorter form looks.
That rule is what keeps four of the same letter from appearing in a row. Four is IV rather than IIII, nine is IX rather than VIIII, and forty is XL rather than XXXX. V, L and D never repeat at all, because two of any of them would simply be the next letter up: VV would be X, and no one writes it.
You will still see IIII on clock faces, and that is not a mistake in the clock. Watchmakers settled on it long before the notation was standardised, and it survives for a visual reason: IIII at four balances VIII at eight across the dial, so the numerals look evenly weighted. It is a convention of the trade, not of the number system, and the two have simply lived side by side for centuries.
The standard system stops at 3999, which is MMMCMXCIX. Anything larger would need a fourth M, and four repeats are not standard notation. The Romans handled bigger numbers with a vinculum, a bar over a letter that multiplies it by a thousand, so V with a bar is 5000. That is a different system, it renders badly in most fonts, and it rarely survives a copy and paste, so this converter stops where the standard one does.