Text to binary (and binary to text) translator
Type some text and get the binary, hexadecimal, octal or decimal code of each byte, or paste codes to recover the original text. It works with UTF-8, so it also converts accented letters, symbols and emojis, and you can choose the separator between bytes.
Processed 100% in your browser
Ctrl + Enter runCtrl + C copy result
How to use
- 1Choose the direction: text to code or code to text.
- 2Pick the format: binary, hexadecimal, decimal or octal, and the separator between bytes.
- 3Type or paste the content: the result appears instantly.
- 4Copy the result or press “Swap” to reverse the conversion.
Use cases
- Learn how a computer stores letters and numbers.
- Solve challenges, riddles or messages written in binary.
- Get the hexadecimal sequence of a text to debug protocols or files.
- Prepare encoding examples for classes or presentations.
Frequently asked questions
Which encoding does it use?
UTF-8. ASCII characters take one byte (8 bits) and the rest, such as accented letters or emojis, take 2 to 4 bytes.
How do I write binary correctly to decode it?
Separate each 8-bit byte with a space (01001000 01101111) or paste them together if the length is a multiple of 8: the tool splits them itself.
Why does an accented letter take two bytes?
Because in UTF-8 only basic ASCII characters fit in one byte; accented ones need two.
What if a code is not valid?
The tool tells you: for example a digit that does not exist in the chosen format, a value above 255 or bytes that do not form valid UTF-8 text.
Is my text sent to a server?
No. The conversion runs in your browser.