Binary, Decimal & Hex Converter
Enter a number in binary, decimal, hexadecimal, or octal and see instant conversions to all four bases. Includes a bit-level layout, ASCII character lookup, and step-by-step conversion methods.
Input
Conversions
Bit Layout
Step-by-Step Conversion
1. Decimal to Binary (Division Method)
2. Binary to Decimal (Positional Method)
3. Decimal to Hexadecimal
Reference Guide
Binary (Base 2)
Binary uses only 0 and 1. Each position represents a power of 2. Computers store all data in binary.
Hexadecimal (Base 16)
Hex uses digits 0-9 and letters A-F. Each hex digit represents exactly 4 binary bits, making it a compact way to display binary data.
Division Method
To convert decimal to binary, repeatedly divide by 2 and record the remainders. Read the remainders from bottom to top to get the binary number.
ASCII Encoding
ASCII maps numbers 32-126 to printable characters. For example, 65 is the letter A, 97 is lowercase a, and 48 is the digit 0.