Skip to content
TextLab

Free text to binary converter

Text to binary, formatted the way you need it

Write a word here and every character comes back as binary, with the spacing, the group width and the line breaks under your control: spaces, commas, tabs or nothing between groups, eight bits or seven, and a new line every 4, 8 or 16 groups when a wall of digits gets hard to follow. There is no charge, no account and no cap on how much you convert; the table underneath puts each character beside the digits it produced, one row apiece. Copy the finished digits in a click or save them as a .txt file.

  • 100% free
  • No signup
  • 8-bit or 7-bit
  • Copy or download .txt
  • Per-character table
0digits0 characters · 0 groups of 8

How to convert text to binary

From a word to its digits in about ten seconds.

  1. Write or paste the words

    Anything goes in the top box — a name, a birthday message, a line of a poem, a whole chapter. The digit total above the box climbs as you type, so a 12-character phrase announces itself as 96 digits before you have finished writing it. A paste lands in the box wherever you happen to be on the page (⌘V on a Mac, Ctrl+V everywhere else), so you never have to click into it first.

  2. Set the three menus to the shape you need

    Bits in a group decides whether each character is padded out to eight digits, kept at the bare seven ASCII actually uses, or trimmed to the fewest digits its number needs. What goes between them puts a space, a comma, a tab or nothing at all between groups — the tab setting is the one that pastes into a spreadsheet as separate cells. Where the lines break turns one endless line into 4, 8 or 16 groups per line, or gives every character a line of its own, which is what you want when the digits are going into an exercise book.

  3. Copy the digits, or keep the file

    Copy the digits puts the whole output on your clipboard with your formatting intact, ready for a message or a document. Save as text-to-binary.txt writes the same content to a plain text file assembled on your own machine, which is the easier route once the output runs past a few thousand digits. The table under the buttons stays in step with both, so you can check a single character before sending anything on.

Technical specifications

DirectionText into binary only — digits back into words is the job of the binary translator, which also lets you choose the encoding
Character encodingUTF-8 throughout: a to z take one group, é and ñ take two, 中 and 한 take three, an emoji takes four
Group widths8 digits padded with leading zeros, 7 digits for text that stays inside ASCII, or no padding at all
SeparatorsA space, a comma, a tab or nothing between groups
Line breaksOne continuous line, a break after every 4, 8 or 16 groups, or one character per line
Character tablePosition, character, Unicode code point, decimal byte values and binary, for the first 300 characters of the text
DownloadWrites the output to text-to-binary.txt through an in-memory link, with no upload and no server involved
Price and limitsFree with no signup and no length cap: 50,000 characters produce 400,000 digits in about 25 ms

Frequently asked questions

How do I write my name in binary?

Type it into the box at the top and read the digits underneath — Ana comes out as 01000001 01101110 01100001 on the default settings. Each group of eight is one letter, and capitals carry different numbers from lowercase, so Ana and ana do not produce the same digits. For a bracelet, a tattoo or anywhere the spacing would look wrong, set the separator to nothing between groups and it becomes one unbroken string.

Why does one emoji turn into four groups?

Because UTF-8 spends four bytes on every character numbered above 65,535, and all emoji are numbered up there. Unicode is far bigger than the 256 numbers a single byte can hold, so UTF-8 stretches: one byte for the original ASCII characters, two for accented Latin, three for most Chinese, Japanese and Korean, four for emoji and the rarer scripts. A family emoji is stranger still, because it is three separate people welded together by two invisible zero-width joiners — five characters and 18 groups for what looks like one picture, which is why the total above the box jumps further than you expect.

What is the difference between the 7-bit and 8-bit settings?

The 7-bit setting drops the leading zero that every ASCII character carries inside an eight-digit group, so A becomes 1000001 instead of 01000001. Seven is the honest width for ASCII, whose numbers never pass 127, and it makes the whole output an eighth shorter. It also refuses anything outside ASCII: put an accented letter in and the converter stops and names the character and its position, because no 7-bit number exists for it.

Can I get binary with no spaces at all?

Yes — choose nothing between groups and the output becomes one continuous string. Keep the width at eight bits if you do, because an unbroken string can only be read back when every character occupies the same number of digits. With the trimmed width the groups vary in length, so a run like 100100011001 has no single correct reading: it is a good party trick and a hopeless way to send a message.

Does the space between two words get its own binary?

Yes, a space is character number 32 and comes out as 00100000. Every punctuation mark has a number too, and a line break is number 10, which the table below shows as line break rather than as an empty cell. This is why the phrase Hi there produces 8 groups rather than 7, and why counting groups is a faster way to count characters than counting them by eye.

What is inside the downloaded file?

Exactly what the output box holds: the digits, with the separator and the line breaks you chose, saved as a plain text file called text-to-binary.txt. It is assembled in the browser from the text already on your screen and handed straight to your downloads folder, so nothing travels to a server to make it. Any text editor opens it, phones included, although a single very long line wraps awkwardly on a small screen — pick 8 groups per line before saving if that matters.

Why does another site give different binary for the same words?

Almost always because of padding, separators or encoding, which are the three things the menus here put in your hands. A site that pads to eight bits and one that stops at seven produce visibly different output for identical text, and a site built on an old single-byte table gives one group for an accented letter where UTF-8 gives two. Match a specific target by setting the width and separator to whatever it uses; to find out what a mystery string actually says, decode it on the binary translator instead.

What the converter does to each letter on the way in

Turning text into binary is a lookup followed by a rewrite. Every character you type already has a number: Unicode assigns one to each of the 150,000-odd characters it covers, and for the letters on an English keyboard those numbers are the ones ASCII handed out in 1963 — 65 for A, 97 for a, 32 for a space. The converter takes that number and writes it in base 2, where each place is worth twice the place to its right (64, 32, 16, 8, 4, 2, 1), so 65 becomes 1000001. Padding that out to eight digits with a leading zero is a convention rather than arithmetic: 01000001 and 1000001 are the same number, but the padded form makes every character the same width, and equal widths are the only thing that lets a reader chop a long string back into characters.

Characters ASCII never had will not fit in one byte, and UTF-8 handles them by spending several — but it has to mark where each character starts, or nothing could be read back afterwards. It does that with the leading digits: a one-byte character always begins with 0, a two-byte character begins 110 and is followed by a group beginning 10, three-byte characters begin 1110 and four-byte characters begin 11110. The pattern is visible in the table under the box, and it is the reason é appears as 11000011 10101001 instead of as a single group. It is also why the digit total races ahead of the character count the moment you type an accent, a Cyrillic letter or an emoji.

The formatting choices matter more than they look. Digits written for a person want spaces and short lines, digits written for a machine usually want neither, and digits heading for a spreadsheet column want tabs. Padding is the setting that bites: dropping the leading zeros shortens the output and simultaneously makes it undecodable, because nothing then marks where one character stops and the next begins. Keep the width at eight if the digits are going anywhere at all, and when they come back to you the binary translator will read them in whichever encoding they were written in. If the destination counts characters, hexadecimal shortens the same bytes to a quarter of the length, and for something a person can read aloud rather than type, the Morse code translator is the other classic way to spell a message out.

The file is built on your side

Nothing you type here is transmitted. The conversion is arithmetic performed by JavaScript inside this tab, and the download is assembled from the text already on your screen through a temporary in-memory link that the browser discards the instant the file is saved. No copy of your words reaches a server, because no request is ever made — the page has everything it needs from the moment it has finished loading.