Devanagari script
Sanskrit OCR संस्कृतम्
Turn scanned Sanskrit texts printed in Devanagari into editable Unicode. The Sanskrit OCR model is trained for Sanskrit's long compounds and dense conjunct letters.
● Runs in your browser. Your files are never uploaded.- Sanskrit is already selected
- Output: .md, .txt
.pdf.jpg.png.docx.pptx.xlsx.xls.csv.txtNo file to hand? (a made-up 6-page PDF).
Good for
- Printed shlokas, stotras and scriptures
- Academic editions and commentaries
- Grammar and textbook pages
- Inscriptions transcribed into print
Tips for better Sanskrit results
- Sanskrit is selected on its own. Add Hindi if the page has Hindi translation or commentary.
- Editions with tight, stacked conjuncts need a 300–400 dpi scan.
- Check visarga (ः) and avagraha (ऽ) in the output: they are small and easy to miss.
What to check in Sanskrit results
- Long compound words (samasa) are sometimes split at the wrong point. Check sandhi joins against the source.
- Vedic accent marks (svara) above and below letters are not reliably recognised.
- Avagraha (ऽ) can be read as the letter S or a digit.
Sandhi, compounds and long words
Sanskrit text joins words through sandhi and builds long compounds, so a printed line may contain few spaces. The OCR model reads letter by letter and does not need spaces, but very long words broken across lines with a hyphen are rejoined only if you remove the hyphen yourself.
The avagraha (ऽ) and the visarga (ः) are small and easy to lose on worn print. Vedic accent marks (svaras) printed above and below letters are not recognised and are usually dropped, so this page suits classical texts better than accented Vedic editions.
Transliteration and AI tools
This page selects Sanskrit only, because Sanskrit editions rarely mix in English. If your edition has an English translation alongside, add English in the box above.
Once you have the Devanagari text, an AI assistant can transliterate it to IAST or translate it, but check the diacritics and the meaning against a trusted edition: models are confident with Sanskrit even when they are wrong.
Questions
Why is English not selected here?
Sanskrit texts rarely mix in English, and leaving English out avoids Latin letters appearing in the result. Add English if your edition has English notes.
Can it read Sanskrit in other scripts (Grantha, Sharada, IAST)?
This page is for Devanagari. Romanised Sanskrit (IAST) is Latin script, so use English; diacritics like ā and ś may need checking.
Are my Sanskrit documents uploaded anywhere?
No. OCR runs inside your browser. The Sanskrit language data is downloaded to your browser once, but your files never leave your device.