Decimal to Hex

Tool processing runs in your browser — your pastes/files are not uploaded to our servers for processing. Ads (if shown) load separately and do not receive your tool inputs.Advertising · Details

Quick answer

To convert decimal to hexadecimal, divide by 16 repeatedly and read the remainders (10–15 → A–F) from last to first — for example 255 → FF. TryDevSnip's converter does it instantly and exactly, even for very large values, all in your browser.

Decimal to hex chart

DecimalHex
10A
15F
1610
311F
10064
12880
255FF
256100
10003E8
65535FFFF

Reverse or related: hex to decimal · decimal to binary · binary to decimal · all bases

Worked example: 255

Every positional number system works the same way — each digit is multiplied by the base raised to its position, counting from zero on the right. For 255 in decimal:

DigitPlaceWeightContribution
2102100200
51011050
510015
Total (decimal)255

Written in hexadecimal that is 0xFF.

Quick reference

Decimaldecimalhexadecimal
111
222
444
888
1010A
161610
323220
646440
10010064
12812880
255255FF
256256100

Things that trip people up

Frequently asked questions

How do I convert decimal to hex?

Divide the number by 16 repeatedly, writing down the remainders (10–15 become A–F) from last to first. For example 255 ÷ 16 = 15 r15 → FF. Or paste it into the converter and read the hex instantly.

What is 255 in hex?

255 (decimal) is FF in hexadecimal — two hex digits, the maximum value of one byte.

Do I get an uppercase or lowercase hex result?

The converter shows uppercase hex (FF). Hex is case-insensitive, so ff and FF are the same value — lowercase it if your code style requires.

Is my input uploaded?

No. TryDevSnip converts locally in your browser. Nothing you type is uploaded to our servers for processing.

TryDevSnip