Converter Tool
Enter a hexadecimal number (0-9, A-F). The '0x' prefix is optional. Choose between unsigned and signed (two's complement) interpretation.
Bits:
0
Type:
Unsigned
Binary Representation:
About Number Systems
Hexadecimal System
The hexadecimal system is a base-16 numbering system that uses 16 distinct symbols. These symbols are 0-9 to represent values zero to nine, and A-F (or a-f) to represent values ten to fifteen.
Hexadecimal to Decimal Conversion Table
| Hexadecimal | Decimal | Hexadecimal | Decimal |
|---|---|---|---|
| 0 | 0 | 8 | 8 |
| 1 | 1 | 9 | 9 |
| 2 | 2 | A | 10 |
| 3 | 3 | B | 11 |
| 4 | 4 | C | 12 |
| 5 | 5 | D | 13 |
| 6 | 6 | E | 14 |
| 7 | 7 | F | 15 |
Two's Complement
Two's complement is a mathematical operation used to represent negative numbers in binary systems. It is widely used in computing because it simplifies arithmetic operations such as addition and subtraction.
To convert a positive number to its negative counterpart in two's complement:
- Convert the number to binary.
- Invert all the bits (change 0 to 1 and 1 to 0).
- Add 1 to the result of the inversion.
To convert a negative two's complement number back to decimal:
- Invert all the bits.
- Add 1 to the result of the inversion.
- Convert the result to decimal and prefix it with a negative sign.
Example: 8-bit Two's Complement
Positive Number (5):
0000 0101 (binary)
Negative Number (-5):
1111 1010 (inverted bits of 5)
1111 1011 (add 1 = two's complement representation of -5)
Range for 8-bit Two's Complement:
-128 (1000 0000) to 127 (0111 1111)
Related Tools
Octal to Decimal
Convert octal numbers to decimal effortlessly
Hex to Decimal
Convert hexadecimal numbers to decimal effortlessly
Text to Hex
Convert text to hexadecimal representation effortlessly
JSON Minify
Minified JSON reduces the size of your data, which means it can be transferred over the network more quickly
Volumetric Flow Rate Converter
Convert volumetric flow rate between different units with precision and ease
RGB to CMYK
Convert RGB colors to CMYK values for print design