Skip to main content
Home Tools Hex Encoder / Decoder
🔐 Encoding & Security ✅ 100% Free ⚡ Instant

Hex Encoder / Decoder

Convert text to its hexadecimal (base-16) representation, or decode hex strings back to readable text. Each character is represented as two hex digits. Supports uppercase, lowercase, and space/colon separators.

Case:
Separator:
Plain Text 0 chars
Hex Output 0 chars
Enter text to begin.
📊 Stats
0
Input chars
0
Output chars
📖 ASCII Hex Reference
A41
a61
030
space20
!21
Z5A
~7E

What is Hexadecimal Encoding?

Hexadecimal (base-16) encoding represents binary data using 16 symbols: the digits 0–9 and the letters A–F. Each byte (8 bits) is represented as exactly two hex digits, making hex a compact and human-readable way to display binary data. For example, the letter A has ASCII code 65, which is 0x41 in hex.

Frequently Asked Questions

Hex is more compact than binary (2 hex chars vs 8 binary digits per byte) and more convenient than decimal for representing byte values, since each hex digit maps exactly to 4 bits (a nibble). This makes hex ideal for inspecting memory, colour codes, hash values, and network protocols.
There is no functional difference — FF and ff represent the same value. Uppercase is traditional in many contexts (memory dumps, network protocols). Lowercase is common in CSS colour values and many programming APIs. This tool lets you choose your preferred format.
The 0x prefix is a programming convention (used in C, Python, JavaScript, and many other languages) to indicate that the following number is hexadecimal. It has no mathematical meaning and is not part of the hex value itself — it's purely a notation to distinguish hex from decimal or binary literals.
Copied!