Hexadecimal Calculator & Converter
Calculate in base 16 or convert between hexadecimal and decimal, including exact fractional values.
Result
How is this calculated?
Weight hexadecimal digits by powers of sixteen. Letters A through F represent digit values ten through fifteen.
Worked example: Add across a hexadecimal carry
Hexadecimal FF plus 1 is 100 in base 16. Check the decimal row: 255 + 1 = 256.
Method and limits
Parentheses mark recurring digits, and an ellipsis marks an abbreviated result. Arithmetic keeps exact values internally. The sign is written explicitly; this is not a fixed-width two’s-complement tool.
How to use this calculator
- Choose arithmetic, conversion to decimal, or conversion from decimal. Enter the second value only for arithmetic.
- Check the input base on the field label. Read the result in the labeled base; the exact ratio in arithmetic uses decimal integers.
Add across a hexadecimal carry
Hexadecimal FF plus 1 is 100 in base 16. Check the decimal row: 255 + 1 = 256.
Read a hex place
The symbols A to F mean ten through fifteen. In 2F, the 2 is in the sixteens place and the F means fifteen, giving 2 × 16 + 15 = 47.
Interpret a fractional hex digit
A digit immediately right of the point represents sixteenths. Hexadecimal A.8 is therefore 10 + 8/16 = 10.5. A point is not a separator between bytes.
Check an unsigned byte boundary
FF is the largest nonnegative quantity in eight unsigned bits. FF + 1 is displayed as 100, not 00: this calculator does not truncate to a fixed width or apply overflow.
Frequently asked questions
- Can the tool read lowercase and 0x?
- Yes. For hexadecimal input, ff, FF, and 0xFF all represent 255. Output letters are uppercase.
- Can I paste a CSS color or byte array?
- This is numeric hexadecimal, not a color parser or byte decoder. Remove a leading # and use only a contiguous numeral if you mean its numeric value.
- What does 0.(5) mean?
- The fractional digit 5 repeats in the base of that result row. In base 16, that expansion is exactly one third.
- Does the converter pad to a fixed number of digits?
- No. It outputs the numeric value without padding, grouping, or width-specific signed interpretation.
Common mistakes and limits
- Digits must be contiguous; do not use digit-group marks or hardware-width conventions.
- A parenthesis pair marks recurring digits; a trailing ellipsis means the expansion was abbreviated.
Sources & methodology
Related calculators
- Binary Calculator & Converter
Calculate in base 2 or convert between binary and decimal without rounding the internal value.
- IPv4 and IPv6 Subnet Calculator: CIDR, Masks and Ranges
Find the exact network block, address count, endpoints and IPv4 subnet mask from an address and prefix. No network lookup.
- Bandwidth, File Transfer Time and Data Calculator
Find ideal download or upload time, convert data units, or estimate average data usage and website traffic.
- URL Component Encoder and Decoder
Encode a single value or decode URL percent escapes without leaving this page. Choose form decoding only when plus signs mean spaces.