0x Hex Tool
Hex Calculator
Perform hexadecimal arithmetic and convert between hex, decimal, binary and octal number systems — live as you type.
0
Input base:
HEX 16click to copy
0
Base 16 • Digits: 0–9, A–F
DEC 10click to copy
0
Base 10 • Digits: 0–9
BIN 2click to copy
0
Base 2 • Digits: 0–1
OCT 8click to copy
0
Base 8 • Digits: 0–7
What is hexadecimal?
Hexadecimal (base 16) is a positional numeral system using 16 symbols: 0–9 and A–F. It is widely used in computing because it compactly represents binary data — each hex digit maps to exactly 4 binary bits. One byte (8 bits) is always two hex digits, making hex ideal for memory addresses, colour codes and machine code.
Common uses include HTML/CSS colour codes (#FF5733), memory addresses (0x7FFE), Unicode code points (U+1F600), and network MAC addresses.
Frequently asked questions
How do I add hexadecimal numbers?
Enter your hex expression in the calculator (e.g. 1A + 2F) and press =. The calculator converts to decimal, performs the operation, then shows the result in all four bases simultaneously.
How do you convert hex to decimal?
Multiply each hex digit by 16 raised to its position. For 1A: (1×16¹) + (A×16⁰) = 16 + 10 = 26. The converter tab lets you type in any base and instantly see all others.
What are bitwise operations?
AND, OR, XOR and NOT are bitwise operators that work on individual bits. AND returns 1 only if both bits are 1. OR returns 1 if either bit is 1. XOR returns 1 if bits differ. NOT flips all bits (32-bit). Shift left (<<) and shift right (>>) move all bits by one position.
What is hexadecimal used for?
Hex is used in: HTML/CSS colour codes (#RRGGBB), memory addresses in debugging, Unicode character codes (U+xxxx), IP and MAC address notation, cryptographic hash values (MD5, SHA), and machine/assembly code representation.
🔗 Related tools