Hex Converter

Common integer values

BinaryOctalDecimalHex

Convert a hexadecimal number to decimal, binary, and octal in one step. Use it for colors, 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.

Related number tools: Binary Converter · Hex Converter · Custom Base Converter · Binary to Hex · Hex to Decimal