Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Encoding & Decoding

Text to Binary

Convert any text into its 8-bit binary representation, byte by byte (UTF-8 aware, so emoji and non-Latin text round-trip), or paste a string of 0s and 1s and decode it back. Bits can be grouped by byte or nibble, with or without spaces. Everything runs on your device — nothing is sent anywhere.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

Eight bits per byte, UTF-8 underneath

Encoding turns the text into UTF-8 bytes and prints each byte as eight binary digits, so "Hi" becomes 01001000 01101001. Because the bytes are UTF-8, an accented letter produces two bytes and an emoji four, and decoding regroups your 0s and 1s into the same bytes and back into text.

Grouping and separators

The group option lays out eight bits per group (whole bytes) or four (nibbles), and the separator option puts a space between groups or runs them together. Every combination is valid output and the tool reads back any of them, so a result can be pasted straight into the other direction.

Decoding rules and errors

Decoding strips every character that is not a 0 or a 1, so spaces, tabs and newlines between blocks are ignored and formatted output pastes directly. The bit count must be a multiple of eight; if it is not, the tool refuses with the number of bits it found and the closest valid length rather than padding or truncating.

Where it helps, and where it runs

Use it to show how a byte is built, to check a flag mask against the bits a device reports, or to produce binary for a puzzle or serial protocol. It is deliberately not a hex or base64 converter, and input is capped at one million characters. Encoding and decoding use the browser’s own TextEncoder and TextDecoder in this tab, with nothing uploaded.

Questions

How are non-ASCII characters handled?

Text is encoded to UTF-8 bytes first, so é, 中, emoji and every other character becomes its own sequence of 8-bit groups. Decoding groups the bits back into the same UTF-8 bytes.

What if my binary string has the wrong length?

Decoding needs a whole number of bytes. If the input is not a multiple of 8 bits, you get a clear error with the length that would be valid instead of a silently corrupt result.

Can I include spaces or newlines in binary input?

Yes — spaces, tabs and newlines between blocks of 0s and 1s are ignored, so you can paste formatted output directly.

See category