Number Base Converter
Convert between binary, octal, decimal and hexadecimal.
What this tool does
Computers count in binary, programmers often use hexadecimal, and we usually think in decimal. This tool converts numbers between bases so you can read and write values in the system you need.
How to use this tool
- 1
Choose the base you are typing in
Decimal, binary, octal or hexadecimal. Typing FF while base 10 is selected is rejected.
- 2
Enter the value
Letters A to F are only valid in base 16.
- 3
Read the other bases
Decimal, binary, octal and hex are shown together so you can compare them.
What you can do with it
- All four bases at once
One input is shown as decimal, binary, octal and hexadecimal, rather than converting in pairs.
- Clear rejection
A value that does not belong to the selected base is refused instead of being silently misread.
When to use it
- You are working with binary or hex values in code or networking.
- You want to understand how a number looks in another base.
- You need to convert a decimal number for a technical task.
- You are learning about number systems.
How to understand this tool
The bases are different ways of writing the same number, not different numbers. Hexadecimal is used because one hex digit maps to exactly four bits, so it compresses binary without losing the structure. A 0x prefix is a common way to mark a hex value in code, but the digits are what matter here.
What it will not do
- It does not accept fractional values.
- It does not convert between bases larger than 16.
Questions people ask
What is hexadecimal?
Base 16, using digits 0-9 and letters A-F. Each hex digit represents four binary bits.
Why do programmers use hex?
It is a compact, human-readable way to write binary values like colours and memory addresses.
One thing worth knowing
Conversions use standard, widely accepted factors. Rounded results are shown to a practical number of decimals.