Hex, Text & Binary Converter
Convert text to hex, binary or decimal bytes (UTF-8) and back, with the grouping you want; bad hex, odd digit counts and invalid UTF-8 are reported precisely.
The bytes of your text in the chosen notation, or the text decoded from bytes, with the byte count, a preview and a clear error when the input is not valid.
Example: "Hi é" becomes 48 69 20 c3 a9 — five bytes for four characters, because é is two bytes in UTF-8; pasting e9 alone decodes to a replacement character with a Latin-1 hint.
Bytes are the truth;
text is an interpretation.
Why everything goes through UTF-8, how input is parsed, and what an invalid sequence looks like.
Text ↔ bytes
Text is encoded to bytes as UTF-8 (the web's default), so "é" is two bytes (c3 a9) and "€" three; bytes are decoded as UTF-8 with the strict decoder, so a sequence that is not valid UTF-8 is reported and shown with U+FFFD replacement characters rather than silently mangled — the usual sign that the source was Latin-1/Windows-1252.
Parsing bytes
Hex ignores spaces, colons, commas, 0x prefixes and case and needs an even number of digits; binary accepts 8-digit groups or one long string; decimal takes whole numbers 0–255. The first bad character is named in the error.
Output
Grouping: one byte per group with spaces, colons, 0x/0b prefixes, no separator, or 16 per line as in a hex dump. Upper-case hex is optional. Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.
SOURCES
Last reviewed 20 September 2026. How results are checked: How we verify.