Convert decimal numbers (integers and floats) to hexadecimal instantly with batch conversion support. Essential tool for programmers, students, and engineers.
Batch Conversion: Convert multiple decimal numbers at once. Enter one decimal value per line, or separate values with commas, spaces, or tabs. Supports integers and floating-point numbers.
Hexadecimal is a base-16 numeral system that uses digits 0-9 and letters A-F (or a-f). Floating-point numbers in hexadecimal consist of two parts: an integer part and a fractional part separated by a radix point (hexadecimal point).
Floating-Point Conversion Algorithm:
Important Notes on Float Conversion:
| Hex Digit | Decimal Value | Binary (4-bit) | Hex Digit | Decimal Value | Binary (4-bit) |
|---|---|---|---|---|---|
| 0 | 0 | 0000 | 8 | 8 | 1000 |
| 1 | 1 | 0001 | 9 | 9 | 1001 |
| 2 | 2 | 0010 | A | 10 | 1010 |
| 3 | 3 | 0011 | B | 11 | 1011 |
| 4 | 4 | 0100 | C | 12 | 1100 |
| 5 | 5 | 0101 | D | 13 | 1101 |
| 6 | 6 | 0110 | E | 14 | 1110 |
| 7 | 7 | 0111 | F | 15 | 1111 |
Decimal 255 to Hex: 255 ÷ 16 = 15 remainder 15 (F), 15 ÷ 16 = 0 remainder 15 (F). So 255₁₀ = FF₁₆
Decimal 16.5 to Hex: Integer part 16 = 10₁₆, Fractional part 0.5 × 16 = 8.0 → integer 8, so 16.5₁₀ = 10.8₁₆
Decimal 0.1 to Hex: 0.1 × 16 = 1.6 → integer 1, 0.6 × 16 = 9.6 → integer 9, 0.6 × 16 = 9.6 → integer 9 (repeating). So 0.1₁₀ ≈ 0.1999...₁₆ (repeating)
Calculator Features:
255
0xFF
16.5
0x10.8
0.5
0x0.8
3.14159
0x3.243F6...
4096
0x1000
65535
0xFFFF
0.1
0x0.1999...