Numeral system Converter

Convert a whole number between decimal, binary, octal and hexadecimal.

Open in the full calculator → — with every other tool, the AI tutor and PNG export.

How it calculates

Read the value in its base, then write it in bases 10, 2, 8 and 16

Worked example

255 (decimal) = 11111111 (binary) = 377 (octal) = FF (hexadecimal).

From the Knowledge Base

156 ÷ 2 = 78 remainder 0
78 ÷ 2 = 39 remainder 0
39 ÷ 2 = 19 remainder 1
19 ÷ 2 = 9 remainder 1
9 ÷ 2 = 4 remainder 1
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1

Reading upward: 156 = 10011100 in binary

Check by positional expansion: 128 + 0 + 0 + 16 + 8 + 4 + 0 + 0 = 156 ✓

Quoted from Number System Conversions — Binary, Decimal and Hexadecimal.

From the Knowledge Base

Split: 1001 | 1100
1001 = 8 + 0 + 0 + 1 = 9
1100 = 8 + 4 + 0 + 0 = 12 = C

So 10011100 = 9C in hexadecimal.

Check against decimal: (9 × 16) + 12 = 144 + 12 = 156 ✓ — the same number we started with in example 1.

Quoted from Number System Conversions — Binary, Decimal and Hexadecimal.

Learn the method

About this converter

One of the unit converters in the Chemistry Calculator Suite, alongside its chemistry, physics and maths tools. Nothing is behind a login and no value you type is sent anywhere — the conversion runs in your own browser.

The Numeral system converter above is the live tool — it converts right here on the page. The link under it opens the full suite with this set already selected.

Other converters