Decimal to Hexadecimal Converter

Convert decimal numbers (base 10) into hexadecimal (base 16). Convert integers and fractions with detailed explanations.

Enter a decimal number

Enter a positive or negative decimal number. You can also convert decimal fractions using the precision setting.

Applies only to numbers containing a decimal fraction.
Hexadecimal digits: Hexadecimal uses 16 symbols: 0–9 and A–F. For example, decimal 10 is hexadecimal A, and decimal 15 is hexadecimal F.

How to convert decimal to hexadecimal

  1. Enter a decimal number using base 10 digits.
  2. Choose the desired precision if the number contains a fraction.
  3. Choose uppercase or lowercase hexadecimal letters.
  4. Click Convert to Hexadecimal.
  5. Review the division or multiplication steps and the final result.

Decimal to hexadecimal conversion examples

Decimal (base 10) Hexadecimal (base 16)
10A
15F
1610
261A
10064
255FF
256100
1024400
4095FFF
65535FFFF

Understanding the hexadecimal number system

Hexadecimal is a base-16 number system used extensively in computing and digital electronics. It uses sixteen symbols: the digits 0 through 9 and the letters A through F.

The letters represent decimal values from 10 to 15. For example, A represents 10, B represents 11, and F represents 15.

To convert a decimal integer into hexadecimal, divide the number repeatedly by 16 and read the remainders in reverse order. For decimal fractions, multiply the fractional part by 16 repeatedly and record the integer parts.

Hexadecimal is particularly useful because one hexadecimal digit represents exactly four binary bits. This makes hexadecimal a compact way to represent binary data.

Frequently asked questions

What is the hexadecimal equivalent of decimal 255?

Decimal 255 is FF in hexadecimal.

How do I convert decimal numbers to hexadecimal manually?

Divide the integer part by 16 repeatedly, record the remainders and read them in reverse order. For fractions, multiply the fractional part by 16 and record each integer digit.

Can this converter handle negative numbers?

Yes. It converts the absolute value and places a negative sign before the hexadecimal result.

Can decimal fractions be converted to hexadecimal?

Yes. The converter supports decimal fractions and lets you select the maximum number of hexadecimal fractional digits. Some fractions have repeating hexadecimal expansions.

What is the difference between decimal and hexadecimal?

Decimal uses ten symbols (0–9), while hexadecimal uses sixteen symbols (0–9 and A–F). The two systems represent the same numerical values using different bases.

Related number conversion tools

Confirm these URLs against your existing website pages before publishing.