Hex Converter

Convert between hexadecimal and text, decimal, binary, or RGB color values instantly.

Separator
Case
0 characters · 0 bytes
0 characters · 0 bytes

Drop a file here or click to upload

Hexadecimal, commonly known as hex, is a base-16 number system that uses sixteen distinct symbols: the digits 0 through 9 and the letters A through F. Unlike the familiar decimal (base-10) system, each hex digit represents exactly four binary bits, which makes hexadecimal an extremely efficient way to represent binary data in a human-readable format.

The relationship between hex and binary is straightforward: each hex digit maps to a unique 4-bit binary pattern. For example, hex F equals binary 1111, and hex 0 equals binary 0000. This clean mapping is why hex became the standard notation in computing — an 8-bit byte can be represented as exactly two hex digits, and a 32-bit value as eight hex digits.

Hexadecimal is used extensively throughout computing. In web development, CSS and HTML color codes use hex notation — #FF0000 represents pure red, where FF (255) is the maximum intensity for the red channel and 00 is zero intensity for green and blue. Network engineers use hex for MAC addresses (e.g., 00:1A:2B:3C:4D:5E), and systems programmers encounter hex in memory addresses, machine code, and register values.

Hex is also fundamental in debugging. Memory dumps, hex editors, and binary file viewers all display data in hexadecimal because it is far more compact than binary while maintaining a direct mathematical relationship. A single hex dump line typically shows 16 bytes as 32 hex characters alongside their ASCII representation.

Character encoding systems like UTF-8 and ASCII often reference code points in hexadecimal. Unicode characters are conventionally written as U+ followed by hex digits (e.g., U+0041 for the letter A). Data encoding formats like percent-encoding in URLs (%20 for space) and escape sequences in programming languages (\x41 for A) also rely on hex representation.

This converter tool handles all common hex conversions — text to hex, hex to decimal, hex to binary, and hex to RGB color values — entirely in your browser with no server communication.

Frequently Asked Questions

Hexadecimal (hex) is a base-16 number system using digits 0-9 and letters A-F. Each hex digit represents 4 binary bits, making it compact for representing binary data.

Hex is widely used because it maps perfectly to binary (each hex digit = 4 bits). It is used for memory addresses, color codes (#FF0000), MAC addresses, and byte-level data representation.

Each hex digit position represents a power of 16. For example, hex FF = 15×16¹ + 15×16⁰ = 255 in decimal. Use this tool to convert instantly.