How to Use
Enter a number:
- Hex → Decimal: Enter hex value (e.g., FF, 1A3)
- Decimal → Hex: Enter decimal value (e.g., 255)
- Prefix: 0x prefix is optional
Conversion Method
Each hex digit is multiplied by 16 raised to its position (right-to-left, starting at 0). FF = F×16¹ + F×16⁰ = 15×16 + 15×1 = 240 + 15 = 255.
Common Values
- 0xFF = 255 (max byte value)
- 0xFFFF = 65535 (max 16-bit)
- 0xDEADBEEF = 3735928559
- 0x7FFFFFFF = 2147483647 (max 32-bit signed)
Step-by-Step Instructions
- 1Select conversion direction.
- 2Enter the value to convert.
- 3View the result in decimal/hex.
- 4Check binary and octal representations.
- 5Review the step-by-step breakdown.