Free online number base converter
A number base converter translates integers between positional numeral systems. Type a value in one base and see the equivalent in binary, octal, decimal, and hexadecimal — all at.
Saved to favorites
Your favorites are on the home page under “Your favorites.” They are saved only in this browser on this device, so they will not appear on another device or browser. No account, no server.
How to use
- Type the number to convert in the Value field.
- Set From base to the current base of your number.
- Set To base to the target base.
- Results update automatically — no button needed.
Formulas
To parse a value in base b:
decimal = sum of (digit × b^position) for each digit, right to left
To express a decimal integer n in base b:
repeatedly divide n by b, collecting remainders right-to-left
Worked example
Convert 255 (decimal) to hexadecimal:
255 ÷ 16 = 15 remainder 15 → F
15 ÷ 16 = 0 remainder 15 → F
Read remainders right-to-left → FF
Convert FF (hex) to binary:
F = 1111 in binary
FF = 11111111 in binary (8 bits)
Standard representations
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
References
Frequently asked
What is a number base?
How does base conversion work?
Why is hexadecimal used in computing?
What characters are valid in each base?
Does this support negative numbers?
How do I share a conversion?
Embed this calculator
Add this free calculator to your own site. Copy the snippet — it works anywhere you can paste HTML, and stays in sync with this page.
Related calculators
- Combinations calculator
Count combinations and permutations without repetition.
- Factorial calculator
Calculate n! for any non-negative integer.
- Data storage converter
Convert between bits, bytes, kilobytes, megabytes, and larger units.
- Data rate converter
Convert between bits per second, Mbps, Gbps, and other data rate units.
- Average calculator
Compute mean, median, mode, and range for a set of numbers.