ToolWren logo ToolWren
ToolWren › Hex

Hex ⇄ Text Converter

Convert readable text into a hexadecimal byte string, or decode hex back into text. Useful for debugging encodings, protocols and binary data.

100% client-side · nothing is uploaded

Loading tool…

How to use the Hex

  1. Choose the mode you need with the Encode / Decode toggle at the top of the tool.
  2. Type or paste your text into the Input box — the result appears instantly as you type.
  3. Use Swap (⇅) to move the output back into the input and flip the mode, which is handy for round-trips.
  4. Click Copy to copy the result, or Clear to start over.

Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.

About Hex

What is hexadecimal?

Hexadecimal is base-16, using digits 0–9 and letters a–f. One byte (8 bits) is exactly two hex digits (00–ff), which makes hex a compact, readable way to show raw bytes.

Text ↔ hex

Encoding converts each character to its UTF-8 byte(s) and prints them as two-digit hex. Decoding reverses the process. Spaces, 0x prefixes and newlines in the input are ignored when decoding.

Common uses

Inspecting file signatures (magic numbers), debugging network packets, reading memory dumps, and working with color codes, hashes and binary protocols.

Frequently asked questions

Why must hex have an even number of digits?
Each byte is two hex digits, so an odd count means an incomplete byte. The decoder will flag this.
Does it support spaces and 0x prefixes?
Yes. The decoder strips spaces, newlines and 0x prefixes automatically, so many formats just work.
Is Unicode supported?
Yes — text is encoded as UTF-8, so multibyte characters and emoji round-trip correctly.

Related tools