All four bases at once
One entry shows the value in binary, octal, decimal and hexadecimal together, so you never convert in steps.
Convert a number between binary, octal, decimal and hexadecimal.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Convert a whole number between binary, octal, decimal and hexadecimal in one step, and see the same value written out in all four bases at once.
Number bases are just different ways to write the same quantity. Enter a value, tell the converter which base it is in, and it shows the equivalent in binary, octal, decimal and hexadecimal all at once.
decimal 255 = 2·100 + 5·10 + 5·1
binary 11111111 = 128+64+32+16+8+4+2+1
hex FF = 15·16 + 15·1Every base works the same way — each digit is worth the digit times the base raised to its position.
One hexadecimal digit covers exactly four binary bits, so FF is 11111111. That is why hex is the shorthand of choice for colours, memory addresses and byte values.
Conversions run locally in your browser using integer arithmetic — nothing is uploaded and no account is needed.
Step by step
Type a value and choose the base it is written in.
Read the decimal equivalent as the headline.
See the same number in binary, octal, decimal and hexadecimal in the table.
Why use it
What this tool is good for, and what it deliberately does not try to do.
One entry shows the value in binary, octal, decimal and hexadecimal together, so you never convert in steps.
Hex letters can be upper or lower case and a leading 0x is ignored, matching how bases are written in code.
The input is checked against the selected base — a '2' in binary is rejected rather than silently misread.
Questions
Short, honest answers about quality, limits and privacy.