Calcflow

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Text to Binary Converter with 7-, 8- and 16-Bit Output

Use this text to binary tool to turn typed or pasted text into binary groups as you type. It works as a string to binary converter in your browser, with three bit depths, five separators, four live stats, and TXT or CSV export. This page explains how each control behaves, with worked examples, so you can pick the right settings.

Size: 16
Size: 12
Size: 14
Size: 16
Size: 18
0Characters
0Bytes
0Total Bits
0%Zero Ratio
Output Separator
Bit Depth & Settings
Word Wrap (Prevent horizontal scroll)
ASCII Reference Table (8-bit codes, 32 to 126)
Important Notes:
  • Private, Browser-Based Conversion:
    Your text never leaves your browser. No data is sent to any server. Your latest input is kept in your browser's local storage until you press Clear All or clear your browser data.
  • UTF-8 Support:
    Use 8-bit mode to convert non-Latin scripts (such as Urdu, Arabic, and Chinese) and emoji into UTF-8 bytes. A single emoji produces several 8-bit groups.
  • Real-Time Conversion:
    The output updates as you type, with no Convert button. Input is limited to 25,000 characters; very large input updates after a short pause.
  • Stats:
    Characters counts Unicode code points, so one emoji counts as 1. Total Bits is the number of binary groups multiplied by the bit depth, and Zero Ratio is the share of 0 bits among those bits. Separators are not counted. In 7-bit mode, Bytes shows one per group.
  • Encoding, Not Encryption:
    Binary output is a plain representation of character codes. It does not protect or hide data.

Typing or Pasting: Live Output and the 25,000-Character Cap

Type or paste into the top box and the binary appears in the box below it. There is no Convert button, because the output refreshes on every input event. Once the text passes 5,000 characters, conversion waits 300 ms after your last keystroke so the page stays responsive. Changing the separator or bit depth re-runs the conversion immediately.

The input accepts at most 25,000 characters, measured in UTF-16 units the way the browser’s maxlength attribute counts them. An emoji therefore uses two units of that allowance. If a paste would leave half of an emoji at the boundary, the tool drops the dangling half instead of keeping a broken character, and a note reports that the limit was reached.

Uploading a File: .txt, .csv, and .md Up to 2 MB

The Upload button accepts three extensions: .txt, .csv, and .md. Files over 2 MB are refused, and so is an empty file. A file that passes those checks but holds more than 25,000 characters is rejected whole. Nothing is truncated, and the message suggests splitting the file into smaller parts. An accepted file replaces whatever was in the input box. CSV files are read as plain text, so commas and line breaks are converted like any other character, and no columns are parsed.

Choosing a Separator: A Display-Only Setting

The Formatting tab offers Space, Comma, Hyphen, New Line, and None. They change only how groups are joined in the output box, which is the text that Copy Binary and Export TXT use. Stats never change when you switch, because separators are not counted as bits. Export CSV ignores this setting.

SeparatorOutput for “Hi” (8-bit)
Space01001000 01101001
Comma01001000,01101001
Hyphen01001000-01101001
New Line01001000 and 01101001 on separate lines
None0100100001101001

Space reads comfortably for homework. Comma and hyphen paste neatly into lists, and None gives one unbroken run of digits.

Picking a Bit Depth: Same Text, Different Output

Every conversion depends on which numbers stand in for each character. The Options tab offers three answers, and one emoji shows the difference clearly.

ModeOne group is…Group size😀 result
8-bitone UTF-8 byte8 digits4 groups
16-bitone UTF-16 unit16 digits2 groups
7-bitone code point, masked7 digits1 group (0000000)

8-bit (UTF-8 Bytes): Emoji and Non-Latin Scripts

This is the default, and the mode for utf8 to binary online work. The tool passes your text through the browser’s TextEncoder API and prints one group per byte. Example A: typing Hi with a space separator gives 01001000 01101001. The stats read 2 characters, 2 bytes, 16 total bits, and a 62.5% zero ratio.

As a unicode character encoder, it reaches past ASCII. Urdu, Arabic, and Chinese text converts, and each non-ASCII character becomes two or more groups. Example B: 😀 gives 11110000 10011111 10011000 10000000. It is one character, U+1F600, but UTF-8 needs four bytes (F0 9F 98 80) to store it. The stats read 1 character, 4 bytes, 32 total bits, and a 56.3% zero ratio. An unpaired surrogate in the input is encoded as U+FFFD, and a note appears.

16-bit (UTF-16 Units): Why Emoji Show Two Groups

Here each UTF-16 unit becomes one 16-digit group, high byte first. Example C: 😀 gives 1101100000111101 1101111000000000. That is the surrogate pair D83D and DE00 in hexadecimal. The stats read 1 character, 4 bytes, 32 total bits, and a 53.1% zero ratio.

The tool does not merge the pair. It shows two groups and a note saying that characters above U+FFFF use two 16-bit units each. Characters stays at 1 because it counts code points, while Bytes is the input length in units multiplied by two.

7-bit (ASCII): Masking Instead of Real Codes

This is the ascii to binary code mode, with one 7-digit group per code point. The Cheat Sheet tab lists printable ASCII, codes 32 to 126, in 8-bit form. For those characters, 7-bit mode simply drops the leading zero. Anything above ASCII is masked with & 0x7F, so it no longer shows its real code.

Example D: é gives 1101001. The stats read 1 character, 1 byte, 7 total bits, and a 42.9% zero ratio. Bytes reads 1 because 7-bit mode counts one per group. The group is identical to lowercase i, because é (233) is masked down to 105. A note counts the masked characters and suggests 8-bit mode. An emoji in 7-bit mode yields one group, 0000000, not two.

Reading the Four Stats, Including Zero Ratio

Four cards sit above the input box:

  • Characters counts Unicode code points. One emoji is 1, and each newline, tab, or combining mark is also 1.
  • Bytes depends on the mode: the UTF-8 byte count in 8-bit, input length times two in 16-bit, and one per group in 7-bit.
  • Total Bits is the number of groups multiplied by the bit depth. Separators are excluded.
  • Zero Ratio is the share of 0 bits among the counted bits, shown to one decimal place.

In the Hi example, 10 of 16 bits are zero, so Zero Ratio reads 62.5%. It is a simple count of digits. It does not measure randomness, strength, or security of any kind, so please do not read it as one.

Copy, Export TXT, or Export CSV: What Each Does

Three buttons move the result out of the page, and they are not interchangeable. Copy Binary places the output box text on your clipboard exactly as shown. Export TXT saves that same text as binary_data.txt. Both follow the chosen separator. Export CSV, a binary data exporter with a fixed layout, always writes the columns Index, Binary, and Decimal as binary_data.csv, whichever separator is active. Each button shows a message instead of acting when the output is empty.

Example E: exporting Hi as CSV produces:

Index,Binary,Decimal
1,”01001000″,72
2,”01101001″,105

Decimal is each group read as a base-2 number, which is how you convert letters to numbers in binary form: H becomes 72. Rows follow groups, not characters. In 8-bit mode the emoji 😀 yields four rows, 240, 159, 152, and 128, rather than its code point. In 16-bit mode the same emoji yields 55357 and 56832.

Privacy and What Stays in Your Browser

The tool states:

“Your text never leaves your browser. No data is sent to any server. Your latest input is kept in your browser’s local storage until you press Clear All or clear your browser data.”

In practice, the text is saved under the localStorage key tb_master_persist about 0.8 seconds after you stop typing, and again when the tab is hidden or closed. Clear All removes that saved text but keeps your preferences, which live under separate keys (separator, bit depth, dark mode, font size, word wrap, and text direction). Emptying the input box by hand also removes the saved copy. If the browser blocks storage, the tool carries on without saving. Advertising or analytics scripts that the site loads operate independently of this tool’s code. See the privacy policy for details.

What This Tool Does Not Do

  • It converts text to binary only. It accepts no binary or hex input, and a separate binary to text handles the reverse.
  • It is encoding, not encryption. The output is a readable representation of character codes and does not protect or hide anything.
  • 16-bit mode splits emoji into two groups, and 7-bit mode masks non-ASCII characters.
  • Uploaded CSV files are read as plain text, with no column parsing.
  • There is no Find & Replace, Undo button, Share, or Text Case tool, and there is no leading-zero toggle or prefix stripping.
  • No offline mode is built in.

Choosing Settings for Text to Binary Work

For everyday work, keep 8-bit and the space separator. Switch to 16-bit only when you need UTF-16 units, and use 7-bit only for plain ASCII. With those differences understood, this text to binary tool gives you output you can read, copy, or export without guessing what each group means.

Frequently Asked Questions

In 8-bit mode, the emoji 😀 takes four 8-bit groups, or 32 bits, because UTF-8 stores it as the bytes F0 9F 98 80. In 16-bit mode it also takes 32 bits, shown as two 16-bit groups. In 7-bit mode it produces one masked 7-bit group (0000000) that does not represent the emoji, so use 8-bit mode for real emoji data.

Yes, in 8-bit mode. The tool uses the browser’s TextEncoder to turn Urdu, Arabic, Chinese, and other non-Latin text into UTF-8 bytes, so each non-ASCII character becomes two or more 8-bit groups. In 7-bit mode these characters are masked and do not show their real codes.

UTF-16 stores emoji and other characters above U+FFFF as two 16-bit code units called a surrogate pair. The 16-bit mode shows one group per code unit and does not merge them, so one emoji gives two groups. A note under the output reports how many characters were split this way. The Characters stat still counts the emoji once.

7-bit gives one 7-digit group per code point and masks anything above ASCII, so é shows the same group as i (1101001). 8-bit gives one 8-digit group per UTF-8 byte, so non-ASCII characters and emoji span several groups. 16-bit gives one 16-digit group per UTF-16 unit, so emoji span two groups. For plain ASCII text, 7-bit and 8-bit show the same digits apart from the leading zero.

Zero Ratio is the percentage of 0 bits among all counted bits in the output, rounded to one decimal place. Separators are excluded. For Hi in 8-bit mode, 10 of 16 bits are zero, so it shows 62.5%. It is a simple count and not a measure of randomness, strength, or security.

No. This tool converts text to binary only. It does not accept binary or hex as input, so a separate binary-to-text decoder is needed to convert binary back.

Usually yes. The latest input is saved in your browser’s local storage after a short pause in typing and when the tab is hidden or closed, and it is restored on your next visit in the same browser. It is removed when you press Clear All, empty the input box, or clear your browser data. If your browser blocks storage, nothing is saved.

Press Export CSV. The file is named binary_data.csv and always uses the columns Index, Binary, and Decimal, whatever separator is selected. Decimal is each binary group read as a base-2 number, so H in 8-bit mode appears as 01001000 and 72. Each row is one group, so an emoji in 8-bit mode appears as four rows with the byte values 240, 159, 152, and 128.

DISCLAIMER

This tool is provided for educational and general reference use. Binary output is an encoding of character codes, not encryption, and it does not protect, hide, or secure your text. Output depends on the selected mode: 16-bit splits emoji into two groups, and 7-bit masks non-ASCII characters. Verify results against your own requirements before using them in production systems, code, or data pipelines.

Scroll to Top