Number systems with different bases are fundamental in computing. Binary (base 2) is processor language, octal (base 8) for Unix permissions, decimal (base 10) for human readability, and hexadecimal (base 16) for memory addresses, colors, and byte values. Converts between all four bases as you type.
Enter a number in any base and see it converted to all other bases instantly.
Enter a number in any base - binary (base 2), octal (base 8), decimal (base 10), or hexadecimal (base 16) - and all other representations update instantly. Type your number in any field and see the conversions in real time. The tool validates input characters for each base (e.g., binary only accepts 0 and 1) and supports both positive and negative integers.
Number base conversion is essential for low-level programming, networking, and systems work. Binary is used in bitwise operations, register values, and hardware programming. Octal is used in Unix file permissions (chmod). Hexadecimal is used for memory addresses, color codes, MAC addresses, IPv6 addresses, byte values in hex dumps, and cryptographic hashes. Decimal bridges human readability with machine representations.
Conversion uses JavaScript's parseInt(value, fromBase) to convert to decimal, then Number.toString(toBase) to convert to the target base. Supports numbers up to JavaScript's safe integer limit (2^53 - 1 or 9,007,199,254,740,991). Input validation uses regex patterns to ensure only valid characters for each base. Hexadecimal output is shown in uppercase format.
Enter the binary number (e.g., 11010) and the decimal equivalent (26) appears instantly. Each binary digit represents a power of 2, from right to left: 0×2⁰ + 1×2¹ + 0×2² + 1×2³ + 1×2⁴ = 26.
Hexadecimal (base 16) is used in programming to represent binary data compactly. Each hex digit represents 4 binary bits. Common uses include color codes (#FF0000), memory addresses (0x7FFF), and byte values (0xFF = 255).
Each hexadecimal digit maps to exactly 4 binary digits. For example, hex F = binary 1111, hex A = binary 1010, so hex FA = binary 11111010.
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools