Decimal (base 10) to Hexadecimal (base 16) Converter
A number base says how many distinct digits a positional system uses. Use the converter below to turn decimal (base 10) into hexadecimal (base 16) and back.
· CalcFlow Editorial
255 decimal = FF hex
Results shown are estimates for informational purposes only. Nothing on CalcFlow is financial, tax, legal, or medical advice. Always consult a qualified professional before making important decisions.
Decimal (base 10) to Hexadecimal (base 16) Conversion Table
| Decimal (base 10) | Hexadecimal (base 16) |
|---|---|
| 1 decimal | 1 hex |
| 2 decimal | 2 hex |
| 4 decimal | 4 hex |
| 8 decimal | 8 hex |
| 10 decimal | A hex |
| 16 decimal | 10 hex |
| 64 decimal | 40 hex |
| 100 decimal | 64 hex |
| 255 decimal | FF hex |
| 1,000 decimal | 3E8 hex |
Hexadecimal (base 16) to Decimal (base 10) Conversion Table
| Hexadecimal (base 16) | Decimal (base 10) |
|---|---|
| 1 hex | 1 decimal |
| 2 hex | 2 decimal |
| 4 hex | 4 decimal |
| 8 hex | 8 decimal |
| 10 hex | 10 decimal |
| 16 hex | 16 decimal |
| 64 hex | 64 decimal |
| 100 hex | 100 decimal |
| 255 hex | 255 decimal |
| 1,000 hex | 1000 decimal |
Worked example: 255 decimal = FF hex. Decimal 255 is binary 11111111, octal 377 and hexadecimal FF.
Need other units? Open the full Number Base Converter.
Popular Number Bases Conversions
Formula
value = sum of digit x base^position; hex digits 0-9 and A-F; base 36 uses 0-9 and A-ZUnderstanding Number Bases Conversion
A number base says how many distinct digits a positional system uses. Humans count in base 10. Computers store numbers in base 2 (binary) and programmers often write them in base 16 (hexadecimal) because each hex digit stands for exactly four bits. Octal (base 8) groups bits in threes and still appears in file permissions. This tool converts whole non-negative numbers up to 9,007,199,254,740,991 (2^53 - 1), the largest integer that is always exact.
Tips and Best Practices
- 1One hex digit equals four binary digits, so 0xFF is 11111111.
- 2Binary 1010 is decimal 10, hex A.
- 3Add 0x or 0b prefixes only in code; this tool wants plain digits.
Real-World Example
Decimal 255 is binary 11111111, octal 377 and hexadecimal FF.
Common Mistakes to Avoid
- Entering a digit that does not exist in the base, such as 2 in binary.
- Confusing letter O with zero in octal and hex.
- Expecting fractions or negatives; only whole non-negative numbers are supported.
How to Use
- Type a number in the Decimal (base 10) box.
- The Hexadecimal (base 16) result appears instantly; you can also edit the Hexadecimal (base 16) box to convert backwards.
- Use the swap button to reverse the direction and Copy result to copy the answer.
Frequently Asked Questions
How many hexadecimal (base 16) are in 10 decimal?
How many decimal (base 10) are in 10 hex?
What is the formula to convert decimal (base 10) to hexadecimal (base 16)?
What is 255 in hex?
Sources: Standard positional numeral systems; ECMAScript Number.MAX_SAFE_INTEGER = 2^53 - 1.