The Excel HEX2DEC function converts a hexadecimal (base-16) number to decimal (base-10) — a staple for digital electronics, low-level programming, and bit manipulation.
Syntax
| Argument | Description | |
|---|---|---|
number | Required | The hexadecimal number to convert, as text or a value. |
How to use it
HEX2DEC converts a hexadecimal (base-16) value to decimal (base-10). The result is returned as text for non-decimal, or a number for decimal.
Round-trip tip: every conversion has an inverse — pair this with the reverse function to validate. All base functions cap inputs at 10 characters (signed), so very large numbers need a different approach.
Try it: interactive demo
Type a hexadecimal value and watch it convert to decimal.
Practice workbook
Frequently asked questions
Why is the HEX2DEC result text, not a number?
What is the places argument for?
Why do I get #NUM!?
How do negative numbers work?
Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class