Decimal to Hexadecimal
Convert decimal numbers to hex instantly. For example, 255 in decimal is FF in hex.
Decimal to Hexadecimal — quick reference
| Decimal | Hexadecimal |
|---|
How to use the Decimal to Hexadecimal
- Type or paste your decimal value on the left.
- Read the hex result on the right — separate multiple values with spaces.
- Copy the result, or check the reference table below.
About the Decimal to Hexadecimal
This tool converts decimal numbers to hex. Decimal is base 10, written with the digits 0 through 9; hex is base 16, written with 0-9 and A-F. Type a value on the left and the hex result appears instantly, and you can convert several values at once by separating them with spaces.
Worked example. Take 255 in decimal and divide repeatedly by 16, reading the remainders from bottom to top: 255 ÷ 16 = 15 remainder 15 (F); 15 ÷ 16 = 0 remainder 15 (F). Reading upward gives FF.
Designers and programmers alike make this jump constantly: a channel value of 255 becomes FF in a colour code, and an address or an error number becomes a short hex string that is far quicker to read than its decimal form. Packing four bits into each digit is what makes hex so compact, and the conversion loses nothing — a whole number is simply rewritten, never rounded. The table below lists further decimal-to-hex pairs you can confirm by eye, and because it all runs in your browser, the numbers you paste are never sent anywhere. For the reverse direction use the hex to Decimal converter, or the all-in-one number base converter for arbitrary bases.
Frequently asked questions
What is 255 in decimal converted to hex?
255 in decimal equals FF in hex. You can confirm it with the worked example above, or by typing 255 into the converter.
Is this decimal to hex conversion exact?
Yes. Converting a whole number between bases changes only how it is written, not its value, so there is no rounding. 255 and FF are the same quantity expressed in base 10 and base 16.
Can I convert more than one decimal value at once?
Yes. Separate each decimal value with a space and every one is converted to hex on its own, in order.
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser with JavaScript; nothing you type is sent to a server.

