What are Roman numerals?

Roman numerals write numbers with seven capital letters: I (1), V (5), X (10), L (50), C (100), D (500) and M (1000). The letters go from largest to smallest and are added up, except that a smaller letter placed before a larger one is subtracted: IV is 4, XC is 90 and CM is 900. They still appear on clock faces and number book chapters, kings and queens, sequels and big sporting events, and film credits often give the year in them.

A random Roman numeral generator makes valid numerals for practice and testing. Teachers turn them into worksheets and flashcards, students race to read them, and developers check that converters, parsers and sorting code handle real numerals.

Tool description

The page starts on Roman numerals, and a first list is ready right away, one numeral per line. Enter how many you want in Count, press Generate for a new set, and copy the list or download it as a text file.

How the numerals are built

  • Every value is a valid numeral in standard notation, from I (1) up to MMMCMXCIX (3999). That's the largest number the seven letters can write, since no letter stands for 5000 and none repeats more than three times in a row.
  • Subtractive pairs appear wherever they belong (IV, IX, XL, XC, CD, CM), never forms like IIII or VIIII.
  • Every number in the range is equally likely, so about three in four numerals are 1000 or more and start with M, while numbers below 100 show up only about once in 40 values.
  • Values use capital letters only, never lowercase forms like xiv.

A few values from a generated list, with the numbers they stand for:

Numeral Value
LXXXVII 87
CDXVII 417
MCMXCVIII 1998
MMMCMLXIX 3969

Good to know

  • There's no range setting, so for practice with numbers below 100, generate a long list and keep the numerals that don't start with C, D or M.
  • Sorted as text, numerals fall out of numeric order: DCCIII (703) comes before LXX (70). That makes a list handy for checking that code sorts them by value.

Features

  • Valid Roman numerals from I to MMMCMXCIX
  • Standard subtractive notation, such as IV and XC
  • A new set with each press of Generate
  • Copy the list or download it as a text file
  • Runs in your browser: nothing you generate is sent anywhere