DevPocket

Text to hex converter

Seeing text in hexadecimal shows the exact bytes it is made of. It helps debug encoding problems, inspect network frames or protocols, or prepare data for microcontrollers and low-level tools.

Whatever you paste into DevPocket is processed in your browser and is neither stored nor sent.

Loading the tool…

The conversion uses UTF-8, so a letter like “ñ” takes two bytes (c3 b1). You can choose the separator and case. When decoding, spaces, colons and 0x prefixes are accepted, and the tool warns you if the bytes are not valid text.

How to use it

  1. Choose text → hex or hex → text.
  2. Paste the content and, when converting to hex, choose the separator.
  3. Copy the result.

Frequently asked questions

Why do some letters take more than one byte?
In UTF-8 ASCII characters take one byte, accented letters two, and many symbols and emojis three or four.
What does “the bytes are not valid UTF-8 text” mean?
The sequence is incomplete, belongs to another encoding (such as Windows-1252) or is binary data that is not text.

Limitations

  • Regular expressions use the JavaScript engine; syntax may differ from PCRE, Python or Java.
  • The text diff is designed for documents up to about 2 MB.