Hex encoder & decoder

Convert text to hexadecimal representation and decode hexadecimal strings back to readable text. Useful for debugging, encoding, and understanding binary data. Runs entirely in your browser.

Input

Output

About hexadecimal encoding

Hexadecimal (base-16) represents each byte as two hex digits (0–9 and A–F). Each character in a UTF-8 string maps to one or more bytes, and each byte becomes two hex characters. For example, the letter 'A' is ASCII 65, which is 41 in hex.

Use cases

API access

Encode: POST /api/v1/datatools/encode/hex — body: {"input": "text"}

Decode: POST /api/v1/datatools/decode/hex — body: {"input": "74657874"}