Upload a photo or scan with Sanskrit (संस्कृतम्) writing and get editable Sanskrit text in seconds.
Last updated: · Written by the Ocr4you team
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.
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.
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.
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.
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.
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.
Yes. The output is standard Unicode Sanskrit (Devanagari script), so it works in Word, Google Docs, WhatsApp, email and any website.
No. The OCR detects Sanskrit automatically, and it also reads English words and numbers mixed into the same page.
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.
JPG, JPEG, PNG, WEBP, TIFF and BMP images up to 20 MB each. For PDFs use the Scanned PDF to Text tool.
Yes. The danda (।) and double danda (॥) are kept in the result when they are printed clearly.
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.
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.
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.