Garbled Hindi from a PDF? Blame the old font
Hindi copied from many PDFs turns into Latin-looking gibberish because the file uses an old pre-Unicode font, such as Kruti Dev. These fonts draw Devanagari shapes but store ordinary English letter codes underneath. You can run a font converter, or read the page image with OCR instead.
By the FastOCR team · Published · 7 min read
Who this is for
- Students, researchers and office staff who copy Hindi from a PDF and get nonsense.
- You need the PDF. If you know the font name, that helps but is not required.
On this page
Why does Hindi turn into gibberish when I copy it from a PDF?
Because what you see and what is stored are different things. Many older Hindi documents were made with fonts from before Unicode. Unicode is the modern standard that gives every character in every language its own code. Without it, a font could draw any shape it liked under any code.
Fonts such as Kruti Dev reused the codes for English letters. So the code for an English letter was drawn as a Devanagari shape.
On screen you read Hindi. Underneath the PDF holds the English-keyboard characters that were typed. When you copy, you get those characters, not Hindi.
How can I tell that an old font is the cause?
Paste the copied text into a plain note. If you see a mix of English letters, digits and symbols where Hindi should be, it is almost certainly a legacy font. Real Hindi from a modern PDF pastes as Devanagari.
The example below is illustrative, not taken from a real document. The first line is what the page shows. The second is the kind of text you might get when you copy it.
नमस्ते, आप कैसे हैं?ueLrs] vki dSls gSa\
Another clue: open the file's properties in your PDF viewer and look at the font list. A name such as Kruti Dev points to the problem.
What are my two options?
There are two ways to get real Hindi out. Which one to pick depends on whether you know the font and whether the PDF has a text layer at all.
- Use a font converter. If you know the font (for example Kruti Dev), paste the garbled text into a converter built for that font. It maps the Latin codes back to Unicode Hindi. This works only for fonts the converter supports, and long documents need care.
- Read the page image with OCR. OCR (optical character recognition) looks at how the page appears and writes the letters it sees, so the old font mapping does not matter. This also works when the font is unknown, and when the PDF is a scan with no text layer at all.
What should I check after getting the text?
Check the vowel signs. In Devanagari, a matra is a vowel sign written above, below or beside a consonant, such as the marks in कि and की. Matras are small, and they are the first thing to go wrong in both converters and OCR. Look at each one against the page.
Also check conjuncts, where two consonants join into one shape (for example क्ष and त्र), and check any numbers. Read a page aloud against the original if you can. Our Hindi OCR guide lists the usual trouble spots.
Does the same happen in Urdu and Tamil?
Yes, the same class of problem appears elsewhere. InPage, widely used for Urdu publishing, stored text in its own format, and many older Tamil documents use legacy fonts too. The page looks perfect and the copied text is meaningless.
The remedy is the same: either convert with a tool made for that font, or read the page image. For why these scripts are hard in general, see why some scripts are harder for OCR.
When is this guide not the answer?
If your copied Hindi is real Devanagari but the order or spacing is odd, that is a different problem. And if the PDF is a scan, there is no font to blame; see how to tell scanned from digital. For a poor-quality scan, a clearer photo will help more than any converter.
Frequently asked questions
Why does Hindi from my PDF paste as English-looking gibberish?
The PDF uses an old, pre-Unicode font such as Kruti Dev. That kind of font stores Hindi shapes under ordinary Latin letter codes, so copying gives you the Latin codes instead of real Hindi characters.
What is Kruti Dev?
Kruti Dev is a legacy Hindi font family widely used before Unicode became standard. It draws Devanagari shapes but stores them as Latin keyboard characters. Text typed in it looks right on screen and breaks when copied.
Can a font converter fix it?
Yes, if you know which font the text uses and the converter supports it. Results vary, so check them. If the font is unknown or the PDF is a scan, reading the page image with OCR is the more reliable route.
Does the same problem affect Urdu and Tamil?
Yes. InPage, a popular Urdu publishing tool, and many older Tamil fonts also stored text in ways that do not match Unicode. The signs are the same: the page looks fine and the copied text is nonsense.
Get real Hindi text from a PDF
Upload the PDF and get Hindi text back, read from the page image instead of the broken hidden text. A free account includes 50 PDF pages a month.
Related guides
Sources
How we wrote this
The people who build FastOCR wrote this from our own testing and from how the product works today. We draft with AI help, then check every claim about FastOCR against the product. If something here is wrong or out of date, tell us and we will correct it.