Skip to main content

Sanskrit OCR — Image to Text & PDF

संस्कृतचित्रग्रन्थेभ्यः पाठ्यस्य निष्कर्षणम् कुरुत

  • Devanagari script support
  • Historical manuscripts
  • Vedic accent marks

Free image OCR. No account needed. PDFs use pages.

Open OCR for all languages

Kadambari bana

Real scan. Unedited OCR.

३० कादम्बरी|
तेन पठतां दिगन्तव्यापिना कलकलेन प्रचलितजन चरणशतसंक्षोभाद्विहाय कुसुमप्रकरमु-
स्पततां च मधुलिहां हुंकृतेन, संक्षोभादतित्वरित पदप्रवृत्तैरव निपतिभिः केयूरको टिताडितानां
क्वणितमुखररत्नदानां च मणिस्तम्भानां रणितेन सर्वतः क्षुभितमिव तदास्थानभवनमभवत्।
अथ विसर्जितराजलोको‘विश्रम्यताम्' इति स्वयमेवाभिधाय तां चाण्डालकन्यकां, वै-'
शम्पायनः प्रवेश्यतामभ्यन्तरम्, इति ताम्बूलकरङ्कवाहिनीमादिश्य, कतिपयाप्तराजपुत्रपरि-
वृतो नरपतिरभ्यन्तरं प्राविशत्। अपनीताभरणश्च दिवसकर इव विगलित किरणजालः चन्द्र-
तारकासमूहशून्य इव गगनाभोगः समुपाहृतसमुचित व्यायामोपकरणां व्यायामभूमिमया-
सीत्। स तस्यां च समानवयोभिः सह राजपुत्रैः कृतमधुरख्यायामः, श्रमवशादुन्मिषन्तीभिः
यो येषां ते तथा तेपाम्। पुनः केन। मणीति। मणिकर्णपूराणां रत्नकर्णाभरणानां निनादेन शब्देन। क-
र्णपूरं विशेषयन्नाह- प्रणामेति। प्रणामेन नमस्कारेण शिरोनमनात्पर्यस्तानां पतितानाम्। अतीति। अ-
तिकठिनं यन्मणिकुट्टिमं तत्र निपतितेन पातेन रणरणायितानां संजातरणरणितिशब्दानाम्। पुनः केन| दिशां
ककुभामन्ता दिगन्तास्तान्व्याप्नुवन्तीत्येवंशीलेन कलकलेन कोलाहलेन। केपाम्। पठताम्। कीर्तिपाठकानामि-
त्यर्थः। कीदृशानाम्। पुरोयायिनामग्रगामिनां मङ्गलपाठकानां बन्दिनां जयजीवजयजीवेति यन्मधुरं वचनं तद-
नुलक्षीकृत्य यातेन प्रवृत्तेन। पुनः केन| मधुलिहां भ्रमराणां हुंकृतेन हुंकारशब्देन। किं कुर्वताम्। उत्पतता-
मुडीनं कुर्वताम्। किं कृत्वा। विहाय यक्त्वा। किम्। कुसुमप्रकरं पुष्पसमूहम्। कस्मात्। प्रचलितेति।
प्रचलिता ये जनास्तेषां चरणाः पादास्तेपां शतं तस्माद्यः संक्षोभः संभ्रमस्तस्मात्। पुनः केन। मणिस्तम्भानां
रत्नस्थूणानां रणितेन रणत्कारेण। कीदृशेन। क्वणितेन शब्दितेन मुखराणि वाचालानि रत्नदामानि येषु ते तथा
तेषाम्| केयूरेति। केयूराणामज्ञदानां कोटयोऽग्रभागास्तैस्ताडितानामाहतानामिति स्तम्भविशेषणम्| कैः:।
अवनिपतिभिः नृपतिभिः। कीदृशैः। संक्षोभश्चित्तत्रैक्लव्यं तस्मादतित्वरित पदम तिवेगवत्तरचरणं यथा स्या-
तथा प्रवृत्तः प्रचलितैः। अन्वयस्तु प्रागेवोक्तः।
अथेति अथेत्यानन्तर्थे। नरपती राजा कतिपयैः कियद्भिराप्तेः शिष्टै राजपुत्रैर्नृपसूनुभिः परिवृतः सहि-
तो विसर्जितो विगृथे राजलोकः परिच्छदलोको येन रा तथा। राज्ञो विशेषणम्। विश्रम्यतां विश्रामं गृह्यता-
मिति सर्वान्स्वयमेवात्मनैवाभिधायक्त्वा तां चाण्डालकन्यकां वैशम्पायनश्च शुकोऽभ्यन्तरं मध्यं प्रवेश्यतां प्रवे-
शं कार्यतामिति ताम्बूलस्य नागवल्याः करङ्कः स्थगी तां वहतीत्येवंशीला सा तथा तामादिश्याज्ञां दत्त्वाभ्य-
न्तरम्। अर्थाद्गृहस्य। प्राविशत्प्रवेशे चकार। तदनन्तरं स राजा व्यायामः श्रमस्तत्करणयोग्यां भूमिं वसुंधरा-
मयासीदगच्छत्। इतो राजानं विशेषयन्नाह- अपेति। अपनीतानि दूरीकृतान्याभरणानि भूषणानि येन स
तथा। क इव। दिवसकर इव सूर्य इव। कीदृशः। विगलितानि स्रस्तानि किरणजालानि दीधितिवृन्दानि
यस्य स तथा। तत एवैतयोः साम्यम्। पुनः क इव। गगनाभोग इव घनाश्रयविस्तार इव। कीदृशः।
सं-

Original text order preserved

Sanskrit OCR converts images, scans and PDFs containing Sanskrit (संस्कृतम्) text into editable, searchable digital text. FastOCR reads Sanskrit online: upload an image with no account, or a PDF with a free account, then copy the text or download a searchable PDF. Accuracy depends on scan quality, so check the result against your original.

Try it with your Sanskrit document

Drop your file here

PDF, PNG, JPG, WebP, BMP, HEIC

PDF up to 1 GB · images up to 20 MB

Tips for a clear photo
  • Lay the page flat.
  • Use even light, with no shadows.
  • Turn off the flash to avoid glare.
  • Fill the frame with the page.

What is Sanskrit OCR & Developer API?

Developer API docs →

Sanskrit OCR is the automated process of converting scanned multi-page PDFs up to 1GB and documents into editable, searchable Sanskrit text while preserving accents, complex ligatures, and native character shapes. FastOCR reads printed text in this script and generates full-text searchable PDFs with selectable text overlays. For engineering teams building RAG pipelines, vector search databases, or automated document ingestion, FastOCR also provides a Sanskrit OCR REST API at api.fastocr.org with 20 free pages a month for every signed-in account. The API accepts PDF files up to 1 GiB, and PNG, JPG, JPEG, GIF, WebP and BMP images up to 20 MiB. An image counts as one page.

Devanagari script support

Accurate recognition of Sanskrit Devanagari characters, conjunct consonants, and ligatures.

Historical manuscripts

Processes scanned palm-leaf manuscripts, printed Vedic texts, and classical literature.

Vedic accent marks

Supports Svara diacritics used in Vedic recitation texts.

Searchable PDF output

Creates PDFs with invisible text layer for full-text Sanskrit search.

Translate after extraction

Extract Sanskrit text and translate to English or 100+ modern languages.

Why Sanskrit OCR Is Challenging

  • Recognizing complex Devanagari conjunct consonants (Samyuktaksara)
  • Distinguishing subtle Vedic accent marks (Udatta, Anudatta, Svarita) in traditional texts
  • Processing degraded paper or palm-leaf manuscripts with fading ink
  • Handling sandhi rules where words join without visible spaces

How to Extract Sanskrit Text from a PDF & Images

  1. Go to fastocr.org
  2. Upload your Sanskrit image or PDF. Language is detected automatically.
  3. Wait for processing — images take seconds, PDFs show a progress bar.
  4. Download results: searchable PDF, raw text file, or copy text directly.

Tips for Better Sanskrit OCR Accuracy

  1. Scan ancient manuscripts at 400+ DPI for optimal conjunct character separation
  2. Ensure high contrast between background and dark Devanagari text
  3. Straighten horizontal top lines (Shirorekha) to assist line segmentation

Common Use Cases for Sanskrit OCR

  • Digitizing classical Sanskrit manuscripts and Vedic literature
  • Extracting text from printed Ayurvedic treatises and philosophical commentaries
  • Converting academic Sanskrit research publications into searchable text
  • Archiving historical Indian library collections and epigraphic inscriptions

FastOCR vs Standard OCR Apps for Sanskrit

CapabilityFastOCR Dedicated Cloud AIStandard Online OCR Tools
Sanskrit Script Recognition✅ Full native cloud recognition for Sanskrit (complex alphabets and diacritics)Limited character sets or unhandled accents
Multi-Column & Table Layouts✅ Preserves proper paragraph and table alignmentMerges unrelated columns together
Searchable PDF Output✅ Dual-layer searchable PDF with coordinate-aligned text overlayPlain unformatted text dump only or unsupported
Instant Web Access✅ Zero software installation (runs in mobile & desktop browser)Requires local CLI libraries or complex desktop setup

Frequently Asked Questions

Does Sanskrit OCR support Vedic accents and conjunct characters?

Yes. FastOCR accurately recognizes Devanagari script including complex conjunct consonants (Samyuktaksara) and Vedic accents on clean scans.

Is Sanskrit OCR free to use?

Image OCR is free with no registration required. PDF processing requires a free account — see fastocr.org/pricing for plan details.

Upload Sanskrit text →

Free for images. No registration required.

Free Sanskrit OCR

Upload & Extract Text

Last updated: July 24, 2026