Security & devFree

Text to Binary Converter

Free text to binary converter. Encode text to 8-bit binary or decode binary back to text in your browser.

Last updated 4 October 2026

About this tool

Text to Binary is a free online utility on QuikUtil. Free text to binary converter. Encode text to 8-bit binary or decode binary back to text in your browser.

When the bits are not text

Bits and text are not the same kind of thing, and this page now says so rather than guessing. Decoding reads the bits into bytes first. If those bytes are valid UTF-8 and a text box can hold them unchanged, you get text. If they are not, you get the bytes in hex and a line saying why, rather than a string of replacement characters under a green status.

Decoding the first four bytes of a PNG file · measured in a browser, 4 October 2026

you paste10001001 01010000 01001110 01000111
the page shows89 50 4E 47
and says4 bytes · not valid UTF-8 text, so the bytes are shown as hex

Until 4 October 2026 that paste returned �PNG, whose bytes are ef bf bd 50 4e 47: six bytes where there had been four. The first byte of a PNG is 0x89, which is not a legal start to a UTF-8 sequence, and the browser’s decoder replaces what it cannot read instead of refusing. Converting that back to binary then returned different bits than went in.

Line endings are the same fault in ordinary text. A textarea normalises a carriage return to a line feed, so text copied from a Windows-authored file or a PEM block arrives with its carriage returns already gone, and encoding it produces the binary of a different byte sequence. Measured on this page: a and b on two lines gave three groups where the file holds four. The Line endings control asks for CRLF explicitly, and Input is accepts hex bytes, which skips the text box altogether.

Frequently asked questions

What encoding does it use?

UTF-8 bytes, shown as 8-bit groups. Set Input is to hex bytes to convert an exact byte sequence instead of text.

Why are there spaces in the output?

The binary output groups one byte per space-separated block of eight bits, so you can count bytes by eye. Decoding ignores the spaces.

What does decoding accept?

0s and 1s, with spaces optional. The number of bits must be a multiple of eight, because a byte is eight bits and a partial byte has no value.

What if the bits are not text?

You get the bytes in hex and a note saying they are not valid UTF-8. The same happens when the bytes are text but hold a carriage return, which a text box cannot display without changing it.

Does anything leave my browser?

No. The conversion is a few lines of JavaScript on this page, with no server call and no upload.

Related tools