Text to Binary Converter

Turn text into binary, hexadecimal or decimal bytes, and back again.

Text to Binary Converter tool

Direction
0
Characters
0
Bytes (UTF-8)

About the Text to Binary Converter

Every character on a screen is stored as bytes, and seeing those bytes helps when learning how computers handle text, debugging encoding problems or making puzzles. This tool converts text to binary, hexadecimal or decimal bytes and back, encoding characters as UTF-8 first: Hi becomes 01001000 01101001, while an accented é takes two bytes, c3 a9. That is why Urdu and emoji take more bytes than English letters, a detail that matters for SMS limits and database field sizes. To work with numbers rather than text, use the Number Base Converter, and for hexadecimal strings, Text to Hex.

The converter also runs in reverse. Give it eight-digit groups of 0s and 1s and it rebuilds the original words, tolerating gaps and new lines so material lifted from handouts or slides decodes cleanly. Hexadecimal input can likewise be written with or without separators between the bytes, and capital or small letters are both accepted, so you can paste values straight from a hex editor or a programming tutorial.

Because UTF-8 is used for the conversion, text beyond the English alphabet is handled correctly: an accented letter becomes two bytes, most emoji become four, and both turn back into exactly what you began with. Tools that treat every character as a single byte garble anything beyond basic English, which explains why other sites sometimes return a string of question marks.

How to use the Text to Binary Converter

  1. Pick a directionTurn text into bytes, or bytes back into text, using the switch at the top.
  2. Choose the number formatOnes and zeros, base sixteen pairs, or ordinary decimal byte values from 0 to 255.
  3. Enter the contentWrite the words to convert, or drop in the numbers you need turned back into words.
  4. Take the resultThe output updates as you type and can be copied with one click.

Text to Binary Converter features

  • Output in binary, hexadecimal or decimal
  • Conversion in both directions
  • UTF-8 encoding that copes with accents and emoji
  • Your choice of separator between groups, or none
  • Spaces and line breaks ignored when reading bytes back
  • Clear message when input does not fit the chosen format
  • Byte count of the text displayed

Common uses

  • Showing students how letters are stored as numbers
  • Interpreting raw bytes copied from a packet capture or debugger
  • Hiding a playful message in ones and zeros for a geocache
  • Finding out how many bytes a piece of text really uses
  • Recovering words from a run of hex pairs found in a file

Text as bytes in practice: English and Urdu letters, SMS limits, database column sizes, bits and bytes in internet speeds

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Seeing text as bytes explains several everyday puzzles: why Urdu messages fit fewer characters, why some databases limit text fields to odd lengths and why a 20 megabit connection downloads far fewer than 20 megabytes per second. This guide converts English and Urdu letters to binary and uses the results to explain SMS limits, database sizes, internet speeds and simple classroom activities.

A worked example: English and Urdu letters

The word Hi becomes two bytes: 01001000 for H and 01101001 for i. The Urdu letter پ takes two bytes in UTF-8: 11011001 10111110. Most Urdu letters take two bytes each, while English letters take one, so the same message written in Urdu occupies roughly twice the storage of its English transliteration. Emoji usually take four bytes.

SMS limits

Standard text messages use a compact 7-bit alphabet for English, allowing 160 characters in one message. A message containing Urdu letters, or even a single character outside that alphabet, switches to a 16-bit encoding that allows only 70 characters. Long Urdu messages are therefore split into more parts, which matters for businesses sending SMS alerts and paying per message part.

Database column sizes

Many databases measure index limits in bytes rather than characters. With four bytes allowed per character for full Unicode support, older MySQL setups could index only 191 characters of a text column, which is why many frameworks and WordPress installations once used 191 as a standard length. Understanding bytes per character explains such limits instead of making them seem arbitrary.

Bits and bytes in internet speeds

Internet speeds are quoted in megabits per second, while file sizes are measured in megabytes. Dividing by eight converts one to the other, so a 20 Mbps connection delivers at most 2.5 megabytes per second, before overheads. A 500 MB download therefore takes at least 200 seconds, a little over three minutes, on such a connection.

Binary is not secret

Binary text looks mysterious but anyone can convert it back in seconds, so it hides nothing. It is fine for puzzles, treasure hunts and classroom activities, but never for passwords or private messages, which need real encryption.

Classroom activities

Students can write their names in binary, count the bytes and compare English and Urdu versions, which makes the idea of character encoding concrete. Another activity converts a short message, swaps it with a classmate and decodes theirs, checking that both directions give identical text.

Checking hidden characters

Converting text to bytes reveals characters that are invisible on screen, such as non-breaking spaces, zero-width spaces and different kinds of line endings. When two strings that look identical refuse to match in a program or spreadsheet, comparing their bytes shows exactly where they differ.

Hexadecimal is easier to read

Long strings of ones and zeros are tiring to read. Hexadecimal shows each byte as two characters, so H becomes 48 and i becomes 69, making differences much easier to spot. Programmers usually inspect bytes in hex for this reason and use binary mainly for teaching and bit-level work.

Common mistakes

  • Assuming every character takes one byte.
  • Confusing megabits with megabytes when estimating downloads.
  • Treating binary text as a way to hide information.
  • Ignoring the shorter SMS limit for Urdu messages.

Related tools

To turn binary back into text, use Binary to Text Converter. For the compact hex form, try Text to Hex Converter, and to estimate download times, Download Time Calculator.

How UTF-8 marks multi-byte letters

UTF-8 keeps English letters at their familiar single-byte ASCII values, so plain English text is identical in both. Longer characters announce themselves: the first byte of a two-byte letter starts with 110 and each following byte starts with 10, exactly as in the پ example above. This design lets programs find the start of every character even in the middle of a file.

Recognising garbled text

When UTF-8 bytes are read as an older single-byte encoding, each Urdu letter turns into two strange symbols. The bytes of پ read that way appear as Ù¾, a pattern often called mojibake. Seeing pairs of accented Latin symbols in place of Urdu text is a reliable sign that a file or database connection is using the wrong encoding.

File sizes

Because most Urdu letters take two bytes, a 1,000-character Urdu document stored as plain text takes roughly 2 KB, while the same length of English takes about 1 KB. For everyday documents the difference is trivial, but it adds up in large databases, message logs and data plans for apps that send text constantly.

Parity bits

A simple error check adds one extra bit to each group so that the number of ones is always even. If a single bit flips during transmission, the count becomes odd and the error is detected. Working through parity by hand with converted letters is a classic classroom exercise that introduces how computers detect corrupted data.

Privacy

Conversion runs in your browser. Your text is not uploaded or stored.

Frequently asked questions

Why do some characters need more than eight bits?

UTF-8 is a variable-width scheme: plain English characters cost one byte, while other characters cost two, three or four. An accented letter takes two bytes, or sixteen bits, and most emoji take four bytes, or thirty-two bits.

Does turning text into binary hide it?

No. Binary is just another way of writing the same data, not encryption. Reversing it takes seconds with this very page, so it is no place to keep passwords, messages or other private things.

Which separator should I choose?

A space between bytes is the easiest to read and is what most examples use. Running everything together saves space but makes it very hard to spot a missing digit. The converter reads both styles back correctly.

Why won't my binary turn back into text?

Most often a group is short of its eighth digit, or a stray letter or symbol has crept in among the digits. The error message tells you which of the two problems it found.

Is this the same thing as ASCII?

For plain English text it is: UTF-8 and ASCII share the same codes for the first 128 characters, so the bytes are identical. The two only differ once you use accented letters, other scripts or emoji.

Is there a limit on how much text I can convert?

There is no fixed limit, but binary output is eight digits per byte plus separators, so a long document turns into a very large block of ones and zeros that may be slow to display.