Skip to content
ProgrammerCat

Hindi OCR: Convert a Hindi Image or Scan to Editable Text

Turn a photo or scanned page of Hindi into editable text with Google Lens, Google Docs, or an offline phone scanner, plus tips for clean, accurate results.

By ProgrammerCat Published 7 min read
In this article

To convert a Hindi image to editable text, run it through an OCR (optical character recognition) tool that supports Devanagari. Google Lens, Google Docs via Google Drive, and offline scanner apps on your phone all do this. For the best results, photograph the page flat, straight on, in even light, crop it to the text, and proofread the output for matra and conjunct errors.

Printed Hindi converts well with any decent tool. Handwritten Hindi is unreliable with every tool, so expect to retype a lot of it.

What OCR does, and why Hindi is harder

OCR looks at an image of text and works out which characters are on it. The result is real text you can edit, search, and copy, instead of a picture of text.

English is relatively easy for OCR: separate letters, a small alphabet, few marks above or below the line. Devanagari adds several problems:

  • The shirorekha. The headline across the top of each word joins the letters together. The software has to split a word into characters without a gap between them.
  • Matras. Vowel signs sit above, below, before, or after the consonant. The ि in कि is written before the क but typed after it. Small signs such as ं (anusvara) and ँ (chandrabindu) are easy to drop.
  • Conjuncts. Combined consonants such as क्ष, त्र, ज्ञ, श्र, and द्ध change shape. Some fonts draw them differently from others.
  • Look-alike letters. ध and घ, भ and म, ब and व, ड and ड़ differ by a stroke or a dot. Poor photos blur exactly those details.

Modern OCR handles all of this far better than tools from a few years ago. But these are the places where errors still appear, so they’re where you should check first.

Your options for Hindi OCR

Google Lens

Google Lens is on most Android phones, in the camera app, the Google app, or Google Photos.

  1. Point Lens at the page, or open a photo in Google Photos and tap Lens.
  2. Choose the Text option.
  3. Select the text you want, then copy it.
  4. Paste it into a notes app, an email, or a document.

Lens is quick for a paragraph or a sign. It’s awkward for full pages or many pages, and it gives you plain text without layout. Lens usually relies on Google’s servers, so plan on having a connection.

Google Drive and Google Docs

Google Docs can convert an image or PDF to text when you open it from Drive.

  1. Upload the image or PDF to Google Drive.
  2. In Drive, open the file’s menu and choose Open with, then Google Docs.
  3. Docs creates a new document with the image at the top and the recognized text below.

This handles Hindi and keeps some formatting. Google’s help pages list limits on file size and page count for this conversion, so long PDFs may only partly convert. Your file is stored in your Google account.

An offline scanner app on your phone

A scanner app with on-device OCR does the whole job on the phone: capture, crop, recognize, edit, export.

Pustak Scan is one, built for Hindi and English. Text recognition runs on the phone itself, it works offline, and documents never leave the phone. You can scan pages with automatic edge detection, crop and filters, up to 50 pages at once, or import gallery photos and PDFs. Long PDFs with hundreds of pages are processed in the background. You can then edit the text with headings, bold, bullets and alignment, and export it as Word (.docx), plain text, a PDF, or a searchable PDF.

Which option to use

ToolNeeds internetBest forOutput
Google LensUsuallyA paragraph, a sign, a quick copyPlain text
Google Docs via DriveYesSingle documents you’re fine storing in DriveGoogle Doc
Offline scanner appNoMany pages, private papers, Word exportEditable text, .docx, PDF

How to get accurate Hindi OCR results

Most OCR errors come from the photo, not the software. Fix the input and the output improves.

  1. Flatten the page. Book pages curve near the spine, which bends the shirorekha and confuses the line splitting. Press the book open, or scan loose sheets on a table.
  2. Use even light. Daylight from a window works well. Avoid your own shadow across the page and the glare spot from a ceiling lamp on glossy paper. Turn off the flash if it creates a bright patch.
  3. Shoot straight on. Hold the phone parallel to the page, directly above it. Edge detection can correct a slight angle, but steep angles stretch the letters.
  4. Crop to the text. Remove the table, your fingers, and the facing page. Extra content adds noise.
  5. Get close enough. The text should fill most of the frame. Small text in a large photo loses the dots and small matras. One page per photo is better than two.
  6. Keep it sharp. Tap to focus and hold still. A slightly blurry photo can turn ड़ into ड.
  7. Prefer printed originals. A clean printed page beats a faded photocopy, which beats a phone photo of a screen.

Printed vs handwritten Hindi

Printed text in common fonts gives the best results. Newspapers and old books with worn type are harder but usually workable.

Handwriting varies too much from person to person. Any OCR tool will make many mistakes on handwritten Hindi. For a handwritten letter or notes, use OCR as a rough first draft at best, and plan to type most of it.

Proofreading tips for Hindi OCR output

Read the output next to the original. Check these spots first:

  • Missing dots and marks. Anusvara (ं), chandrabindu (ँ), and nukta (ड़, ज़) are the first to disappear.
  • Matra mix-ups. Short ि vs long ी, and ु vs ू.
  • Broken conjuncts. A conjunct split into two letters with a stray halant (्), or the reverse.
  • Look-alike swaps. ध/घ, भ/म, ब/व.
  • Punctuation. The full stop । (purna viram) can come out as |, l, or 1.
  • Digits. Devanagari digits १२३ and Western digits 123 may be mixed. Pick one style and make it consistent.

Your phone’s Hindi keyboard, such as Gboard with Hindi added, makes the corrections quick.

How to export Hindi text to Word

  1. Recognize the page with your OCR tool.
  2. Fix the obvious errors in the app, if it has an editor.
  3. Export as a Word file (.docx). If the tool only gives plain text, copy it and paste it into a new Word document.
  4. Open it in Microsoft Word, Google Docs, or another word processor.
  5. If you see boxes or broken letters, change the font to one with Devanagari support. On Windows, Nirmala UI and Mangal are common choices.

OCR output is Unicode text. It works in any modern app and in web search. Older documents typed in legacy Hindi fonts such as Kruti Dev look the same on paper, but use a different encoding. OCR is one way to turn those printouts into Unicode.

If you want a PDF that still looks like the original page but lets you search and copy the text, see what a searchable PDF is and how to make one on Android.

FAQ

Can I convert Hindi text from a photo offline?

Yes, with an app that runs OCR on the phone. Google Docs needs a connection, and Google Lens usually does. Pustak Scan works fully offline.

Why does my OCR output show strange characters?

Either the font you’re viewing it in lacks Devanagari, or the source photo was poor. Change the font first. If the characters are wrong rather than missing, retake the photo in better light.

Can OCR read pages with both Hindi and English?

Many tools can, including Google’s. Mixed pages still need a careful proofread where the languages switch.

Is OCR accurate enough to skip proofreading?

No tool is. Even good output on clean print has a few errors per page, and in Hindi they hide in small marks. Always read it once.

More articles

Pustak Scan

How to Convert a Scanned PDF to Word on Android

A scanned PDF holds only pictures of text, so it needs OCR before Word can edit it. Three ways to do it on Android, and how to fix the errors OCR leaves.

Pustak Scan

How to Scan Documents With Your Phone: 9 Tips

Get sharp, readable phone scans: even light, a dark background, a straight angle, flat pages, the right filter and size, page order, and PDF or JPG.