Developer tools TOOL
Number base converter
Convert integers accurately between binary, octal, decimal and hexadecimal, even with many digits.
Enter your text
On-device processingNumber base converter · How to use
Convert integers accurately between binary, octal, decimal and hexadecimal, even with many digits.
Example
Decimal 255 → hexadecimal ff → binary 11111111
Things to know
Converts integers between bases 2, 8, 10 and 16. Fractions are not supported.
Output options
Your files and results are never sent to a server. Everything is processed in this browser.
How to convert an integer to another number base
Use it when you need to read a hex error code as decimal, or expand permission bits into binary. Calculator apps often round very large numbers, but this tool uses exact integer math for inputs up to 10,000 digits.
When to use this tool
- Read a hexadecimal error code as decimal
- Expand a bit flag value into binary
- Compare Unix file permissions in octal and binary
- Check the hex form of an integer larger than 64 bits
Step-by-step instructions
- Enter the integer to convert, or choose Use sample.
- Under Input base, pick the base of your number.
- Under Output base, pick the base you want.
- Choose Convert, then copy or download the result.
Frequently asked questions
Can I type prefixes such as 0x or 0b?
No. Enter digits only, so 0xFF becomes FF and 0b1010 becomes 1010, then set the matching input base. Digits separated by spaces or underscores are also rejected.
Why is the hexadecimal result in lowercase?
Results use lowercase letters such as ff, and there is no uppercase option. Input accepts both cases. If you need uppercase, run the result through the text case converter.
Does it convert fractions or negative numbers?
Only integers are supported, so a value like 12.5 cannot be converted. A negative number keeps its minus sign in the result; it is not turned into a two's complement bit pattern.