Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly, with support for any custom base from 2 to 36.
Binary
11111111
Octal
377
Decimal
255
Hexadecimal
FF
Custom base (2–36)
255
About the Number Base Converter
A number base converter converts numbers between binary, octal, decimal, and hexadecimal, with support for any custom base from 2 to 36, useful for programming and computer science tasks.
The same value in different bases
| Base | Value (representing decimal 255) | |
|---|---|---|
| Binary (2) | 11111111 | |
| Octal (8) | 377 | |
| Decimal (10) | 255 | |
| Hexadecimal (16) | FF |
How to use
1
Select the base of your input number.
2
Enter the value you want to convert.
3
View the equivalent value in binary, octal, decimal, hexadecimal, and any custom base you specify.
Frequently asked questions
Why is hexadecimal commonly used in programming?
Hexadecimal maps neatly onto binary, since each hex digit represents exactly four bits, making it a more compact way to represent binary values like memory addresses or color codes.
What letters are used for digits above 9 in hexadecimal?
Hexadecimal uses A through F to represent the values 10 through 15.
Related tools
Explore more tools in the Developer category.