D

Hex ↔ Text Converter

Convert text to hexadecimal bytes and decode hex back to text — with full UTF-8 support.

Runs 100% in your browser — nothing is uploaded

About this tool

The Hex ↔ Text tool converts any text string into its hexadecimal byte representation (UTF-8 encoding), and decodes hex strings back to the original text. Each byte is shown as two hex digits separated by spaces.

Hexadecimal representation is fundamental to programming: it is how debuggers display memory, how cryptographic hashes and keys are represented, how network packets are inspected, and how binary file formats are examined in hex editors. This tool handles the common task of converting between readable text and hex, with proper UTF-8 handling so multibyte characters (emoji, CJK characters, etc.) are correctly encoded.

Input in decode mode accepts hex with or without spaces or 0x prefixes.

Frequently asked questions

Why is a character sometimes more than 2 hex digits?
ASCII characters are 1 byte (2 hex digits). Characters outside ASCII use multiple bytes in UTF-8. For example, the euro sign € is 3 bytes: E2 82 AC.
What is the difference between hex and Base64?
Both encode binary data as text. Hex uses 2 characters per byte (overhead: 100%). Base64 uses 4 characters per 3 bytes (overhead: ~33%). Base64 is more compact; hex is more human-readable for debugging.