Type a decimal number and its hexadecimal value appears instantly, e.g. 255 = FF. Paste a list to convert every number at once, separated by spaces, commas or new lines. Very large numbers stay exact, and negative numbers can be shown with a minus sign or as two's complement.
How do I convert decimal to hex?
Divide by 16 and note each remainder (10 to 15 are A to F), then read the remainders from last to first. 2020 gives 4, 14 (E) and 7, so it is 7E4. This page does it for you as you type.
Can I convert a list of numbers?
Yes. Separate them with spaces, commas or new lines and each one is converted in place. A single number with thousands separators, like 1,000,000, is read as one number.
How are negative numbers shown?
With a minus sign by default (-1A). Choose two's complement to get the bits a computer stores, using the smallest of 8, 16, 32 or 64 bits that fits, so -1 becomes FF.
Does it handle decimals and very large numbers?
Yes. Very large numbers stay exact, and fractions are converted too (10.5 is A.8). Fractions that never end in hex stop after 16 hex digits.
Can I convert hex back to decimal?
Yes. Use Hex to Decimal.