Text to Binary / Hex

Convert text to and from its UTF-8 bytes as binary, hex, decimal or octal.

Text is always encoded as UTF-8, and a BOM or CRLF survives as bytes, so the round trip is exact. Pasted bytes are read leniently about layout: any whitespace or commas, 0x and \x prefixes, and runs of hex or binary with no separators. Auto-detection prefers the reading that is valid UTF-8, picks binary for 8-bit groups of 0 and 1, and says when it was unsure. Decoding locates invalid UTF-8, including overlong forms, surrogates and code points past U+10FFFF, and shows a labelled Latin-1 fallback instead of silent replacement characters.

Category: Encoding. Runs entirely in your browser — nothing you paste is uploaded.

Also handles: text to binary, binary to text, text to hex, hex to text, ascii, utf-8 bytes, decimal, bytes.