Free Online Tool
Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal with this free Number Base Converter. Get all four base values instantly online.
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal with this free Number Base Converter. Enter the original number together with its base type, and the tool instantly shows the equivalent value in all four number systems.
The converter supports:
| Number System | Base | Input Format | Example |
|---|---|---|---|
| Binary | 2 | binary:number | binary:11111111 |
| Octal | 8 | octal:number | octal:377 |
| Decimal | 10 | decimal:number | decimal:255 |
| Hexadecimal | 16 | hex:number | hex:FF |
How to Use the Number Base Converter
The converter needs to know the number system of your input. Type the base name, followed by a colon and the number you want to convert.
For example, to convert decimal 255, enter:
decimal:255
The result will be:
| Number System | Result |
|---|---|
| Binary | 11111111 |
| Octal | 377 |
| Decimal | 255 |
| Hexadecimal | FF |
You can use the same format for any of the four supported bases:
binary:11111111octal:377decimal:255hex:FF
All four examples represent the same numeric value.
Convert Binary, Octal, Decimal and Hexadecimal
The tool converts a number from its original base into four common numeral systems at the same time.
Binary (Base 2) uses only 0 and 1.
Octal (Base 8) uses digits from 0 through 7.
Decimal (Base 10) is the standard number system using digits from 0 through 9.
Hexadecimal (Base 16) uses 0 through 9 and the letters A through F.
Number Base Conversion Examples
| Input | Binary | Octal | Decimal | Hexadecimal |
|---|---|---|---|---|
decimal:10 | 1010 | 12 | 10 | A |
decimal:16 | 10000 | 20 | 16 | 10 |
decimal:100 | 1100100 | 144 | 100 | 64 |
decimal:255 | 11111111 | 377 | 255 | FF |
These examples can also be entered from another supported base. For example, hex:FF, octal:377, and binary:11111111 all convert to decimal 255.
Why Do I Need to Specify the Input Base?
Some numbers are valid in more than one number system. For example, 1010 could be interpreted as binary, octal, decimal, or hexadecimal, and each interpretation represents a different value.
Adding the base before the number removes this ambiguity. Use binary:, octal:, decimal:, or hex: followed immediately by the number.
Common Input Errors
Make sure the number contains only characters allowed by its selected base. Binary accepts only 0 and 1, while octal accepts digits from 0 to 7. Decimal uses digits from 0 to 9, and hexadecimal additionally supports the letters A through F.
For example, binary:102 is not a valid binary number because binary cannot contain the digit 2.
Why Use TextNivo’s Number Base Converter?
The Number Base Converter gives you binary, octal, decimal, and hexadecimal values together, so you don’t need to perform separate conversions. It works directly in your browser and lets you copy or download the result when you’re finished.
No account or sign-up is required.
Questions
Frequently asked questions
What is a Number Base Converter?
A Number Base Converter converts numbers between different numeral systems. TextNivo supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
How do I use the Number Base Converter?
Enter the source base followed by a colon and your number. For example, use decimal:255, binary:11111111, octal:377, or hex:FF. The converter then displays the equivalent value in all four supported bases.
How do I convert binary to decimal?
Enter binary: followed by the binary number. For example, binary:11111111 returns decimal 255, along with its octal and hexadecimal equivalents.
How do I convert hexadecimal to decimal?
Enter hex: followed by the hexadecimal value. For example, hex:FF converts to decimal 255, binary 11111111, and octal 377.
Why do I need to specify the number base?
A value such as 1010 can be valid in several number systems and represents a different value depending on its base. Specifying binary:, octal:, decimal:, or hex: tells the converter how to interpret the input correctly.
Which number bases does this converter support?
The converter supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
Keep going
Related tools
Unicode Converter
Convert text to Unicode escape sequences and back to readable text.
Base64 Converter
Convert text to Base64 or decode Base64 to text with this free online Base64 Converter. Encode, decode, copy or download your result instantly.
URL Encoder/Decoder
Encode text for safe use in a URL, or decode a URL-encoded string.
HTML Entity Converter
Convert text to HTML entities or decode HTML entities to text with this free HTML Entity Converter. Encode and decode special characters instantly.
Handy to know
Popular tools
Explore the rest of the toolbox
121 free browser-based text tools — no sign-up, nothing ever uploaded.
View all tools