OCR Tools

Sanskrit Image to Text Converter (Sanskrit OCR)

Upload a photo or scan with Sanskrit (संस्कृतम्) writing and get editable Sanskrit text in seconds.

Upload Scanned Image Files
Drag & drop or click to browse — multiple files supported
Drop your image files here
or click to browse from your device
.JPG .PNG .TIFF .BMP .WEBP Max 100MB
1
Upload
Image
2
Select
Language
3
Extract
Text
4
Copy &
Download
Ready · ~1–30s
100 MB
Max file size
50+
Languages supported
< 30s
Avg processing time
Free
No signup needed

Last updated: · Written by the Ocr4you team

Free Sanskrit OCR: convert a Sanskrit image to text online

Ocr4you reads Sanskrit (संस्कृतम्) text from photos, screenshots and scanned pages and turns it into real, editable Unicode text. Upload a JPG, PNG, WEBP, TIFF or BMP file, click Extract Text, and a few seconds later you can copy the Sanskrit text or download it as a TXT file. You do not need to install a Sanskrit keyboard or type anything again. People search for this as "Sanskrit image to text", "Sanskrit OCR" or "संस्कृत फोटो से टेक्स्ट", and this page does exactly that.

Who uses Sanskrit image to text?

Sanskrit is read and written by millions of people in Varanasi, Ujjain, Tirupati, Pune, Karnataka and Sanskrit universities and pathshalas across India. A huge amount of everyday paperwork in Sanskrit still exists only on paper or as a picture: shloka books, Bhagavad Gita and Upanishad editions, Ramayana and Puranic texts, stotra booklets, temple and pathshala notes, university question papers and old Sanskrit manuscripts printed in Devanagari. Retyping these by hand is slow and full of mistakes, especially when you have to find each Devanagari letter on a phone keyboard. With OCR you photograph the page once and get text you can edit, translate, search, quote in an assignment or paste into a WhatsApp message.

How Devanagari script is recognised

Sanskrit is printed in Devanagari with the headline (shirorekha), the danda । and double danda ॥ verse marks, the avagraha ऽ and many stacked conjuncts such as ज्ञ, क्ष, द्ध and त्र्य. The OCR reads whole clusters, so ordinary verses come out as proper Unicode; rare stacks such as ञ्ज and ङ्ग can be misread, so proofread them.

Ocr4you first sends the page to an AI document text model that detects the language automatically; if that service is unavailable, the open-source Tesseract engine on our server reads it with its Sanskrit language model, so you do not have to pick Sanskrit from a list. It also handles pages that mix Sanskrit with English words, numbers, dates and phone numbers, which is very common in forms, bills and notices.

About the Sanskrit language and Devanagari script

Sanskrit is one of the 22 scheduled languages of the Indian Constitution and was declared a classical language of India in 2005. It is the language of the Vedas, the Upanishads, the Mahabharata and the Ramayana, and of classical works on grammar, mathematics, medicine and drama.

Sanskrit is normally printed in Devanagari today. Verses end with a danda (।) or a double danda (॥), and sandhi joins neighbouring words into long strings, so one line of a shloka can look like a single very long word. The avagraha (ऽ) marks a dropped vowel.

In our test on a four-line Bhagavad Gita passage the OCR returned the lines in order with the dandas intact and most words exact; the stacked conjunct in सञ्जय was misread and च्व became श्व. Check conjuncts and the avagraha after conversion.

How to extract Sanskrit text from an image

  1. Click the upload box above and choose your Sanskrit photo or scan. You can add several images at once.
  2. Optionally choose the gray filter for faded or yellowed pages.
  3. Press Extract Text. The OCR runs on our server and usually finishes in under 30 seconds.
  4. Copy the Sanskrit text, or download it as a TXT, Word or PDF file from the result page.

Tips for better Sanskrit OCR accuracy

  • Take the photo straight from above in daylight and avoid shadows from your phone or hand.
  • Crop away the table, background and other pages so only the Sanskrit text is in the frame.
  • Use at least 300 DPI when scanning; small Devanagari marks disappear at low resolution.
  • Split very long pages, such as full newspaper sheets, into columns before uploading.
  • For a multi-page Sanskrit PDF use Scanned PDF to Text, and to get an editable document use Convert to Word.

Is it free and private?

Sanskrit OCR on Ocr4you is free, with no sign-up and no page limit, so you can convert a whole stack of Sanskrit documents. Uploaded images are used only to extract the text and are not shared or published. Your result is shown only to you in your browser session.

Frequently asked questions

Can I convert a Sanskrit image to text for free?

Yes. It is free for every visitor, with no sign-up and no page limit. Upload your Sanskrit image, click Extract Text and copy the result.

Does the Sanskrit OCR give Unicode text?

Yes. The output is standard Unicode Sanskrit (Devanagari script), so it works in Word, Google Docs, WhatsApp, email and any website.

Do I need to select Sanskrit as the language?

No. The OCR detects Sanskrit automatically, and it also reads English words and numbers mixed into the same page.

Can it read handwritten Sanskrit?

Neat handwriting in Sanskrit often works, but printed text gives the best accuracy. For handwriting, use a sharp photo and try our handwriting to text page.

Which file types are supported for Sanskrit OCR?

JPG, JPEG, PNG, WEBP, TIFF and BMP images up to 20 MB each. For PDFs use the Scanned PDF to Text tool.

Does Sanskrit OCR keep the danda and double danda marks?

Yes. The danda (।) and double danda (॥) are kept in the result when they are printed clearly.

Can it read Vedic accent marks (svara)?

Accent marks above and below the line are tiny and are often dropped or misplaced. Use a high resolution scan and add the marks by hand if you need them.

Can I extract Sanskrit from a book photo and edit it?

Yes. Photograph each page straight on, extract the text and paste it into Word or Google Docs. Proofread conjunct letters and sandhi words before sharing.

Is Sanskrit the same as Hindi for OCR?

Both use Devanagari, so the engine reads them with the same script model, but Sanskrit has more rare conjuncts. Results are good for printed verses and need proofreading for complex stacks.

OCR Settings
Tune for better results
🎨 Apply filter
Improves OCR accuracy on faded or low-contrast scans