Number Converters · Browser · Free

Decimal to Hexadecimal Converter

Type a decimal (base 10) number or enter decimals with e notation (e.g. 572 = 5.72e2) to get the value in hexadecimal (base 16), along with binary and octal forms. Use the on-screen keypad to tap digits, signs, and decimal points, inspect little-endian and big-endian byte tables, and swap conversion direction with one click.

How this converter works

Decimal is base 10 and hexadecimal is base 16, so this converter rewrites one value in the other spelling. Hexadecimal needs six more single digits than decimal does, and letters stand in for them, printed uppercase: the table lists 10 as A and 15 as F. Binary and octal representations are displayed alongside the hexadecimal answer.

You can type standard decimal integers, fractional values, or numbers formatted in scientific e-notation, such as 5.72e2 for 572. Focusing the input reveals an on-screen keypad with digits 0 through 9, a minus sign, and a decimal point for convenient input. Pressing Convert evaluates the result in your browser.

Below the result, integer conversions display two byte breakdown tables: Little endian and Big endian. Each table maps memory addresses 0 to n to two-character hexadecimal byte values, showing how multi-byte numbers are stored across different system architectures. A Swap conversion button instantly moves the result back into the input and swaps the source and target bases for reverse conversion.

Decimal to hexadecimal formula

Both systems are positional: each digit is taken with the place it sits in, and each place is worth the base times the place to its right. In decimal the base is 10. In hexadecimal the base is 16, so the places are worth ones, then sixteens, then a place sixteen times the sixteens again; the table row 256 = 100 is where that third place begins.

To read a hexadecimal number back, take each digit together with its place and add. The row 31 = 1F holds one group of sixteen plus F, the digit the table gives for 15. The row 255 = FF fills the sixteens place and the ones place with F, and one more unit pushes the value to the 256 = 100 row. In 1024 = 400 the digit 4 sits in that third place with zeros in the two places before it.

Digits to the right of a fractional point follow the same positional rule, with the place shrinking by a factor of sixteen at each step to the right. A sign in front of the number carries over as it is.

Decimal to hexadecimal conversion table
Decimal (base 10)Hexadecimal (base 16)
00
11
22
33
77
88
10A
15F
1610
311F
3220
6440
10064
255FF
256100
1024400