Binary Converter

Convert numbers instantly between binary (base 2), decimal (base 10), hexadecimal (base 16), and octal (base 8). Type in any field and all others update.

Advertisement

How to Use

Type a number in any field (decimal, binary, hex, or octal) and all other fields update automatically. Hexadecimal accepts uppercase or lowercase letters.

Bit Width Information

Below the fields, the converter shows the minimum bits required to represent the value and groups binary into nibbles (4 bits) and bytes (8 bits) for readability.

Advertisement

Frequently Asked Questions

Binary is a base-2 number system using only 0 and 1. It is the fundamental language of computers because electronic circuits can represent two states: on (1) and off (0).

Each binary digit represents a power of 2 starting from the right. Multiply each digit by 2 raised to its position, then sum. For example, binary 1011 = 8+0+2+1 = 11 in decimal.

Hexadecimal (base 16) uses digits 0-9 and letters A-F. Each hex digit represents exactly 4 binary digits, making it a compact way to express binary values. Memory addresses, color codes, and byte values are commonly expressed in hex.

Octal is a base-8 number system using digits 0-7. Each octal digit represents exactly 3 binary digits. Octal is used in Unix/Linux file permissions (e.g., chmod 755).

This converter handles integers up to 2^53 - 1 (9,007,199,254,740,991 in decimal), which is the limit of JavaScript's Number type for exact integer arithmetic.

Related Calculators

More tools in the Developer Tools category.

Advertisement