What Is Unicode and Why Hindi Text Needs It
Founder & Developer
You copy a Hindi line from an old file into a message, and it arrives as a string of strange symbols. Or you type a sentence on your own device, send it, and the other person sees empty boxes. Nothing is wrong with your eyes or your typing. Behind both problems sits one idea that most people never hear about: how a computer stores the letters of a language. The short answer to what is Unicode Hindi is that it is the shared way of storing Hindi letters, signs and digits, so that a modern device can show, search and copy them in the same way.
This guide explains Unicode Hindi in plain language. It covers what Unicode is, the difference between a character, a code point and a font, how Hindi was typed before Unicode, why old font text turns into symbols, what Unicode gives you, how letters, signs and the halant are stored, why the order of storing differs from the order of seeing, what an encoding is, how fonts fit in, how to tell old text from Unicode, how to convert and check it, and where it matters in daily life. The examples are written for this page. The technical facts are kept simple, and the times are suggestions and not typical figures.
Unicode: a shared standard that gives every character its own number.
Three layers: the character, its number and the font that draws it are different things.
Old fonts: they stored English codes and only looked like Hindi in one special font.
Unicode text: it stores real Hindi letters, so it can be searched, copied and sorted.
Signs: each vowel sign and the halant is its own character, stored in the order of the sounds.
Encoding: the way numbers are written as bytes, and a wrong choice gives strange letters.
Convert with care: use the converter that matches the old font, and check the result.
What Unicode is, in plain words
A computer does not store letters. It stores numbers, together with a rule that says which number stands for which character. Long ago, different systems used different rules, so the same number could mean one letter in one place and another letter somewhere else. Text moved from one system to another often came out wrong.
Unicode is a shared standard that fixes this. It gives every character of every script its own unique number, called a code point. Hindi letters, vowel signs and digits have their own code points, in a block that is set aside for the Devanagari script. Because everyone agrees on the numbers, text that you type on one device can be read on another.
Unicode is not a program, and it is not a font. It is an agreement about numbers, kept up by an international group of people. When someone says that Hindi text is "in Unicode", they mean that the text stores the real Hindi characters according to this agreement.
Three layers: the character, the code point and the font
Most confusion about Hindi text comes from mixing three things that are separate. It helps to keep them apart.
Who decides what
| Layer | What it is | Example |
|---|---|---|
| The character | The letter or sign as an idea | The letter क |
| The code point | The number that Unicode gives to it | U+0915 |
| The font | The drawing that shows it on the screen | The shape that you see |
Unicode decides the first two layers. The font decides the third. If you change the font, the shape of क changes a little, but the character and its number stay the same. This is why Unicode text looks like Hindi in any font that carries Devanagari, and why old text, which depended on one special font, did not.
Keep this picture in mind for the rest of the guide. When something looks wrong on the screen, ask which layer has the problem: the text, the way it was read, or the font.
How Hindi was typed before Unicode
Before Unicode became common, many people typed Hindi with special fonts. These fonts were clever, and they were also a trick. The text that you typed was not stored as Hindi letters. It was stored as ordinary English letters and symbols, and the font drew a Hindi shape on top of each one.
So a file that looked like Hindi was really a string of English characters. Open it with the right font, and the shapes appeared. Open it without the font, and you saw the English characters, which looked like nonsense. Different fonts used different codes, so text typed in one of them looked wrong in another.
This worked well enough inside one office or one print shop, where everyone had the same font. It failed as soon as text left that place. We call this kind of text legacy font text, or old font text, and it is the reason why Unicode matters so much for Hindi.
Why old font text turns into random symbols
Old font text breaks whenever it leaves the place where its font lives. The table lists the usual moments, and what happens at each.
| What you do | What happens | Why |
|---|---|---|
| Open the file on a device without the font | English letters and symbols appear | The font that drew the Hindi shapes is missing |
| Copy the text into a message or a web page | Symbols appear | The font does not travel with the text |
| Search for a Hindi word | Nothing is found | The text holds English codes, not Hindi letters |
| Sort a list | The order looks wrong | The sorting follows the English codes |
| Ask a tool to read the text aloud | The speech is nonsense | The tool reads the English codes |
| Mix text from two old fonts | Some shapes are wrong | Each font used different codes |
None of this means that the text is lost. The original Hindi is still in there, hidden behind the codes. It means that the text needs to be converted into real Hindi characters before it can be shown, searched and shared in the usual ways.
What Unicode gives Hindi text
When Hindi is stored as Unicode, the text holds real Hindi characters. That changes what you can do with it.
| You want to | With Unicode text | Keep in mind |
|---|---|---|
| Show it on another device | It usually appears, if the device has a font that carries Devanagari | A missing font can still show boxes |
| Search for a word | A search can find it | The word must be typed in the same way |
| Copy and paste | The text moves between programs | Some places remove or change characters |
| Sort a list | A program can sort by the Hindi letters | The order may follow the program's own rules |
| Listen to it | A tool can read it aloud | Speech tools can mispronounce |
| Put it on a web page | The page can show it in any font that you choose | Check the page once on a small screen |
| Mix it with English | Both live in the same text | Check the spacing |
Notice the words "usually" and "can". Unicode removes the old trap, but it does not remove every problem. Fonts, programs and forms still differ, and a careful look at the final result is always worth a minute.
How Hindi letters, signs and the halant are stored
Every Hindi letter has a code point. So does every vowel sign, every dot mark, the halant and the nukta. The Devanagari block in Unicode runs from U+0900 to U+097F. Here are a few characters with their code points.
Some Hindi characters
| Character | Code point | Plain name |
|---|---|---|
| क | U+0915 | A consonant |
| ष | U+0937 | A consonant |
| ◌ा | U+093E | The long a sign |
| ि◌ | U+093F | The short i sign |
| ◌े | U+0947 | The e sign |
| ◌ं | U+0902 | The dot |
| ◌ँ | U+0901 | The moon dot |
| ◌ः | U+0903 | The two dots |
| ◌् | U+094D | The halant |
| ◌़ | U+093C | The nukta |
The key idea is that a vowel sign is not part of a letter. It is a character of its own, stored after the consonant that it belongs to. The halant is also a character of its own. A syllable on the screen may be made of several stored characters, and a joined letter is made of a consonant, a halant and another consonant.
One shape, several stored characters
Because signs and the halant are separate characters, one shape on the screen can be more than one stored character. The table shows a few words and the order in which their characters are stored.
| Word | Stored in this order | What to notice |
|---|---|---|
| कि | U+0915, U+093F | Two characters, one shape |
| क्ष | U+0915, U+094D, U+0937 | Three characters, one shape |
| कर्म | U+0915, U+0930, U+094D, U+092E | The र is stored before the halant, and the hook is drawn above म |
| नमस्ते | U+0928, U+092E, U+0938, U+094D, U+0924, U+0947 | Six characters, and fewer shapes on the screen |
This explains something that surprises many people: a word count and a character count can disagree with what you see. A tool may count the stored characters, and another may count the shapes. Our Word & Character Counter shows a length, and you should read how it counts if the exact number matters to you.
Why the stored order differs from the order you see
Unicode stores Hindi in the order of the sounds, the same order in which you would say the syllable. The screen then decides how to draw it. This is why two things look backwards at first.
Two cases to remember
The sign ि: it is drawn to the left of the consonant, but it is stored after it. To write कि, the consonant comes first, and the sign second.
The reph: the hook of a र at the start of a joined letter is drawn above the next letter, but the र is stored before the halant and the next consonant.
This is the reason why typing order is consonant first and sign after. Your fingers follow the stored order, and the font and the program draw the shape. Our guide on how to type vowel signs and the halant explains the typing habit, and our guide on how to type joined letters, or conjuncts, explains the shapes in depth.
When a word looks odd on the screen, trust the stored order and not the picture. Say the word aloud, and write its characters in the order of the sounds.
Encodings: how numbers become bytes
A code point is a number, and a file needs to write that number down in bytes. The rule for doing so is called an encoding. The most common encoding for the web is UTF-8. In UTF-8, a plain English letter takes one byte, and a Devanagari character usually takes three bytes.
You do not need to learn how the bytes work. You need to know one thing: a program must read a file with the same encoding that was used to write it. If it reads the bytes with the wrong rule, the Hindi characters turn into strange letters, often accented English letters or sequences of odd marks. People call this broken text. It is not damage to your file. It is a mismatch in reading.
| What you see | Likely cause | What to try |
|---|---|---|
| Accented English letters in place of Hindi | The file is read with the wrong encoding | Open or import the file again, and choose UTF-8 if the program asks |
| Question marks in place of Hindi | Characters were lost when the file was saved with an encoding that cannot hold them | Save again from the original, and choose UTF-8 |
| Empty boxes | The font has no shape for the character | Choose a font that carries Devanagari |
| Hindi looks fine in one program and strange in another | The programs read the file in different ways | Check the encoding option of the second program |
| Symbols that do not change when you change the font | The text is old font text | Convert it with the matching converter |
These are general causes, and the names and places of options differ from program to program, so use the help of your own program.
Unicode is the text, the font is the look
Unicode decides what the text says. A font decides how it looks. Keeping this straight saves a lot of worry.
A font may not carry every Hindi character. If a program shows an empty box, the text is usually fine, and the font has no shape for that character. Choose another font, and the box becomes a letter. Fonts also draw joined letters in different ways. One may draw a joined letter as a compact single shape, and another may draw it as a letter with a smaller letter beside it. Both are the same text.
For text that you share, choose a font that draws Devanagari well, and look at the page once on the device where it matters. At a small size, signs above and below the line can look faint, so enlarge the text before you decide that a sign is missing. This guide names no fonts, because fonts differ between devices and change over time.
One shape, more than one way of storing
Sometimes the same shape can be stored in more than one way. A good example is a letter with a dot below, the nukta. A letter such as ड़ can be stored as one character, or as the plain letter ड followed by the nukta. On the screen, the two look the same.
What it means
On the screen: you may not be able to tell the two apart.
In a search: a program may treat them as different, and miss a word that you can see.
In practice: many programs and keyboards use one method consistently, and some programs tidy the difference for you.
Your habit: if you work on a long document, keep to one way of typing such letters, and check your nukta words once at the end.
Do not worry about this in everyday use. It matters mostly when a search or a comparison behaves oddly. Our guide on Hindi alphabet explained describes the nukta letters, and our Spelling & Matra Checker can point out many small mark errors, although a checker can also be mistaken.
How to tell Unicode text from old font text
You can often tell by looking at how the text behaves. The table lists signs, and a short test follows.
| What you see | What it probably means | What to do |
|---|---|---|
| The text stays Hindi when you change the font | It is Unicode | You can use it as it is |
| The text turns into English letters and symbols when you change the font | It is old font text | Convert it with the matching converter |
| The text looks like Hindi only in one special font | It is old font text | Find out which old font, and convert |
| A search finds a Hindi word in the text | It is probably Unicode | Check a few words to be sure |
| Empty boxes appear | It is probably Unicode, and the font lacks shapes | Choose another font |
| Part Hindi and part odd symbols | The text mixes two kinds | Convert the odd part in small pieces |
Two minutes
- Paste a short line into a plain text box.
- Change the font once, and watch the line.
- Try to select one word, and try a search for it.
- If the line keeps its Hindi form and the search works, it is very likely Unicode.
Converting old text to Unicode safely
A converter reads the old codes and writes real Hindi characters. It works by rules, so it can make mistakes. The steps below are a careful way to use one.
Keep a copy of the original file, and work on a copy.
Find out which old font the text uses. If you do not know, try a short sample in each converter, and read the result. Real, sensible Hindi means that the converter fits.
Use the converter that matches the font. Our Krutidev to Unicode tool, our Chanakya to Unicode converter and our DevLys to Unicode converter each work on text typed in their own old font. A converter for a different font gives wrong or unreadable text.
Convert a small section first, and read it before you convert the rest.
Compare the new text with the original, one paragraph at a time.
Paste the converted text into your document as plain text, so that the old font does not come back.
Choose a font that carries Devanagari for the whole text.
Sometimes a person asks you for a file in an old font. If that happens, ask them first, and explain that Unicode is the modern way. If they still need it, our Unicode to Krutidev tool can write Unicode text in the old method, and you should check what it gives you. Keep your Unicode copy as your main file.
Checking converted text
Conversion by rules is quick, but a few patterns need your eyes. Always compare the result with the original.
| What to check | Why | What to do |
|---|---|---|
| The small ee sign | In old text it sat before the letter, and in Unicode it is stored after it | Check every word with this sign |
| The reph | Old fonts placed it differently | Check words that start with a hook |
| Joined letters | Old fonts drew them as single shapes | Compare each one with the original |
| The sentence end mark | It may change into another sign | Fix it with our Hindi Punctuation Formatter |
| Digits | Old digits can look different | Check every number twice |
| English words | They may be changed by mistake | Retype them after converting |
| Extra spaces and breaks | Copying can add them | Remove them by hand |
After you check by eye, paste a paragraph into our Spelling & Matra Checker and read each suggestion with care. Keep the original file until the final copy has been checked.
Scans, photos and PDFs
Not every Hindi text is a typed file. A scan or a photo of a page holds a picture, and not characters. Our Image/PDF to Text tool can make a first draft of editable text from such a file, and the draft needs careful checking. The text that it gives you is Unicode, which you can edit and search.
A PDF is a different case. Some PDFs hold real text, and some hold only pictures. If you copy text from a PDF and see symbols, the PDF may have been made with an old font, and you can try a short sample in a matching converter. If you want to edit a PDF as a document, our Hindi PDF to Word tool can prepare a file for editing, and its layout and letters should be checked afterwards.
Do not paste passwords, identity numbers, bank details or other private information into any online tool, and read the Privacy Policy of any site where you are unsure.
Typing Unicode Hindi yourself
The simplest way to be safe is to type Unicode from the start. A Hindi keyboard on a modern device produces Unicode, whichever layout you choose. Our guide on setting up a Hindi keyboard on a computer gives general steps, and our guide on Inscript for beginners explains one fixed layout in plain language.
If you cannot change the settings of a computer, our Virtual Hindi Keyboard lets you click the letters, and our guide on using an on screen Hindi keyboard explains how to use it well. Text typed there is Unicode too. Our Hindi Voice Typing tool lets you speak and see your words appear, and you should read the result as a draft.
The typing rule is the same everywhere: consonant first, and then the sign. This is the order in which Unicode stores the characters, and it is why the habit works on every layout. Our guide on common Hindi typing mistakes lists the slips to watch for.
Where Unicode matters in daily life
Most of the time you will not think about Unicode. The table lists places where it quietly does its work, and what to remember.
| Place | Why Unicode helps | A tip |
|---|---|---|
| Messages | Text arrives as Hindi on most devices | Read the message once before you send it |
| Web pages | The page can show Hindi in any font that it chooses | Look at the page on a small screen |
| Documents | You can search and edit Hindi text | Choose one font for the whole text |
| Lists and tables | A program can sort and filter Hindi words | Check the order, because rules differ |
| Forms | Some fields may accept Hindi | Some fields accept only English letters, which is a rule of the form |
| Printing | The text prints as drawn by the font | Ask the print shop which file type it needs |
If a form or a program does not accept Hindi, it is usually a limit of that form, and not a fault in your text. Ask the people who run it which characters it accepts.
Common mistakes with Hindi text and Unicode
| Mistake | Why it hurts | What to try |
|---|---|---|
| Treating old font text as ordinary Hindi | It breaks when it leaves its font | Convert it before you share it |
| Using the wrong converter | The output is wrong or unreadable | Match the converter to the old font |
| Trusting a conversion without checking | Small signs and joined letters may be wrong | Compare with the original |
| Blaming the keyboard for a font problem | The text is fine, and the font lacks shapes | Try another font |
| Pasting with the old formatting | The old font can come back | Paste as plain text |
| Mixing two ways of typing the same letter | A search may miss a word | Keep one method |
| Saving a file with the wrong encoding | Hindi turns into question marks | Save again from the original with UTF-8 |
| Deleting the original file too soon | You cannot compare or redo | Keep the original until you are sure |
Choose one row of the table each week and work on that single habit. Changing everything at once is the surest way to change nothing.
A week to make your Hindi text Unicode
If you have old files, a short plan keeps the job calm. The times are suggestions, and you can change them to suit your work.
| Day | Focus | Suggested time |
|---|---|---|
| Day 1 | List your old files, and keep a copy of each | 15 minutes |
| Day 2 | Find out which old font each file uses, with short samples | 15 minutes |
| Day 3 | Convert one small file with the matching converter | 15 minutes |
| Day 4 | Check the result against the original, line by line | 20 minutes |
| Day 5 | Fix signs, joined letters and the sentence end mark | 15 minutes |
| Day 6 | Rest, or convert one more short file | Optional |
| Day 7 | Save the final text, and test it on another device | 15 minutes |
A template that you can copy
| File | Old font method | Problem I met | What worked |
|---|---|---|---|
| Example file 1 (example only) | A typed practice sheet | Joined letters looked wrong | I compared line by line, and fixed three words |
| Example file 2 (example only) | A short notice | The sentence end mark was a different sign | I used the punctuation tool, and read the line again |
| Your file 1 | (empty) | (empty) | (empty) |
| Your file 2 | (empty) | (empty) | (empty) |
The first two rows are examples made up for this page. They show how to fill the log, and they are not typical results. If you plan to type new text as well, our guide on a simple weekly practice plan shows how to build a routine.
Realistic expectations
No page can promise that every conversion will be perfect, or that every device will show your text in the same way. It depends on the old font, the converter, the program that you open the file in and the fonts that your device carries. Some files convert cleanly, and some need patient checking, and both are normal.
Even with Unicode, small surprises remain. A font may lack a shape, a form may refuse Hindi, and a program may read a file in its own way. These are limits of places and of fonts, and not of the text. A calm look at what each layer is doing, the text, the reading or the font, usually points to the fix.
If a file matters for an important purpose, convert it with care, check it against the original, and ask another person to read it. Our guide on how to improve your Hindi typing speed step by step is useful if you plan to type new text in the future.
Frequently asked questions
8 common queries answeredConclusion
Unicode is a simple idea with a large effect. Every character gets one number, the text is stored as real characters, and the font only decides how it looks. With the answer to what is Unicode Hindi in mind, the old puzzles make sense: why old font text turns into symbols, why a sign is stored after its letter, and why boxes appear when a font has no shape.
Start small. Look at your own files today, and use the short test to see which ones are Unicode. Convert one small old file with the matching converter, and check it against the original. Type new text in Unicode from now on, with a layout that you can keep, and paste as plain text. Our guide on how to improve your Hindi typing speed step by step is a good companion to this one.
Be patient with yourself, because Hindi text has many layers, and everyone learns them at their own pace. If something in this guide is unclear, or you find a mistake in it, please write to me through the Contact page, and I will correct it.
