Other calculators

Hex, decimal and binary converter

Type a number in hexadecimal, decimal or binary and see the other two formats instantly.

Type in any of the three fields. Works with positive integers of any size.

What does it do?

Converts numbers between hexadecimal, decimal and binary at the same time: type in any of the three fields and the other two update instantly. It works with very large numbers.

Why does it matter?

Networking and programming use all three bases constantly: binary for masks and bits, hexadecimal for MAC addresses, IPv6, colors and memory, and decimal for everything else. Converting in your head is slow and error-prone.

How does it work?

Each base writes the same number with different symbols: base 2 (0 and 1), base 10 (0 to 9) and base 16 (0 to 9 and A to F). Calculations use the browser's arbitrary-precision numbers, so there's no practical size limit. Everything is processed in your browser.

How to read the result

Hexadecimal
Each digit equals 4 bits. FF = 255 = 11111111.
Binary
Every 4 binary digits equal one hex digit: 1111 = F.

What is it for?

Frequently asked questions

Why is hexadecimal used?

Because each digit represents exactly 4 bits, making it a short, exact way to write binary data.

Can I type "0x" in front?

Yes, the 0x prefix is accepted and ignored.