Number Systems Converter

Convert numbers between binary, octal, decimal, hexadecimal, Roman numerals and other bases, with step-by-step working for every conversion.

255 decimal = 11111111 binary

Popular conversions

What is a number system?

A number system is a way of writing numbers with symbols. Everyday numbers use the decimal system, base 10: ten digits (0–9), where each position is worth ten times the one to its right. Other bases work the same way with a different number of digits. Binary (base 2) uses only 0 and 1 and is how computers store everything; hexadecimal (base 16) and octal (base 8) are compact ways for people to write binary.

Roman numerals are different: they are not positional. Letters stand for fixed values (I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1000) that are added together, with a smaller letter placed before a larger one meaning subtraction (IV = 4, XC = 90).

Every conversion on this site shows its working: place values for reading a number, repeated division for writing it in another base, and symbol-by-symbol tables for Roman numerals.

Numbers 0 to 32 in the main systems

Roman numerals have no zero, so the first row is empty for them.

All 12 number systems

Every conversion

Binary to…

Decimal to…

Roman numerals to…

Hexadecimal to…

Octal to…

Duodecimal to…

Ternary to…

Base 36 to…

Vigesimal to…

Quaternary to…

Quinary to…

Senary to…

Frequently asked questions

Why do computers use binary?

Electronic circuits have two reliable states, on and off, which map directly to the digits 1 and 0. Every number, letter, image and instruction in a computer is ultimately stored as binary.

Why do programmers use hexadecimal?

One hexadecimal digit represents exactly four binary digits (bits), so a byte is always two hex digits (00 to FF). Hex is far shorter to read and write than binary and converts to it digit by digit.

Is there a zero in Roman numerals?

No. The Romans had no symbol for zero; medieval scholars sometimes wrote N (for nulla) instead.