Free & private
Bytes

Text to hex, and hex to text

See the exact bytes behind your text as hexadecimal, or turn a string of hex back into readable characters. Choose the separator and letter case to match your source.

Reversible100% FreeNo upload
Hex
Bytes · reversible · UTF-8
try
Input0 chars · 0 bytes
Output0 chars · 0 bytes
UTF-8 · ready⌘⏎ copy⌘⇧S swap● local

What hexadecimal encoding is

Hexadecimal is base-16: each byte (a number from 0 to 255) is written as exactly two digits using 0–9 and a–f. Hex is the standard way to read raw bytes because it lines up neatly — one byte is always two characters — and it maps cleanly onto how computers group bits. The letter A is byte 41, a space is 20, and a newline is 0a.

How to use this tool

  1. Type text on the left and Encode to see its bytes in hex.
  2. Paste hex and Decode to read it back; spaces, colons and 0x prefixes are ignored automatically.
  3. Set Uppercase and the Separator (space, none or colon) to match the format you are working with.

Why your text may be more bytes than characters

Text is converted to UTF-8 before being shown as hex. ASCII characters are one byte each, but accented letters, other scripts and emoji take two to four bytes, so a short piece of text can produce a longer hex string than you expect. Decoding reverses the UTF-8 step, so multi-byte characters reassemble correctly.

Where hex shows up

  • Hash digests — MD5, SHA-1 and SHA-256 results are printed as hex.
  • Colours — CSS #ff8800 is three hex bytes.
  • Debugging — hex dumps reveal invisible characters like BOMs, tabs and line endings.
  • MAC addresses and keys — commonly written as colon-separated hex.

Examples

InputAB
Output41 42
InputHi!
Output48 69 21

Frequently asked questions

How do I convert text to hex?
Type the text, keep the mode on Encode, and the tool prints two hex digits per UTF-8 byte. Choose the separator and case to match your target format.
Can I paste hex with 0x prefixes or colons?
Yes. When decoding, the tool strips spaces, colons and 0x prefixes, so it accepts most common hex formats.
Why is the hex longer than my text?
Non-ASCII characters are encoded as multiple UTF-8 bytes, and each byte is two hex digits, so the output grows accordingly.
Is the conversion done locally?
Yes, entirely in your browser — nothing is uploaded.

Related tools

Every tool on encoder.website converts your text and hands the result straight back — it is never stored. Pick another tool from the sidebar any time.