Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) instantly.
What Does This Tool Do?
Computers work in different number systems — binary for machine code, hexadecimal for memory addresses and colors, octal in some Unix permissions. This tool lets you type a number in any of these bases and instantly see its equivalent in all the others.
Key Features
How to Use This Tool
- Enter your number in the Input box.
- Select the base your number is written in (binary, octal, decimal, or hex).
- Click Convert to see the equivalent in all four bases.
How It Works
The input number is first parsed from your selected base into a standard decimal integer. Then that integer is converted to each target base using the appropriate algorithm: toString(2) for binary, toString(8) for octal, toString(16) for hexadecimal.
Common Use Cases
Frequently Asked Questions
What is hexadecimal used for?
Hexadecimal (base 16) is used extensively in computing for memory addresses, color codes (#FF5733), and representing binary data compactly — two hex digits represent exactly one byte.
How do I recognize which base a number is in?
Binary uses only 0 and 1. Octal uses 0-7. Decimal uses 0-9. Hexadecimal uses 0-9 and A-F. Hex numbers are often prefixed with 0x, binary with 0b.
Related Tools
Link to This Tool
Copy and paste the code below to link to this tool from your website: