Decimal ↔ Hex Converter Privacy: All processing runs locally
Convert integers between decimal (base 10) and hexadecimal (base 16), with optional 0x prefix.
How It Works
This tool converts integers between the decimal (base 10) system and the hexadecimal (base 16) system. Hexadecimal uses digits 0-9 and letters A-F (representing values 10-15).
Options include:
- 0x prefix — adds the common hexadecimal prefix used in programming languages like C, JavaScript, and Python
- Uppercase — outputs hex digits as A-F instead of a-f
Examples:
- Decimal 10 = Hex A (0x0A)
- Decimal 16 = Hex 10 (0x10)
- Decimal 255 = Hex FF (0xFF)
- Decimal 4096 = Hex 1000 (0x1000)
- Decimal 65535 = Hex FFFF (0xFFFF)
Hexadecimal is widely used in computing for representing colors (#FF0000 for red), memory addresses, and byte values. When entering hex values, the 0x prefix is automatically stripped. All processing happens locally in your browser.