Roman Numeral Converter

Convert numbers to Roman numerals and back, both directions.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Roman numeral converter — both directions

This tool converts any whole number from 1 to 3999 into a Roman numeral, and decodes a Roman numeral back into a number. It is handy for writing years on documents, reading clock faces and monument inscriptions, numbering book chapters or appendices, and checking homework. Decoding uses strict validation, so it tells you when a sequence is not a legal numeral.

How it works

To encode, the tool walks a fixed table from the largest value down — 1000 (M), 900 (CM), 500 (D), 400 (CD), 100 (C), 90 (XC), 50 (L), 40 (XL), 10 (X), 9 (IX), 5 (V), 4 (IV), 1 (I) — appending each symbol while it still fits and subtracting its value. This is why 1994 becomes MCMXCIV, not MIM. To decode, it adds each symbol’s value but subtracts when a smaller symbol precedes a larger one (IV = 5 − 1). It then re-encodes the result and rejects the input if the two do not match, catching malformed strings like IIII or VX.

Example

Enter 2026MMXXVI. Decode MCMXCIV1994. Try IIII and it is flagged as invalid because the correct form is IV.

NumberRoman
4IV
9IX
40XL
90XC
2026MMXXVI
3999MMMCMXCIX

Both directions run entirely in your browser — nothing is uploaded.

Ad placeholder (rectangle)