Text to Binary and Hex Converter
Convert text to its UTF-8 bytes in binary, hex, decimal or octal, or turn a list of bytes back into text.
Free · No sign-up · Your inputs stay in your browser
Input
Convert text to bytes and back
Output
Result
53 characters
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
Bytes, not characters
A computer stores text as bytes in an encoding. In UTF-8, the encoding of almost the whole web, ASCII letters are one byte each and other characters two to four, so 'Hi ✓' is six bytes: 48 69 20 E2 9C 93. The same text in UTF-16 or Latin-1 would give different bytes, which is why a byte dump means little until the encoding is known.
The command-line version
printf 'Hi' | xxd prints hex and xxd -b binary; od -An -tx1 does the same on systems without xxd. In PHP, bin2hex() and hex2bin() convert in each direction.