Productivity

Number Base Converter

Convert between binary, octal, decimal, hex, and Roman numerals.

All tools

Number bases

Binary:    101010
Octal:     52
Decimal:   42
Hex:       2A
Roman:     XLII
ASCII:     *

Frequently asked questions

Why convert between binary, hex, and decimal?
Programmers use binary and hex to read bytes, memory addresses, and color codes, while decimal is the everyday number system. Converting between them is common when debugging or reading documentation.
How do Roman numerals fit in?
Roman numerals use letters like I, V, X, L, C, D, and M to represent values. They are still used for clock faces, book chapters, and movie sequels, so quick conversion to and from decimal is handy.
Is there a maximum number this supports?
Standard Roman numerals only go up to 3999 (MMMCMXCIX). Binary, octal, decimal, and hex conversions work safely up to the JavaScript integer range.