What is a text to binary converter?
Computers store every character as numbers, and those numbers as bits, ones and zeros. A text to binary converter shows the exact bytes behind a piece of text, in binary or in the more compact hexadecimal, octal or decimal notations.
Students use it to understand how encoding works, puzzle and escape-room makers to hide messages, and developers to inspect strings at the byte level when debugging encoding bugs, protocols and file formats. It works both ways, so a binary or hex message can be decoded back to text, emoji and accents included.
How to use the Text to Binary Converter
1.Choose the direction
Text to binary, binary to text, or the same for hex, octal and decimal.
2.Type or paste
When decoding, separate bytes with spaces, or paste a continuous string of full bytes.
3.Copy the result
The byte count shows how much space the text takes in UTF-8.
Example: a greeting with an emoji
The text "Hi 👋" converted to binary:
- H
- 01001000
- i
- 01101001
- space
- 00100000
- 👋
- 11110000 10011111 10010001 10001011
- Total
- 7 bytes
Three plain characters take one byte each; the emoji alone takes four.
Why some characters take four bytes
Text is stored as UTF-8, where English letters and digits take one byte, accented and most non-Latin letters two or three, and emoji four. So "Hi 👋" is seven bytes, and in binary seven groups of eight digits.
When decoding, bytes can be separated by spaces, commas or line breaks, and hex may carry 0x or \x prefixes. Each value must fit in one byte, 0 to 255; a larger number means bytes have run together, and you'll be told which one.
Frequently asked questions
What is "hello" in binary?
01101000 01100101 01101100 01101100 01101111: five letters, five bytes.
Why do I get an invalid UTF-8 error?
The bytes don't form valid characters, usually because one is missing or wrong, or the data wasn't UTF-8 text.
Is this ASCII or Unicode?
UTF-8, which is identical to ASCII for basic English characters and also handles every Unicode character.
Can I paste binary without spaces?
Yes, as long as the length is a multiple of 8. The same goes for hex in pairs and octal in groups of three.
Related tools
Base64 Encoder & Decoder
Base64 and Base64url for text (UTF-8) and files.
Unicode Character Inspector
See the code points, bytes and hidden characters in any text.
Morse Code Translator
Translate text to Morse code and Morse code back to text.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
JWT Decoder
Decode a JSON Web Token's header and payload and check its expiry.
Hash Generator: MD5, SHA-1, SHA-256
MD5, SHA-1 and SHA-256 hashes of text or files, with checksum compare.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table