How to Extract Text from an Image (OCR) in Hindi, Gujarati and English
Typing out text from a photo, a screenshot or a scanned page takes ages, especially in Hindi, Gujarati or another Indian script. OCR (optical character recognition) does it for you: it reads the letters in an image and turns them into text you can copy, edit and search. This guide shows how to extract text from an image in English, Hindi, Gujarati and other languages for free, and how to get the most accurate results.
Quick answer: Open the free image to text OCR tool, choose the Language of the text (for example English, Hindi, English + Hindi or Gujarati), then drop in an image or PDF, or paste a screenshot with Ctrl+V. The text appears in the box below, ready to copy or download as a .txt file. Everything is processed in your browser, so your images are not uploaded.
Supported languages
The OCR text extractor uses the open-source Tesseract engine and supports 18 language options:
- Indian languages: Hindi, Gujarati, Marathi, Bengali, Tamil, Telugu, Kannada, Punjabi and Urdu
- English, plus a combined English + Hindi option for mixed documents
- Other languages: Arabic, Spanish, French, German, Portuguese, Chinese (Simplified) and Japanese
Choosing the right language matters more than anything else. OCR recognises characters by comparing them to the script it has been told to expect, so Hindi text scanned with the English setting will produce nonsense. Marathi also uses the Devanagari script, but selecting Marathi rather than Hindi gives better results for Marathi words.
How to extract text from an image, step by step
- Open the tool. Go to the OCR text extractor.
- Select the language first. Pick it from the Language of the text menu before adding your file. For a government form or bill with both English and Hindi, choose English + Hindi.
- Leave Image clean-up on Auto. The Auto (grayscale + sharpen) setting converts the image to grey and boosts contrast, which helps with photos taken on a phone. Switch to None only if a clean, high-contrast scan gives worse results with clean-up on.
- Add your image or PDF. Drag and drop screenshots, photos, scanned pages or receipts, or click to choose files. You can also copy an image and press Ctrl+V on the page to paste it directly. PDFs are supported too; up to the first 30 pages are read.
- Wait for processing. The first time you use a language, its language data is downloaded, so the first run can take a little longer. A progress bar shows each page as it is read.
- Review the text. The extracted text appears in the Extracted text box, along with a word count and an average confidence score. A low confidence score is a sign to try a clearer image.
- Clean up and save. Click Join broken lines to merge lines that were split mid-sentence, then use Copy text or Download .txt.
Extracting Hindi text from an image
Devanagari is more challenging for OCR than English because of the shirorekha (the headline joining letters), conjunct consonants and vowel signs (matras) above and below the line. To get the best Hindi results:
- Choose Hindi for pure Hindi text and English + Hindi when English words, numbers or names appear in the same document.
- Use a sharp, well-lit image. Small matras such as the chandrabindu or anusvara are often the first to be lost in a blurry photo.
- Check conjuncts (such as kṣa, tra and jña) and nukta letters in the output, as these are the most common sources of errors.
- Remember that the output is Unicode Hindi text, so it can be pasted straight into Word, Google Docs, WhatsApp or email.
Extracting Gujarati text from an image
Gujarati script has no headline, and several letters look similar at low resolution. Select Gujarati in the language menu, and photograph the page straight on, filling the frame with the text. Printed text such as newspapers, books, invoices and notices gives good results; decorative fonts used in wedding cards or shop banners are harder for OCR to read. The same advice applies to Marathi, Bengali, Tamil, Telugu, Kannada, Punjabi and Urdu.
Tips for better OCR accuracy
- Use good, even light. Shoot near a window or under a bright light, and avoid shadows from your phone or hand across the page.
- Keep the page flat and straight. Curved book pages and tilted angles distort letters. Hold the camera parallel to the page.
- Crop away clutter. Backgrounds, table edges and neighbouring pages confuse OCR. Trim the image to just the text with crop image.
- Rotate sideways photos. If text is sideways or upside down, fix it first with rotate image.
- Prefer higher resolution. Small text in a low-resolution screenshot is hard to read. Zoom in before taking a screenshot, or photograph the page closer.
- Printed text works best. OCR is designed for printed and typed text. Neat block handwriting may partially work, but cursive handwriting usually gives unreliable results.
- One language per run when possible. If a page mixes two languages other than English and Hindi, run it once per language and keep the better parts.
Extracting text from a scanned PDF
Drop a scanned PDF into the OCR text extractor and it renders each page and reads it, up to 30 pages, with the pages separated in the output. This is ideal when you want the text itself. If instead you want to keep the PDF and simply make it searchable and selectable, use PDF OCR, which adds a text layer to the file on the server. If your PDF already contains real text (you can select words in a PDF reader), you do not need OCR at all: PDF to text extracts it directly and exactly.
Cleaning up the extracted text
OCR keeps the line breaks of the original image, which is useful for addresses and lists but awkward for paragraphs. The built-in Join broken lines button handles most cases. For more control, paste the text into remove line breaks. Always proofread important details such as names, phone numbers, amounts and dates.
Frequently asked questions
Can OCR read Hindi and English in the same image?
Yes. Choose the English + Hindi option, which recognises both scripts in one pass. This is the best setting for bilingual forms, bills and notices.
Are my images uploaded to a server?
No. The OCR text extractor runs in your browser, so your images and PDFs stay on your device. Only the language data is downloaded to your browser the first time you use a language.
Why is my extracted text full of mistakes?
The usual causes are the wrong language setting, a blurry or dark photo, a tilted page or a decorative font. Select the correct language, retake the photo in good light, crop to the text and try again.
Can I extract text from handwriting?
Results with handwriting are unreliable. Neat, separated block letters may be partly recognised, but OCR works best on printed or typed text.
How many pages of a PDF can I process?
The tool reads up to 30 pages of a PDF at a time. For longer documents, split the PDF into parts and process each one.
Conclusion
With the right language selected and a clear, straight image, OCR can save you hours of typing, whether the text is in English, Hindi, Gujarati or another Indian language. Pick the language, add your image, PDF or pasted screenshot, join broken lines and copy the result. Try the free OCR text extractor and turn your next photo of a page into editable text in seconds.