Maximum byte value
255 in decimal equals FF in hex — the highest value a single byte can hold, as seen in #FFFFFF white.
Convert decimal to hexadecimal instantly, e.g. 255 to FF — free online hex converter.
About
Hexadecimal is how programmers write colour codes, memory addresses and byte values, so converting decimal to hex is the everyday step between a number you'd naturally type — like an RGB value of 255 — and the hex form code actually uses, like FF.
Converting by hand means dividing by 16 and mapping each remainder to 0–9 or A–F: 255 ÷ 16 is 15 remainder 15, which gives F and F — FF. Every value from 0 to 255 fits in at most two hex digits, which is why a colour like rgb(255, 136, 0) is written #FF8800.
Examples
3 worked examples
255 in decimal equals FF in hex — the highest value a single byte can hold, as seen in #FFFFFF white.
4096 in decimal equals 1000 in hex.
87 converts to 57 in hex — the green pair in the colour #FF5733.
FAQ
Quick answers to common questions about the Decimal to Hexadecimal Converter.
Type your decimal number above, with decimal selected as the input base. The hexadecimal value appears instantly in the results table — nothing is uploaded anywhere.
Divide the number by 16 repeatedly and keep each remainder, writing 10-15 as A-F: 255 ÷ 16 = 15 remainder 15. Reading the remainders bottom to top gives FF.
255 in decimal is FF in hexadecimal — the maximum value a single byte can hold, which is why FF shows up so often in colour codes like #FFFFFF for white.
Yes. It's free, with no sign-up and no limit on how many numbers you convert.
Yes — the same converter works in both directions. Select hexadecimal as the input base instead, or use the dedicated hex to decimal converter page.
Up to 9,007,199,254,740,991 — beyond that the conversion won't be exact, and the tool will tell you so.
Convert each channel separately and join them: 255, 87 and 51 become FF, 57 and 33, so the colour is #FF5733. Pad single-digit results with a zero, so 9 becomes 09.
With a minus sign, so -255 becomes -FF. Programs usually store negatives in two's complement instead — -1 is FFFFFFFF as a 32-bit value — so work that out separately if you need the stored form.
Uppercase digits like FF are easier to read next to other text. Hex isn't case-sensitive, so ff in CSS, code or a URL means exactly the same value.
Did Decimal to Hexadecimal Converter work for you?