Binary/Octal/Decimal/Hex conversion
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
Uses only 0 and 1. This is the fundamental representation method in computers.
Uses 0-9 and A-F. Used for color codes, memory addresses, etc.
Method to represent negative numbers. If MSB is 1, the number is negative.
A tool that converts between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) number systems. Supports bit pattern visualization, signed/unsigned integer modes, and various bit sizes (8/16/32/64 bit) for use in programming, hardware design, and network analysis.
Choose the Settings
Set the input base (2/8/10/16), bit size (8/16/32/64bit), and signed mode.
Enter a Value
Enter a number in the selected base. A hexadecimal value may include A–F.
Review the Conversions
As you type, the converted values appear in every base: binary, octal, decimal, and hexadecimal.
Analyze the Bit Pattern
Use the bit-pattern visualization to inspect each bit's 0/1 value and analyze bitwise-operation results.
A signed integer represents negative numbers using two's complement. If the most significant bit (MSB) is 1, the value is negative. For example, in 8bit, 0xFF is 255 when unsigned and -1 when signed.
In addition to 0–9, hexadecimal uses A(10), B(11), C(12), D(13), E(14), and F(15) to represent values from 10 to 15 in one digit. Letters are case-insensitive.
The bit size determines the range of representable numbers. 8bit can represent 0–255 unsigned or -128–127 signed, while 16bit can represent up to 0–65535 unsigned. Exceeding the range causes overflow.
Octal is mainly used for Unix/Linux file permissions. For example, chmod 755 means rwxr-xr-x, with each digit representing 3 permission bits for read, write, and execute.
Hexadecimal is widely used throughout computer science for memory addresses, color codes (#FF0000), MAC addresses, binary-data representation, network-packet analysis, and more.