Home / Base Converter
Base Converter (Binary / Octal / Decimal / Hex)
Enter a value in any one field and it's converted automatically into the other bases. Large integers are fine too.
Enter a number in any of the fields to begin.
Decimal (DEC)
Hex (HEX)
Octal (OCT)
Binary (BIN)
About base (radix) conversion
In computing, besides decimal, binary, octal, and hexadecimal are all commonly used. This tool converts numbers between them. Enter a value in any one field and the remaining fields update automatically.
Input rules
- Hex:
0〜9anda〜f(upper or lower case). The0xprefix is optional. - Octal:
0〜7. Binary:0and1. - A leading
-is treated as a negative number. Large digit counts (BigInt) are supported too.
All calculation happens in your browser, and the values you enter are never sent anywhere.
FAQ
Can it convert very large numbers?
Yes. It uses BigInt internally, so even integers with many digits are converted accurately.
Do I need “0x” for hex?
No. ff and 0xff convert the same way.
Can it convert decimals?
This tool is for integers only. Values with a decimal point aren't supported.
Is my data sent anywhere?
No. Everything is processed in your browser and nothing is sent.
