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).
Nearby workflows on Toolcore
- Base64 & URL — for standard Base64 and encodeURIComponent on UTF-8 text.
- Encoding hub — to pick Base64, URL, Punycode, or binary alphabet tools from one index.
- File checksum — when you need digests instead of a readable hex dump.
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.
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- hex to text converter
- text to hex online
- utf8 hex encoder
More tools
Related utilities you can open in another tab—mostly client-side.
Text ↔ binary
ClientConvert UTF-8 text to 0/1 bit strings and back—spaced bytes or continuous—in your browser.
File hex viewer
ClientHex dump the first 256 KB of any file with ASCII sidebar—read locally, no upload.
Integer base converter
ClientWhole numbers in radices 2–36: binary, octal, decimal, hex (optional 0x), custom bases; BigInt-sized strings, local only.
Encoding tools
ClientHub index: Base64 & URL, Base64url, Base32, Crockford, LEB128, ASCII85, Z85, Base58, base-36, bencode, Morse, quoted-printable, URI, Punycode/IDN, Unicode escapes, data URLs, MIME, hex, HTML entities, JWT, JSON helpers, crypto.