What does this hex converter convert?
It treats the input as a base-16 number and shows the equivalent binary, octal, decimal, and hexadecimal values.
| Binary | Octal | Decimal | Hex |
|---|
Convert a hexadecimal number to decimal, binary, and octal in one step. Use it for memory addresses, byte values, Unicode code points, bit fields, and other compact base-16 notation.
Hexadecimal uses digits 0–9 and letters A–F. One hex digit represents exactly four binary bits, so conversion between hex and binary keeps every bit without approximation. Fractional hex digits are powers of one-sixteenth.
Enter a positive or negative number with an optional radix point. Spaces and underscores may be used as visual separators, and the usual 0x prefix is accepted. Every output is calculated from an exact fraction, so long integers do not lose digits and terminating fractional values are not rounded through JavaScript floating-point numbers.
Use the four results above for numeric conversion. When hexadecimal pairs represent encoded character bytes rather than a number, open Hex to Text. To encode ordinary text as hexadecimal bytes, use Text to Hex.
It treats the input as a base-16 number and shows the equivalent binary, octal, decimal, and hexadecimal values.
Yes. You can include an optional 0x prefix, a leading plus or minus sign, and a fractional part that uses digits 0–9 and letters A–F.
The converter uses exact integer and fractional arithmetic, so long values are not rounded through ordinary floating-point numbers.
Related number tools: Binary Converter · Hex Converter · Custom Base Converter · Binary to Hex · Hex to Decimal