Hexadecimal to Decimal Converter
Enter a hexadecimal number (with or without 0x). Results update as you type.
Hex to decimal conversion table
| Hex (base 16) | Decimal (base 10) | Calculation |
|---|
How to Use This Hex to Decimal Converter
A debugger spits out 0xFF, a CSS file lists #2563EB, and a serial log shows raw hex bytes—but your spreadsheet, ticket system, or mental math wants ordinary base-10 numbers. Hand-converting hex on scratch paper means mapping A–F to 10–15, tracking powers of sixteen, and hoping you did not drop a carry. In our testing, one wrong nibble silently shifts memory offsets and color channels by entire steps.
Think of hex like a compact shipping label for binary: every hex digit packs four binary bits, so long bit strings shrink to half the character count. You still read it left to right like decimal, but each column counts sixteens instead of tens. This converter does the place-value multiplication while you paste addresses, color codes, or firmware values.
- Enter the hex value in the Hex number field. A leading
0xprefix is optional; spaces are stripped automatically. - Read the decimal result as values update. Fractional hex such as
0.8is supported when you need sub-unit precision. - Check binary output for the integer portion when you are tracing bit patterns alongside the decimal answer.
- Select a bit width for signed two’s complement interpretation—match 8-, 16-, 32-, or 64-bit to your microcontroller or register size.
- Use the calculation steps panel to audit each power-of-sixteen term before pasting the decimal into documentation.
- Click a sample row in the built-in table to load common values like
FFor100without retyping.
Nothing uploads to a server. Conversion runs in JavaScript on your device, which keeps proprietary memory maps and unreleased firmware offsets off third-party logs.
Hex to Decimal Formulas and Practical Applications
Hexadecimal is base 16. Digits 0–9 behave like decimal; letters A–F carry values 10 through 15. Each position leftward multiplies the digit by a higher power of sixteen, exactly the way decimal columns multiply by ten.
Integer hex to decimal
To get started, walk digits from right to left, multiplying each symbol by 16^n where n starts at zero on the rightmost digit.
Decimal = Σ (digit × 16^position)
Example walkthrough: 3B hex. The right digit B equals 11, so 11 × 16&sup0; = 11. The left digit 3 contributes 3 × 16¹ = 48. Sum: 59 decimal. The steps panel in the calculator card prints this breakdown for whatever you paste.
Fractional hex values
Moving onto values right of the hex point, each position uses negative powers of sixteen—the same idea as decimal tenths and hundredths, but with base sixteen divisors.
Fraction = Σ (digit × 16^−k)
Example: 0.8 hex equals 8 × 16⊃-1 = 0.5 decimal. Handy when datasheets express fractional offsets in hex notation.
Signed two’s complement
Embedded registers often store signed integers in fixed bit widths. Values at or above half the range represent negative numbers when the high bit acts as a sign flag. Pick the bit width that matches your platform before reading the signed decimal line.
Where developers use hex-to-decimal daily
Memory and debugging: Translate stack pointers and error codes from hex logs into decimal for comparison against documentation. Web colors: After isolating channel bytes from a hex color string, paste them here before updating design tokens—pair with our RGB to Hex Color Converter for full color workflows. Encoding pipelines: Jump to the ASCII, Hex, Binary, Decimal Converter when you need character mapping alongside raw numbers. Binary arithmetic: Cross-check results in the Binary Calculator when operands stay in base 2. CSS theming: See our guide on Hex to HSL for Tailwind CSS variables when hex values feed design systems.
Standard Units and Conversion Tables
Hex digits map cleanly to decimal and binary nibbles. Four bits equal one hex digit; two hex digits equal one byte (0–255).
- Single digits: A = 10, F = 15.
- Byte ceiling: FF = 255 (maximum unsigned 8-bit value).
- Power-of-two anchors: 100 = 256, 400 = 1024.
- Common color channel max: FF per RGB channel in eight-bit color.
The interactive table above the FAQ lists additional hex samples with calculation columns. In practical environments, I keep FF and 100 mentally loaded—they appear constantly in color work, buffer sizes, and alignment offsets.
Frequently Asked Questions
What is hexadecimal?
Base-16 numbering where each digit represents 0–15 using symbols 0–9 and A–F. It compactly represents binary data because four bits fit in one hex digit.
How do I convert hex to decimal by hand?
Multiply each digit by 16 raised to its place value (rightmost is 16&sup0;) and sum the products. The calculation steps panel in this tool shows that breakdown for any input you enter.
What does signed two’s complement mean?
When a fixed bit width treats the highest bit as a sign flag, values above half the range represent negative numbers. Select 8-, 16-, 32-, or 64-bit width to match your hardware or language integer size.
Does the converter accept a 0x prefix?
Yes. Leading 0x or 0X is stripped before conversion. Spaces inside the string are ignored as well.
Is my hex data sent to a server?
No. All conversion runs locally in your browser. Values stay on your device unless you copy or share them yourself.