Convert between Arabic and Roman Numerals


Skip navigation.

Site search

Site navigation

Sample output

Days since 01/01/1970 (UNIX epoch):

XMXCMXXIX (standard)

XCXXXIX (optimised)

Time on the server (in seconds):


Try it

For Roman to Arabic conversion, use _M to replace M etc.

To download the script(s), and see the script license, use the links on the navigation panel at the top of this page.

How does the conversion work?

(Note: this page shares the strict doctype used by most pages on this site, but the underline element used by this script requires a transitional doctype, so yes, this page will not validate. If you want your page to validate, make sure you use a transitional doctype when using this script.)

This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.