Convert a number between binary, octal, decimal and hexadecimal — decimal 255 is 11111111 in binary, 377 in octal and FF in hex. Enter a value in any base and the other three update instantly, right in your browser.
Converts live below as you type. Integers only; digits above 9 are written as A–Z.
What is base conversion?
Base (radix) conversion is expressing the same number in different bases. For example, decimal 255 is 11111111 in binary, 377 in octal, and FF in hexadecimal. The value itself is identical and only the notation changes, which comes up often in programming, networking, and digital circuits.
How to convert between bases
- Choose the input base — pick which base your number is written in (decimal by default).
- Enter the number — type the value and the binary, octal, decimal, and hexadecimal results appear right below.
- Check and copy a custom base — if needed, pick another base in the "custom base" selector and use each result's "Copy" button to put it on your clipboard.
What are binary, octal, decimal, and hexadecimal?
Binary uses the two digits 0 and 1, octal uses 0–7, decimal uses the everyday 0–9, and hexadecimal uses 0–9 plus A–F. Computers work in binary internally, while color codes (#FF8800) and memory addresses are commonly written in hexadecimal.
Can it convert arbitrary bases like base 2 to 36?
Yes. It can convert to and from any base from 2 up to 36. Digits above 9 are written with the letters A (=10) through Z (=35), and you can pick the base you want in the "custom base" box below the results.
Does it convert very large numbers accurately?
Yes. This tool computes with arbitrary-precision integers (BigInt), so it converts numbers with a very large number of digits without any rounding error. It supports integers only and does not handle fractional parts. If needed, you can add a minus sign (-) to convert negative numbers too.
Are the values I enter stored on a server?
No. Every conversion happens entirely inside your browser, and the values you enter are never sent to or stored on a server. Refreshing the page clears the results, so copy any values you need beforehand.