Free Number Base Converter
Last updated: March 16, 2026
A number base converter transforms values between binary, octal, decimal, and hexadecimal number systems. Enter a number below and select the base to convert instantly.
Convert between binary, octal, decimal & hexadecimal instantly. ASCII text to binary/hex mode included. Free online tool — no signup required.
Developers, security professionals, and power users who work with encoded data and character conversions.
100% free, runs entirely in your browser — no signup, no data sent to any server.
How to Use the Number Base Converter Tool
Number Base Converter Features and Options
About the Free Online Number Base Converter
Common Conversions Reference Table
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 100 | 1100100 | 144 | 64 |
| 127 | 1111111 | 177 | 7F |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
| 1024 | 10000000000 | 2000 | 400 |
| 65535 | 1111111111111111 | 177777 | FFFF |
How to Convert Number Bases Online
1. Choose your mode. Use Number Mode to convert a single number between bases. Use ASCII Text Mode to see the binary, octal, decimal, and hex codes for each character in a string.
2. Select your input base. In Number Mode, choose whether you are entering a binary, octal, decimal, or hexadecimal number from the dropdown.
3. Type or paste your number. The converter shows results in all four bases simultaneously as you type. Invalid digits for the selected base are flagged immediately.
4. Copy your result. Click Copy next to any output to copy it to your clipboard. Use the reference table below the converter for quick lookups of common values.
Understanding Number Systems in Computing
Every number system uses a set of digits and a base (also called radix) that determines how values increase at each position. The decimal system you use every day has base 10 with digits 0 through 9. Computers, however, operate on binary (base 2) because transistors have two states: on and off, represented as 1 and 0.
Binary (base 2) is the foundation of all digital computing. Every piece of data in a computer, from text to images to video, is ultimately stored as a sequence of binary digits (bits). A single byte consists of 8 bits, giving it 256 possible values (0 to 255). While binary is fundamental, it is difficult for humans to read because even small numbers require long strings of digits.
Hexadecimal (base 16) solves the readability problem. Because 16 is a power of 2, each hex digit maps to exactly 4 binary digits. This makes hex a compact shorthand for binary data. A single byte can be written as two hex digits instead of eight binary digits. This is why hex is the standard format for memory addresses, color codes in CSS and design tools, MAC addresses, and byte-level data inspection.
Octal (base 8) was historically important in early computing when systems used 12-bit, 24-bit, or 36-bit words that divided evenly into 3-bit groups. Today, octal is most commonly seen in Unix and Linux file permissions, where the three permission categories (owner, group, others) each use a single octal digit to represent read, write, and execute permissions. For example, chmod 755 sets rwxr-xr-x permissions.
Understanding how to convert between these systems is essential for programming, networking, cybersecurity, and systems administration. Whether you are reading hex dumps, setting file permissions, debugging memory, or working with color values, fluency in number bases makes you a more effective developer.
Frequently Asked Questions About Number Base Converter
How do I convert binary to decimal?
Each binary digit represents a power of 2, starting from the right. For example, binary 1011 = (1 x 8) + (0 x 4) + (1 x 2) + (1 x 1) = 11 in decimal. This converter does it instantly — just select Binary as your input base and type your number.
What is hexadecimal and why do developers use it?
Hexadecimal (base 16) uses digits 0-9 and letters A-F to represent values. Developers use it because each hex digit maps to exactly 4 binary digits, making it a compact way to represent binary data. It is commonly used for memory addresses, color codes (like #FF5733), and byte values.
What is the difference between binary, octal, decimal, and hexadecimal?
These are number systems with different bases. Binary (base 2) uses 0-1 and is what computers use internally. Octal (base 8) uses 0-7 and was historically used in Unix file permissions. Decimal (base 10) uses 0-9 and is what humans use daily. Hexadecimal (base 16) uses 0-9 and A-F and is widely used in programming.
What does the ASCII text mode do?
ASCII text mode converts each character in your text into its numeric code in all four bases. For example, the letter 'A' is 65 in decimal, 01000001 in binary, 101 in octal, and 41 in hexadecimal. This is useful for understanding how text is stored in computer memory.
Can this tool handle large numbers?
Yes, this tool handles numbers up to JavaScript's safe integer limit (2^53 - 1, or 9,007,199,254,740,991 in decimal). For most programming tasks, this range is more than sufficient. Numbers beyond this limit may lose precision.
What are common uses for number base conversion?
Common uses include debugging memory addresses (hex), understanding file permissions (octal in Unix/Linux), analyzing network protocols (binary), working with color codes in CSS (hex), interpreting byte values in data files, and understanding how computers store data at the hardware level.
How do hex color codes work?
Hex color codes like #FF5733 represent RGB values in hexadecimal. FF = 255 red, 57 = 87 green, 33 = 51 blue. Each pair of hex digits represents one byte (0-255) for a color channel. You can use this converter to decode individual hex values to decimal to understand the exact color intensity.
Is my data sent to a server?
No. All conversions happen in your browser using JavaScript. Your numbers and text never leave your device.
Related Free Online Tools
Convert number bases here, then use our other developer tools for encoding, hashing, and formatting.