Number Base Converter

Convert between binary, octal, decimal, and hexadecimal. Enter in any base and see all four simultaneously.

Processed on your device β€” never uploaded
Binary (Base 2)
0b1111 1111
Octal (Base 8)
0o377
Decimal (Base 10)
255
Hexadecimal (Base 16)
0xFF

Valid Characters

Binary: 0, 1
Octal: 0-7
Decimal: 0-9
Hexadecimal: 0-9, A-F

Frequently Asked Questions

How do I convert binary to decimal?
Select "Binary (Base 2)" as the input base, enter your binary number, and the decimal equivalent appears instantly alongside octal and hexadecimal values.
What is the difference between binary, octal, decimal, and hexadecimal?
They are number systems with different bases: binary uses 2 digits (0-1), octal uses 8 (0-7), decimal uses 10 (0-9), and hexadecimal uses 16 (0-9, A-F).
How do I convert hex to binary?
Select "Hexadecimal (Base 16)" as the input, enter your hex value, and the binary conversion is displayed automatically.