Text to Binary Converter — Binary to Text, Hex, ASCII
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Text
Binary
Result appears here.About this tool
Type text to see its bytes written in binary, hex, octal or decimal, or switch direction and paste bytes to read the text. Choose a space, comma or no separator between bytes.
Text is converted through UTF-8, the encoding the web uses. Plain English letters are one byte each, accented letters take two, and Hindi characters and emoji take three or four.
When decoding you can paste a run of digits without separators (for example 0100100001101001) and it is split into bytes for you. Everything runs in your browser.
Frequently asked questions
How do I convert text to binary?
Each character is turned into its byte values and each byte is written as 8 binary digits. For example “Hi” is 01001000 01101001.
Why does one character give more than one byte?
Only basic English letters, digits and symbols fit in one byte. Other characters take two to four bytes in UTF-8, so “é” is 11000011 10101001.
Why do I get “not valid UTF-8”?
The bytes you pasted do not form readable text, for example a lone byte above 127. Check that the format matches what you pasted (binary, hex, octal or decimal).