Hex Encode

Convert text to the hexadecimal values of its UTF-8 bytes, with separators to match any format.

Text
Hex
Runs locally in your browser

About the Hex Encode

Hexadecimal shows the raw bytes of text two characters at a time, which is how bytes appear in debuggers, wire protocols, hardware documentation and hash outputs. This tool encodes the UTF-8 bytes of your text, so a character above ASCII becomes its multi-byte sequence, for example é becomes c3 a9.

Separators cover the common conventions: none for a continuous string, spaces for a hex dump, colons for MAC addresses and certificate fingerprints, and a 0x prefix for source code. Uppercase suits formats that expect it, such as thumbprints printed by Windows tooling. Every byte is written as exactly two digits, so a value below 16 keeps its leading zero and the output length is always twice the byte count, which is a quick way to check nothing was lost in a copy.

Line endings are the edge case to watch. Text pasted from Windows carries 0d 0a where the same text from a Unix file has only 0a, and that extra byte is often the reason two hex dumps of supposedly identical content refuse to match. The Hex Decode tool reverses any of these formats, and Text to Binary shows the same bytes as individual bits when you need to read flags rather than values.

How to use

  1. Paste the text.
  2. Choose a separator and case to match your target format.
  3. Copy the hex output.

Common questions

Are non-ASCII characters handled?
Yes. Text is encoded as UTF-8 first, so accented letters and emoji become their multi-byte hex sequences.
How do I get a hex dump with spaces?
Choose the space separator; each byte is shown as two hex digits separated by a space.
Is this the same as the hexadecimal of a number?
No. This encodes the bytes of text. To convert a number between bases, use the Number Base Converter.