Hex encode & decode
ClientTurn UTF-8 text into a continuous hex string, or paste hex (with spaces or 0x) to recover the original text.
Hex encode & decode
?
Encodes UTF-8 bytes to hexadecimal. Decoding accepts spaces, newlines, and 0x prefixes—they are stripped before parsing.
UTF-8 text on the left; continuous hex on the right (two digits per byte).
Common use cases
- Inspect UTF-8 bytes as hex when debugging string corruption or comparing payloads at the byte level.
- Decode pasted hex dumps from logs or microcontrollers that may include spaces or 0x prefixes.
- Generate hex for copy-paste into firmware, test vectors, or documentation examples.
Common mistakes to avoid
Odd-length hex strings
Bytes come in pairs. If decode fails, check for a missing nibble or stray separator copied from elsewhere.
Assuming hex implies encryption
Hex is just a representation. It does not protect secrets—do not confuse encoding with encryption.
FAQ
Is data sent to your servers?
No. Encoding and decoding run entirely in your browser.
Which text encoding is used?
The tool uses UTF-8 for text ↔ bytes. Binary patterns outside valid UTF-8 may not round-trip as readable text.
More tools
Related utilities you can open in another tab—mostly client-side.
Encoding tools
ClientBase64 and URL on this page; hub lists hex, HTML entities, JWT, JSON helpers, crypto, and tokens.
Random string generator
ClientRandom alphanumeric, hex, Base64 URL-safe, or custom tokens—entropy hint, local only.
Encrypt & decrypt
ClientEncrypt, decrypt, hash (AES, DES, RC4, Rabbit, TripleDES, MD5, SHA) and Base64—client-side.
HTML entity encode / decode
ClientEscape or decode HTML entities—ampersands, tags, quotes—client-side.