DuckyTools
Home Text Text to Binary

Text to Binary Text

Convert text into 8-bit binary, and binary back into text.

Text to Binary is a free online tool that convert text into 8-bit binary, and binary back into text. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Text
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
1
Works offline
Yes, after the first visit

About Text to Binary

Each character is shown as the binary of its UTF-8 bytes. That means ASCII characters produce one 8-bit group each, while accented Latin letters take two bytes, most CJK characters take three, and emoji take four. A string that looks like ten characters can therefore produce forty bytes — which is exactly why byte length and character length are different problems.

How to use it

  1. Paste the text you want to run through text to binary.
  2. Set direction.

The one setting

SettingWhat it doesDefault
DirectionChoose from 2: Text → Binary, Binary → Text.Text → Binary

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsDirection

Questions

Why does one emoji produce so many bytes?

Most emoji sit outside the Basic Multilingual Plane and take four UTF-8 bytes. Many are also sequences: a flag is two regional indicator characters, and a family emoji can be several people joined by zero-width joiners — easily 25 bytes for one visible glyph.

Is this the same as ASCII binary?

For plain unaccented English text, identical — UTF-8 was designed so that ASCII is a subset. Everything else diverges.