Number Base Converter
Convert between binary, octal, decimal, and hex
Change number base
What is Number Base Converter?
Number Base Converter is a tool for converting values between binary, octal, decimal, and hexadecimal. It is useful when you want to compare the same number across different representations during programming or debugging.
You can type into any one of the input fields and the other bases update automatically. The tool also supports optional number formatting for better readability.
How to Use
- Enter a value in the binary, octal, decimal, or hexadecimal field.
- Review the converted values in the other fields.
- Toggle formatted display if needed.
- Copy any result with the field-level copy action.
Main Setting
Format Numbers
This setting adds separators to long values so they are easier to read. It is useful when checking long bit patterns or larger numbers. If you want the raw value without separators, turn it off.
- On: binary is grouped by 4 digits, octal and decimal by 3, hexadecimal by 4
- Off: values are shown without grouping
Use Cases
- Switching between values such as
0b1010and0xFF - Checking binary output during bitwise work
- Comparing hexadecimal values with decimal numbers
- Reviewing octal values such as UNIX-style permissions
Supported Bases
- Binary
- Octal
- Decimal
- Hexadecimal
Things to Keep in Mind
- Each field only accepts characters valid for that base
- Spaces and separators in the input are ignored during conversion
- Values above JavaScript's safe integer range cannot be converted accurately