Text to Hex Encode & Decode

Convert text to hexadecimal bytes and back. This tool does both encode and decode on one page — just pick a mode, paste your text, and click. Everything runs on your device, nothing is sent to a server.

The result will appear here…
or press Ctrl+Enter

Everything runs in your browser. Your data is never sent to our servers.

728 × 90Ad Space AvailablePlace your ad here

Example

Example Input

Hello

Example Output

48656c6c6f

How to Use

  1. 1Choose Encode or Decode mode at the top.
  2. 2Type or paste your text into the Input field.
  3. 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
  4. 4Click Copy to copy the result, or "Swap input/output" to quickly reverse the operation.

About Text to Hex

The Hex tool converts text to the hexadecimal representation of its UTF-8 bytes, and back. Each byte is shown as two hex digits.

How it works: text is encoded to UTF-8 bytes, then each byte is formatted as two hex characters (00–ff). On decode, hex pairs are turned back into bytes and read as UTF-8 text.

Hex representation is widely used for debugging, viewing raw bytes, data formats, and interoperability with other tools that use hex (e.g. hashes, colors, binary protocols).

FAQ

Can this Text to Hex tool both encode and decode?

Yes. This is a single page with a toggle — use Encode mode to transform text, and Decode mode to reverse it. No need for two separate pages.

Is my data sent to a server?

No. Text to Hex is processed entirely in your browser. The text you enter never leaves your device.

Related Tools

Related Categories