Number Base Converter
Convert numbers between different number systems instantly. Enter a number in decimal, binary, hexadecimal, or octal format and see conversions to all other bases in real-time. Perfect for programmers, students, and anyone working with different number systems.
| Decimal (Base 10) | Binary (Base 2) | Hexadecimal (Base 16) | Octal (Base 8) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 8 | 1000 | 8 | 10 |
| 10 | 1010 | A | 12 |
| 15 | 1111 | F | 17 |
| 16 | 10000 | 10 | 20 |
| 255 | 11111111 | FF | 377 |
All processing happens in your browser. No data is sent to any server.
Embed This Tool
Add this tool to your website with customizable styling
How to Use
Enter a number in any format
Type your number in any of the four input fields: Decimal (base 10), Binary (base 2), Hexadecimal (base 16), or Octal (base 8).
See instant conversions
As you type, all other formats update automatically. The conversion happens in real-time with no need to click a button.
Customize output options
Toggle binary grouping (4-bit groups with spaces) and choose uppercase or lowercase for hexadecimal output.
Copy your results
Click the copy button next to any result to copy it to your clipboard. Use the quick reference table for common conversions.
Frequently Asked Questions
What is binary, and why is it important?
Binary is base-2 numbering using only 0 and 1. It's fundamental to computing because computers process data as electrical signals (on/off), represented as 1s and 0s. All data in computers is ultimately stored and processed in binary.
How do I convert between number bases manually?
For decimal to binary, repeatedly divide by 2 and collect remainders. For binary to decimal, multiply each digit by its place value (powers of 2) and sum them. For hex, each digit represents 4 binary bits.
What's the difference between hexadecimal and octal?
Hexadecimal is base-16 (0-9 and A-F), commonly used in programming for colors (#FF0000) and memory addresses. Octal is base-8 (0-7), historically used in Unix file permissions (chmod 755).
Why does this tool show different results for very large numbers?
JavaScript uses BigInt for numbers larger than 2^53-1 to maintain precision. The tool automatically handles this conversion to ensure accurate results for numbers of any size.