Text Studio · Windows 10 and 11

Translate text to binary and back

Text Studio's Convert panel writes any text as the bytes a computer stores it in: binary, hex, decimal or octal. Paste binary instead and it turns back into text. It uses UTF-8, the encoding of the web, so accented letters and emoji come back exactly as they went in.

Updated

How to translate text to binary

  1. 1

    Open the translator

    In Text Studio, press Convert, then Binary at the top of the panel.

  2. 2

    Choose the numbers

    Pick Binary, Hex, Decimal or Octal, and what goes Between bytes: a space, a comma or nothing.

  3. 3

    Type or paste

    Type on the page, or select part of a text. The panel shows its bytes at once and counts them.

  4. 4

    Copy or replace

    Press Copy, or Put in place to swap your text for the bytes. Paste binary on the page and the panel shows it as text again.

How text becomes binary

Each character is stored as one or more bytes, and each byte is a number from 0 to 255, which takes eight binary digits. Text Studio uses UTF-8, where the plain English letters, digits and punctuation take one byte each, the same as in the older ASCII code:

CharacterBinaryHexDecimal
H010010004872
i0110100169105
space001000002032
é11000011 10101001C3 A9195 169
👋four bytesF0 9F 91 8B240 159 145 139

Letters with accents take two bytes and most emoji four, which is why the byte count under the result can be larger than the number of characters. Translators that treat each character as a single number get these wrong on the way back; UTF-8 does not.

Reading binary, hex and decimal

Paste binary on the page and the panel recognizes it on its own and shows Binary to text. Bytes may be separated by spaces, commas or line breaks, or run together in one long string of 0s and 1s, which is split every eight digits.

Hex, decimal and octal look like ordinary numbers, so the panel reads them only when that kind is chosen: pick Hex and paste 48 69, and it shows Hi. Prefixes such as 0x and \x are understood. Numbers that would not make readable text, such as a list of prices, stay as text, and if you really mean to translate them, Make hex of it instead does that.

Which one to use

  • Binary shows the bits themselves, for lessons, puzzles and messages that look like computer code.
  • Hex is how programmers read bytes: two digits per byte, as in a hex editor or a %C3%A9 in a web address.
  • Decimal gives the byte values as everyday numbers, 0 to 255.
  • Octal uses three digits per byte, 000 to 377, as some older systems and file permissions do.

To convert a single number between bases, rather than text, use the number base converter in the Dev Toolbox. For data that has to travel as plain characters, such as a file in an email, Base64 is the usual choice.

Questions, answered

Is this ASCII or Unicode?

UTF-8, which is Unicode stored as bytes. For the 128 ASCII characters (English letters, digits, punctuation) the bytes are the same as ASCII, so ASCII binary reads fine too.

Why does one emoji give four bytes?

UTF-8 uses one byte for ASCII characters, two for most accented and Greek or Cyrillic letters, three for most other scripts, and four for emoji and rarer characters.

Can I translate a whole file?

Open it in Text Studio and convert it, up to 200,000 characters at a time. Lines stay as lines in the result.

Does it send my text anywhere?

No. The translation is done on your PC, without a connection.

Binary translator, and 16 more apps.

Download for Windows

7 days free, then from $3.99 a month for all 17 apps. Windows 10 and 11.