Hexadecimal Converter: Simple, Fast, and Effective

Enter a value in either field to convert between decimal and hexadecimal

⇄
Result: Enter a value to see the conversion
Step-by-Step Calculation:
Enter a value to see the calculation steps

Worked example: decimal to hex

Convert 202 to hexadecimal using repeated division by 16:

Checking it the other direction confirms this: C×16¹ + A×16⁰ = (12×16) + (10×1) = 192 + 10 = 202.

Worked example: hex to decimal

Convert FF to decimal using positional place values: F×16¹ + F×16⁰ = (15×16) + (15×1) = 240 + 15 = 255. This is the maximum value a single byte can hold, which is why FF shows up constantly in color codes and byte-level programming.

How decimal points are handled

Hexadecimal is a whole-number positional system in this tool's implementation — entering a value with a decimal point, like 202.75, drops the fractional part and converts only the integer portion (202 → CA), rather than attempting a fractional hex expansion. The result panel tells you explicitly when this truncation happens.

Negative numbers

Both fields accept a leading minus sign. A negative decimal converts the absolute value to hex and prepends the sign (e.g., −202 → −CA); a hex value like −FF converts back to −255 the same way.