Binary encoder.
Type text or drop a file and read it as 0s and 1s as you type: eight bits per byte, spaced or joined. Everything runs in your browser.
Binary encoder.
Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.
Get ProHow it works
3 steps, no account. It runs in your browser and nothing is uploaded.
Enter text or a file
Type or paste anything, or drop a file onto the input; the Binary updates with every keystroke.
Choose the form
Spaced or joined: pick in the bar and the result is rewritten in place.
Copy, download or swap
Copy the Binary, download it as a text file, or press Swap to decode it back.
Where Binary is used
Every bit written out: eight digits per byte, for seeing and teaching. Where Binary does its work.
Teaching ASCII
A is 01000001, a is 01100001: one bit apart. The clearest way to show what a character is to a machine.
Bit fields and flags
A permissions byte, a TCP flags field or a status register reads as bits, each with a meaning.
Networking
An IPv4 netmask, 255.255.255.0, is 24 ones and 8 zeros; subnetting is counted in bits.
UTF-8 structure
A UTF-8 multi-byte character shows its lead and continuation bytes, 110xxxxx 10xxxxxx, once written out.
Arithmetic
Two's complement, overflow and shifts make sense when the bits are in front of you.
Puzzles
A puzzle, a T-shirt, a 'there are 10 kinds of people' joke: binary is also a form of play.
Related tools
More encoders and decoders. Every one free, in the browser.
Pricing
Build it with Pro
The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Questions and answers
Before you trust the result: what to know about the format, the limits, your data and the tools next to it.
Binary is the alphabet of two digits, 0 and 1, the bits a computer stores. Written out, a byte is eight digits: the letter A, 65, is 01000001. There is nothing to decode but the grouping, and nothing shorter: a binary string is eight times the size of the bytes it shows.
Every byte is written as its eight bits, most significant first, usually with a space between bytes so the groups can be read. The output is 700% larger than the input, eight digits for every byte. The decoder takes the digits with or without spaces, as long as there are eight per byte.
Learning how computers store text and numbers, reading a bit field or a flag byte, checking a protocol's bit layout, digital electronics homework, and showing a child what a letter looks like to a machine.
Technically, since it is only digits; practically no one sends a URL eight times longer than it needs to be.
It is the least efficient encoding by far and the only one that shows every bit. Use it to see or teach; use hex to read bytes at a glance and Base64 to carry them.
No. Binary is an encoding, not encryption: it changes how bytes are written, not who can read them, and anyone can decode it with no key. Encrypt first (AES, age, a library's sealed box) when the content needs protecting, then encode the ciphertext if it has to travel as text.
Type or paste into the input and the Binary appears as you type: "A" becomes 01000001. Text is encoded as UTF-8 bytes, so accents and emoji come out the same as in every language's standard library. Copy the result, download it as a text file, or press Swap to decode it back.
Drop a file onto the input or choose one with the button, and its bytes are encoded directly, not as text. Any file the browser can hold in memory works; a few hundred megabytes is fine, and the result is eight times the size.
A space between bytes shows where each one starts and is how a textbook writes it. Without spaces the output is one run of digits, which some tools expect. The decoder reads both, counting eight digits per byte.
Nothing leaves your browser. The text or file is read into memory on your machine and the encoding is computed there, in plain JavaScript; the page makes no request with it. Load the page, go offline and it keeps working.
No. The Binary encoder is free and opens without a sign-in, an account or an install.
Nothing. The Binary encoder holds your input in the page's memory, so closing or reloading the tab clears it, and it saves nothing in this browser.
The bar has one choice: Spacing, a space between bytes or one run of digits.
Binary output is 8 characters per byte, 9 with the spaces between bytes, and the status line under the result shows the bytes in, the characters out and the percentage.
The text is encoded as UTF-8 bytes first, so accented letters, other scripts and emoji round-trip through the decoder unchanged. Each of those characters takes more than one byte, which makes the output longer than the character count suggests.
Press Swap once there is a result and the same tool becomes the Binary decoder, with the output moved into the input. The decoder shows the original text again.
Closest to the Binary encoder: Binary decoder, File to Binary, Binary to file, Hex encoder. Each opens on its own page, free and in the browser.
The Binary encoder is one of 32 in its group. The group's page, /tools/encoding, lists them all.
The tool is free. Its interface is built from shadcn.io's own components (Button, Input, Slider and the rest of the registry under /ui), which come in React, Vue, Svelte and Solid. Pro adds the blocks and templates for the product around it.
4.9 out of 5 from 150+ developers
Build the product around it
Every block, template and icon, installed by your AI agent in your theme. The tools stay free.
Get Pro





