Enter a decimal number
Enter a positive or negative decimal number. You can also convert decimal fractions using the precision setting.
How to convert decimal to hexadecimal
- Enter a decimal number using base 10 digits.
- Choose the desired precision if the number contains a fraction.
- Choose uppercase or lowercase hexadecimal letters.
- Click Convert to Hexadecimal.
- Review the division or multiplication steps and the final result.
Decimal to hexadecimal conversion examples
| Decimal (base 10) | Hexadecimal (base 16) |
|---|---|
| 10 | A |
| 15 | F |
| 16 | 10 |
| 26 | 1A |
| 100 | 64 |
| 255 | FF |
| 256 | 100 |
| 1024 | 400 |
| 4095 | FFF |
| 65535 | FFFF |
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
- Hexadecimal to Decimal Converter
- Decimal to Binary Converter
- Binary to Decimal Converter
- Decimal to Octal Converter
- Octal to Decimal Converter
- Number Base Converter
Confirm these URLs against your existing website pages before publishing.