Number Base Converter
Convert a number between binary, octal, decimal and hexadecimal instantly. Type a value, choose the base it is written in and the base you want, and see the result — plus the value in all four bases at once. Everything runs in your browser, so nothing is uploaded.
Result:
| Base | Value |
|---|---|
| Binary (2) | |
| Octal (8) | |
| Decimal (10) | |
| Hex (16) |
How to use it
- Type or paste the number you want to convert into the Value field.
- Set From base to the base your number is currently written in.
- Set To base to the base you want the result in.
- The result appears instantly, along with a table showing the value in binary, octal, decimal and hex at once.
Why use it
Developers, students and anyone working close to the metal constantly switch between binary, octal, decimal and hexadecimal — reading color codes, debugging bitmasks, inspecting memory addresses or working through computer-science exercises. This converter does all four at once with no install and no data leaving your machine, so you can sanity-check a value in a couple of seconds.
Frequently asked questions
Is this number base converter free?
Yes. The number base converter runs entirely in your browser and is free to use with no login and no credit card. Nothing is sent to a server.
Which number bases are supported?
You can convert between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Pick any base as the source and any base as the target, and the value is shown in all four bases at once.
How does the conversion work?
The tool reads your input with the chosen "from" base and re-prints it in the "to" base using the browser's native parseInt and toString methods. Invalid digits for the selected base are flagged immediately.