Number Base Converter
Convert a number between binary, octal, decimal, hex and custom bases.
Turn text into binary, hexadecimal or decimal bytes, and back again.
Text to Binary Converter shows what a piece of text looks like as the bytes a computer actually stores. Every character is encoded as UTF-8 and then written out in the base you choose: binary for the classic eight-digit groups, hexadecimal for a compact two-digit form, or decimal for the raw byte values.
Conversion runs both ways. Paste a string of ones and zeros and you get the original text back, with whitespace between groups ignored so values copied out of a document still work. The same applies to hexadecimal, which may be written with or without separators.
Because the encoding step is UTF-8, characters outside the English alphabet come through correctly. An accented letter takes two bytes, most emoji take four, and both convert back to exactly what you started with. Simpler converters that assume one byte per character break on anything but plain English, which is the usual reason a conversion comes back as question marks.
The text to binary converter is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
Because UTF-8 uses one byte for the basic English characters and two to four bytes for everything else. An accented letter is two bytes, so sixteen bits, and most emoji are four bytes, so thirty-two.
No. Converting to binary is a representation, not encryption. Anyone can convert it straight back, so it provides no protection for anything private.
A space between groups is the most readable and is what most examples use. No separator produces a continuous string, which is compact but hard to check by eye. Both convert back correctly.
Usually because the total number of digits is not a multiple of eight, which means a group is incomplete, or because a character other than 0 and 1 crept in. The message names which problem it found.
For plain English text, yes: UTF-8 and ASCII agree on the first 128 characters, so the byte values are identical. They diverge as soon as you use a character outside that range.
No fixed limit, though binary output is eight times longer than the byte count, so a long document produces a very large block of digits.
If the text to binary converter is not quite what you need, these other free tools solve closely related problems.
Convert a number between binary, octal, decimal, hex and custom bases.
Encode any text, including emoji and accents, to a Base64 string.
Generate cryptographic hashes of text, computed in your browser.
Convert text to Morse code and back, with audio playback of the result.
Character, word, line and paragraph counts that update as you type.