Hex Calculator — Free Online Hexadecimal Converter and Arithmetic
Convert between hexadecimal, decimal, and binary numbers and perform hex arithmetic including addition, subtraction, and multiplication.
Conversion Results
Hex to Decimal
0x1A3F = 6719
Hex to Binary
0x1A3F = 1101000111111
Decimal to Hex
6719 = 0x1A3F
Decimal to Binary
6719 = 1101000111111
Hex-Decimal-Binary Reference Table
| Hex | Decimal | Binary | Use Case |
|---|---|---|---|
| 0A | 10 | 00001010 | Newline character (LF) |
| 20 | 32 | 00100000 | Space character (ASCII) |
| 41 | 65 | 01000001 | Letter 'A' (ASCII) |
| FF | 255 | 11111111 | Maximum byte value |
| FFFF | 65,535 | 1111111111111111 | Max 16-bit value |
| FF0000 | 16,711,680 | 111111110000000000000000 | CSS Red (#FF0000) |
| 7FFFFFFF | 2,147,483,647 | 01111...1 (31 ones) | Max signed 32-bit int |
Related Calculators
Binary Calculator
Convert between binary and decimal, perform binary arithmetic operations.
GCF Calculator
Find the Greatest Common Factor of two or more numbers using the Euclidean algorithm.
Factor Calculator
Find all factors, factor pairs, and determine if a number is prime or composite.
Scientific Calculator
Advanced calculations with trigonometry, logarithms, and scientific functions.
Percentage Calculator
Calculate percentages, percentage change, and more with five operation modes.
Grade Calculator
Calculate weighted grades and GPA across multiple assignments and courses.
About this calculator
Hexadecimal Conversion Formulas
Hex to Decimal
D = h(n) x 16^n + h(n-1) x 16^(n-1) + ... + h(1) x 16 + h(0) x 1 Decimal to Hex
Repeatedly divide by 16, read remainders bottom-to-top (10=A ... 15=F) Hex to Binary
Replace each hex digit with its 4-bit binary equivalent Hex Digit Values
0-9 = 0-9, A=10, B=11, C=12, D=13, E=14, F=15 Variables Explained
- h(n), h(n-1), ..., h(0): The individual hexadecimal digits, where h(0) is the rightmost (least significant) digit. Each digit has a value from 0 to 15.
- 16^n: The positional weight of each hex digit. From right to left: 1, 16, 256, 4096, 65536, and so on (powers of 16).
- D: The decimal (base-10) equivalent of the hexadecimal number.
Step-by-Step Example
Convert hex 1A3F to decimal:
- Identify positional values: 16^3=4096, 16^2=256, 16^1=16, 16^0=1
- Map hex digits: 1=1, A=10, 3=3, F=15
- Multiply and sum: 1x4096 + 10x256 + 3x16 + 15x1
- Calculate: 4096 + 2560 + 48 + 15 = 6719
Hex 1A3F = decimal 6719. In binary, this is 0001 1010 0011 1111 (each hex digit maps to 4 binary bits: 1=0001, A=1010, 3=0011, F=1111). This 4:1 mapping between binary and hex is what makes hexadecimal so useful in computing.
Sources
- Khan Academy — Number Systems: khanacademy.org
- Math is Fun — Hexadecimal Numbers: mathsisfun.com
- Purplemath — Number Bases: purplemath.com
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026