L
LLLOS.ai
Learn
L

Ask Your Tutor · Computer Science

How do computers convert text to binary using Unicode?

From NCERT In depth Asked by Anonymous from Indianapolis, United States 23 Oct 2026, 3:26 PM IST Updated

In one line

Computers turn each letter or symbol into a special number (using Unicode), then change that number into binary (0s and 1s) to store or send it.

Unicode — Character encoding standard
Unicode — Character encoding standard
The Unicode Consortium created Unicode so computers can handle all languages and symbols.
Image: Wikipedia

The rule

Each character in Unicode is given a unique number called a code point. Computers store and process these numbers in binary form.

For example, the letter 'A' in Unicode is U+0041 (which is 65 in decimal).

The formula
n = (dₖ × 2ᵏ) + (dₖ₋₁ × 2ᵏ⁻¹) + ... + (d₁ × 2¹) + (d₀ × 2⁰)
ndecimal number (Unicode code point)
dₖbinary digit (0 or 1) at position k

Let's understand it simply

Imagine you want to send a message to a friend using only 0s and 1s. But your message is in Hindi or English letters! Computers solve this by giving every letter, symbol, or emoji a special number. This list of numbers is called Unicode. For example, 'A' gets 65, 'B' gets 66, 'अ' gets 2309, and so on. Then, computers change these numbers into binary, because computers only understand 0s and 1s. So, 'A' becomes 65, and 65 in binary is 1000001.

Think of it like a cricket jersey: every player has a unique number. The computer just writes the number in binary, not the name.

How it works

  1. Pick a character: For example, the letter 'A'.
  2. Find its Unicode code point: 'A' is 65.
  3. Convert the code point to binary: 65 in binary is 1000001.
  4. Store or send the binary: The computer saves or transmits 1000001.
  5. Reverse for reading: To show the letter again, the computer changes the binary back to the number, then looks up which character it is.
How computers convert text to binary using Unicode
  1. Pick a character (e.g., 'A')
  2. Find its Unicode code point (e.g., 65)
  3. Convert the code point to binary (e.g., 1000001)
  4. Store or send the binary (e.g., 1000001)

The story behind it

Long ago, computers only understood English letters, using a system called ASCII (American Standard Code for Information Interchange). But the world has thousands of languages and symbols! So, in the 1990s, experts created Unicode. Unicode gives every character in every language a unique number. Now, computers everywhere can store and show text in Hindi, Tamil, Chinese, emojis, and more. The Unicode Consortium, a group of people and companies, keeps adding new symbols every year.

Where you see it in real life

  • Sending a WhatsApp message: When you type 'नमस्ते', your phone turns each letter into Unicode numbers, then into binary, and sends it.
  • Websites: When you see your name in your language on a website, the computer used Unicode and binary to store and show it.
  • SMS in different languages: Text messages use Unicode to send Hindi, Bengali, or even emojis.
  • Programming: When you write 'print("Hello")', the computer stores each letter as binary using Unicode.
  • Digital books (e-books): The text is stored as Unicode numbers in binary form.
  • Bank ATMs: When the ATM shows your name in your language, it uses Unicode and binary.

Why it matters

  • Universal communication: Unicode lets computers everywhere understand all languages and symbols.
  • Data storage: All text, from your school notes to government records, is stored as binary using Unicode.
  • Programming: Every app, website, and device uses this method to handle text.
  • Exams and jobs: Understanding binary and Unicode is key for computer science, coding, and IT jobs.

Worked example

Let's convert the letter 'B' to binary using Unicode:

Given: Character = 'B'
Step 1: Find Unicode code point for 'B' = 66
Step 2: Convert 66 to binary
66 ÷ 2 = 33 remainder 0
33 ÷ 2 = 16 remainder 1
16 ÷ 2 = 8 remainder 0
8 ÷ 2 = 4 remainder 0
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Step 3: Write remainders from bottom to top: 1000010
Answer: 'B' in binary is 1000010

Common mistakes

  • Thinking computers store letters directly: Computers only store numbers (in binary), not the actual letters or symbols.
  • Mixing up ASCII and Unicode: ASCII only covers English letters; Unicode covers all languages and emojis.
  • Forgetting to convert to binary: Some think Unicode numbers are stored as they are, but computers always use binary.
  • Not reading remainders in the right order: When converting to binary, always read remainders from bottom to top.

Remember it

Every letter or symbol gets a unique number (Unicode), and computers write that number in binary.

Check yourself

What is the Unicode code point for the letter 'C' and its binary form?

Unicode for 'C' is 67; in binary, it is 1000011.

Why do computers use binary instead of storing letters directly?

Computers only understand 0s and 1s, so they store numbers in binary.

If you type 'अ', what does the computer do before storing it?

It finds the Unicode number for 'अ' (2309), then converts 2309 to binary.

What is a common mistake students make when converting to binary?

Not reading the remainders from bottom to top.

Quick recap

  • Unicode gives every character a unique number.
  • Computers store these numbers as binary (0s and 1s).
  • Text in any language is converted to binary using Unicode.
  • ASCII is old and only for English; Unicode is for all languages.
  • Always read binary remainders from bottom to top.
Written by the LLOS.ai tutor, checked against NCERT chapters. Asked by Anonymous from Indianapolis, United States on 23 Oct 2026, 3:26 PM IST