Developer utility · hex to decimal converter
Hex to Decimal Converter
Convert a hexadecimal integer to decimal with a readable place-value breakdown. Enter uppercase or lowercase digits, with an optional 0x prefix. The page also shows the equivalent binary, octal and UTF-8 interpretations so you can check both the number and its byte meaning.
Up to 4,096 characters. No value is sent to a server.
Your conversion results will appear here.
Choose an input format, enter a value and select Convert to see binary, decimal, hex, octal and text results.
Use the tool
How to use this converter
- 1
Enter hexadecimal digits from 0–9 and A–F.
- 2
Select Convert to calculate the decimal value.
- 3
Check the base-16 weighted sum, then copy the decimal result.
Understand the result
How it works
Each hexadecimal digit is multiplied by a power of 16 based on its position. A represents 10, B 11, through F 15. For 2A, the calculation is 2×16¹ + 10×16⁰ = 32 + 10 = 42. For 0xEE, it is 14×16¹ + 14×16⁰ = 224 + 14 = 238. BigInt keeps the decimal result exact for large values.
Practical notes
How to read a hexadecimal number
Start from the rightmost digit with 16⁰ = 1. Move left by multiplying the place value by 16 each time: 1, 16, 256, 4096 and so on. Convert any letter to its numeric value, multiply each digit by its place value, and add the terms.
For example, 243A equals 2×16³ + 4×16² + 3×16¹ + 10×16⁰ = 8192 + 1024 + 48 + 10 = 9274. The step panel keeps the non-zero terms visible so you can verify the decimal result.
Practical notes
Worked example: hexadecimal EE to decimal
The 0x prefix identifies the number as hexadecimal; it is not an additional digit. E represents 14, so 0xEE is 14×16 + 14 = 238 in decimal. The same value can also be written as 238₁₀, 11101110₂ and EE₁₆.
This place-value method is for an unsigned hexadecimal integer. A fixed-width byte, a signed two’s-complement value and a sequence of UTF-8 bytes can assign different meanings to the same digits, so the intended representation should be stated before interpreting the result.
- 0x2A = 42 in decimal.
- 0x100 = 256 in decimal.
Practical notes
Hexadecimal is compact binary notation
Each hex digit represents four binary bits: A is 1010, F is 1111 and 0 is 0000. This makes hex useful for reading bytes, bit masks and machine-oriented values. When a value represents a fixed-width byte, leading zeroes can be meaningful even though the numeric decimal result does not need them.
The input accepts both cases and normalizes the Hex result to uppercase. Spaces are allowed in numeric fields, but the input format still needs to be selected explicitly so plain digits are not guessed as another base.
- A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15.
- Two hex digits represent one byte, from 00 through FF.
- A `0x` prefix is notation for hexadecimal, not part of the numeric value.
Quick reference
Examples
0x2A
42
2 × 16 + 10
0xEE
238
14 × 16 + 14
243A
9274
2×16³ + 4×16² + 3×16 + 10
Common questions
FAQ
What is 2A in decimal?
2A in hexadecimal is 42 in decimal.
What is 0xEE in decimal?
0xEE is 238 in decimal: E is 14, so 14×16 + 14 = 238.
Are lowercase hex letters accepted?
Yes. The input accepts both uppercase and lowercase A–F and always formats the output in uppercase.
Can I convert a 256-bit hexadecimal value?
Yes. BigInt handles large integer values without the rounding that JavaScript Number would introduce.
How do I convert 2A to decimal?
A equals 10, so 2A is 2×16 + 10 = 42 in decimal.
Does lowercase hex produce a different decimal value?
No. Lowercase and uppercase A–F represent the same hexadecimal values. RadixLab accepts both and displays uppercase Hex output.
