Hex Calculator
Hexadecimal arithmetic and bitwise operations with base conversion
Hex Arithmetic & Bitwise
= 255 decimal · 0377 octal
= 10 decimal · 012 octal
Result
Base Converter
Decimal
255
Hexadecimal
0xFF
Octal
0o377
Binary
1111 1111
Quick Reference: 0–15
| Dec | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Hex | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| Oct | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| Bin | 0000 | 0001 | 0010 | 0011 | 0100 | 0101 | 0110 | 0111 | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 |
Frequently asked questions
What number format does the calculator use?
All calculations use 32-bit unsigned integers (uint32). Results are wrapped modulo 2^32, matching standard hardware registers and most low-level programming contexts.
What does the NOT operation do?
NOT is a unary bitwise operation that flips every bit of Operand A. For example, NOT(0x000000FF) = 0xFFFFFF00, which is 4294967040 in decimal.
How do I enter negative numbers?
The calculator works with unsigned 32-bit values. To represent −1 in two's complement, enter FFFFFFFF; −2 is FFFFFFFE, and so on.
What does the binary nibble display show?
The result is displayed as groups of 4 bits (nibbles) with alternating shading. Each nibble corresponds to one hex digit, making it easy to read the binary representation.