araç köşesi

Text to Binary Translator

Turn text into binary code and decode binary back to text

Your data stays with you. Conversion happens inside the browser; nothing is sent to a server.

How it works

Type whatever you want to convert into the left panel; the tool looks at each line separately — a line made only of 0s, 1s and spaces is treated as binary code and decoded to text, every other line is encoded to binary. Type "Hello" and you get a byte sequence starting with 01001000; paste 01001000 01101001 and you read "Hi". The encoding is UTF-8: a plain letter like A takes one byte (8 bits), while accented letters such as é or ü produce two bytes — the "7 characters → 8 bytes" note under the result shows you that difference. If a form or an assignment wants one continuous string, switch the output format to "No spaces"; in the decoding direction, an unspaced string is cut into groups of 8 automatically as long as its length divides evenly by 8. Groups that are not 8 bits long and bytes that do not form a valid character are marked with # and counted in the result line; the tool never guesses silently.

This tool is also known as text to binary, binary translator, binary to text, binary code translator, convert text to binary code, binary decoder.

What is Binary (base-2 numeral system)?

Binary is the numeral system that uses only the digits 0 and 1, and it is the only language a computer speaks: every circuit in a processor is either carrying current (1) or not (0). Text, images, sound — everything a computer stores is, at the bottom, sequences of these two digits. Translating text "to binary" means looking up each character's numeric value in a code table and writing that number with 0s and 1s; it is a change of representation, not encryption, and anyone with the same table can decode it back.

What is UTF-8?

UTF-8 is the encoding that maps the Unicode character set — covering every writing system in the world — onto bytes, and it is the de facto standard of today's web. It is variable-length: the plain Latin alphabet and digits take 1 byte, accented letters like é and ü take 2, and many symbols take 3 or 4. For the first 128 characters it matches the old ASCII table exactly, which is why an English-only text gives the same string of 0s and 1s in UTF-8 and ASCII, while accented text shows the difference immediately.

What is the difference between a bit and a byte?

A bit is a single digit of the binary system: either 0 or 1. A byte is 8 bits side by side and the smallest addressable unit of memory; since 8 bits allow 256 arrangements, one byte represents a number from 0 to 255. Every 8-digit group in this tool is one byte: the group 01000001 stands for the number 65, which the UTF-8 table maps to the letter A. File sizes are quoted in bytes (KB, MB) while internet speeds are usually quoted in bits (Mbps) — a 100-megabit line downloading at most 12.5 megabytes per second is that factor of eight at work.

The trap of a string that will not divide by 8

The most common failure when decoding is a missing or extra bit: losing a single character while copying breaks the division into groups of 8, and everything after that point shifts. This tool does not skip such a group or an invalid byte silently — it prints # in its place and reports how many were marked. If you see # in the output, re-copying the source string is the healthiest fix.

The second detail is the code table: 01000001 means "A" according to the ASCII/UTF-8 table. Accented letters do not fit in one byte there; é is encoded as the two bytes 11000011 10101001. If another tool wrote the same letter in a different encoding (a single byte in Windows-1252, for instance), decoding it here can produce # — that is not a bug but an encoding mismatch.

Which setting for which job?

The defaults cover most work; you only need the options in these three cases.

  • The assignment wants one continuous string → set the output format to "No spaces" and you get a single 01001000011010... block
  • You typed only 0s and 1s but want them encoded as text → pin the direction to "Text to binary"
  • You want to convert a number (1010 = 10) → this tool encodes text; for base conversion use the number base converter on this site

Frequently asked questions

What does a binary translator actually do?

It turns every character you type into the form a computer stores in memory: the character first gets its byte value from the UTF-8 code table, and each byte is written as an 8-digit string of 0s and 1s. In the other direction the same table leads from the string back to the character.

Why do accented letters produce two groups?

In UTF-8 the first 128 characters — the plain Latin alphabet, digits and basic punctuation — take one byte; letters like é, ü or ñ span two bytes. The character and byte counts in the result line show that difference.

Will a long unspaced string of 0s and 1s decode?

Yes — if its length divides evenly by 8, the tool cuts it into groups of 8 on its own and decodes them. If it does not divide by 8, the group is marked with #, which usually means a character was lost while copying.

Can I convert a number like 1010 to decimal here?

This tool converts text, not numbers: it treats the line 1010 as a broken code group because it is not 8 bits long. Converting between binary, decimal and hexadecimal is a separate job, and the number base converter on this site does exactly that.