Skip to content

Text to Hex Converter

Convert text to hexadecimal bytes and decode hex back to text. Uses standard UTF-8 encoding, so every character — including accents and emoji — round-trips correctly.

Direction

Hex output grouping

Frequently Asked Questions

How do I convert text to hex?
Type or paste your text into the input box. Each character is encoded to UTF-8 bytes and every byte is shown as a two-digit hexadecimal value, so "Hi" becomes 48 65.
How do I convert hex back to text?
Paste your hex string — spaces, line breaks, and 0x prefixes are ignored. The tool checks that only hex digits remain and that the length is even, then decodes the bytes back to text as UTF-8.
What grouping formats are available?
Three: spaced bytes (48 65), continuous (4865), and 0x-prefixed (0x48 0x65). All three decode back identically, so pick whichever your destination expects.
What encoding does the converter use?
UTF-8. ASCII characters each become one byte, while accented letters, symbols, and emoji become two to four bytes — and they all round-trip back to the original text.
Is my text sent to a server?
No. The conversion runs entirely in your browser using the built-in TextEncoder and TextDecoder APIs — nothing you type ever leaves your device.

Related Tools