Decimal to Hex Converter
Convert decimal (base 10) numbers to hex (base 16) — any length, with the other bases shown too.
Convert decimal (base 10) numbers to hex (base 16) — any length, with the other bases shown too.
Results
Enter your details and click Calculate to see your results.
About This Calculator
Each decimal digit is multiplied by its power of 10 to get the value, which is then written in base 16.
Example
Example: the default inputs → Result: 255 (base 10) = FF (base 16).
Assumptions
Whole numbers only (any size; negative numbers keep their sign). Prefixes 0x, 0b and 0o are ignored.
Frequently Asked Questions
How do I convert decimal to hex?
Read the decimal value digit by digit (powers of 10), then repeatedly divide by 16 to write it in hex.
What is 255 in hex?
FF (base 16)
Related Calculators
About the Author

Imran Hossain
Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile