Hex Converter

Common integer values

BinaryOctalDecimalHex

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 number conversion

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.

Integers, fractions, and long values

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.

Hex to decimal, binary, octal, or text

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.

Hex converter FAQ

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.

Can I enter 0x, negative values, or fractions?

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.

Are long hexadecimal values converted exactly?

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