Binary ↔ Text Converter

See your words the way a computer stores them: every character as its 8-bit binary bytes — and turn binary back into text. For students, puzzle-makers, and anyone who has wondered what is actually inside a text file.

Convert text and binary

In short

"Hi" in binary is 01001000 01101001 — H is byte 72, i is byte 105. Urdu letters take two bytes each; the tool handles them all.

What you are looking at

Every character on this page is stored as numbers, and every number as bits. The chain has three links: a character has a code point in Unicode (H is U+0048), the code point is stored as bytes by an encoding (in UTF-8, H is the single byte 72), and a byte is eight bits — 72 written in base 2 is 01001000. Binary conversion simply makes the last link visible. It is useless for transporting data (it inflates text eightfold, where Base64 inflates by a third) and invaluable for understanding: endianness, character encodings, why an Urdu letter costs two bytes and an emoji four, why a "text" file of 1,000 Urdu words is bigger than its English translation. Students meet binary as an abstraction; typing their own name and watching it become a wall of 0s and 1s is the moment it stops being one.

How to use this converter

  1. Type or paste text — or binary, in 8-bit groups with or without spaces.
  2. Press the direction you need.
  3. Copy the output.
  4. Try your name in Urdu and English and compare the byte counts — the encoding lesson teaches itself.

Privacy: conversion happens in your browser; nothing is uploaded.

Frequently asked questions

How is text converted to binary?

Each character is first turned into its byte value(s) in UTF-8, and each byte is written as an 8-bit binary number. 'H' is byte 72, which is 01001000; 'i' is 105, which is 01101001 — so 'Hi' in binary is 01001000 01101001. English letters take one byte each; Urdu letters take two, because UTF-8 uses more bytes for scripts beyond Latin.

Why do Urdu characters produce two binary groups?

Because of how UTF-8 allocates bytes. Characters in the basic Latin range fit in one byte (values under 128). Urdu letters live higher in Unicode (the Arabic block), and UTF-8 encodes those code points in two bytes — so each Urdu letter becomes two 8-bit groups. Emoji take up to four. It is the same reason an Urdu SMS fits fewer characters per segment.

What is the difference between binary and Base64?

Both represent bytes, for opposite purposes. Binary writes each byte as 8 characters of 0s and 1s — eight times larger, but transparent: you can see the actual bits a computer stores. Base64 compresses that representation into 4 characters per 3 bytes for transport. Binary is for understanding and puzzles; Base64 is for plumbing.

Can I decode binary that has no spaces?

Yes. The decoder accepts binary with or without spaces — it strips all whitespace and reads the stream in 8-bit chunks. If the bit count is not a multiple of 8, the trailing partial group is reported rather than silently dropped.

Is my text uploaded?

No. Conversion runs in your browser; nothing is transmitted.

Related tools