Decimal to Hexadecimal Converter

Formula: Repeatedly divide by 16, map remainders to hex digits (0-9, A-F)

Decimal to Hex Converter

Converting decimal to hexadecimal is essential for programming, web development (color codes), and low-level computing.

Conversion Formula

Repeatedly divide by 16, map remainders to hex digits (0-9, A-F)

Divide the number by 16 repeatedly. Each remainder becomes a hex digit (0-9, then A-F for 10-15). Read the remainders in reverse order.

Step-by-Step Examples

255 = FF

255÷16=15r15. Both are F, giving FF.

256 = 100

256÷16=16r0, 16÷16=1r0, 1÷16=0r1. Read up: 100.

Frequently Asked Questions

How do you convert decimal to hex?

Divide by 16 repeatedly and map each remainder: 0-9 stay the same, 10=A, 11=B, 12=C, 13=D, 14=E, 15=F. Read remainders bottom-to-top.

What is 256 in hex?

256 in decimal equals 100 in hex (1×16² = 256).

Is hex case-sensitive?

No. FF and ff both represent 255. This converter outputs uppercase by convention.

What is the hex for RGB color white?

White is RGB(255, 255, 255), which is #FFFFFF in hex.

How do I convert a hex color to decimal?

Split the 6-digit hex into 3 pairs (RR, GG, BB) and convert each pair to decimal. #FF5733 = R:255, G:87, B:51.