Skip to main content

Farsi OCR — Image to Text & PDF

Free Persian & Farsi OCR Online — استخراج متن فارسی از تصاویر و PDF

Free · No registration for images · AI-powered

فایل خود را اینجا بکشید

PDF, PNG, JPG, WebP, BMP

What is Farsi OCR & Developer API?

Developer API & RAG Docs →

Farsi OCR is the automated process of converting scanned multi-page PDFs up to 1GB and documents into editable, searchable Farsi text while preserving right-to-left reading order, connected script, and diacritics. FastOCR reads printed text in this script and generates full-text searchable PDFs with selectable text overlays at near-instant speed. For engineering teams building RAG pipelines, vector search databases, or automated document ingestion, FastOCR also provides a high-speed Farsi OCR REST API at api.fastocr.org with 10 free pages a month for approved accounts. The API accepts PDF files only.

Persian script support

Full support for Farsi characters including پ, چ, ژ, گ.

Right-to-left layout

Native RTL text handling with correct character joining.

Connected cursive

Reads Persian cursive where letters change shape by position.

Mixed Farsi & English

Handles bidirectional documents with both scripts.

Searchable PDF output

Creates PDFs with invisible text layer preserving RTL layout.

Translate after extraction

Extract Farsi text then translate to English or any language.

چرا OCR فارسی چالش‌برانگیز است؟

  • Right-to-left script with bidirectional text when Persian is mixed with Latin characters or numbers
  • Supporting both Nastaliq (calligraphic, diagonal) and Naskh (horizontal baseline) Persian typefaces
  • Recognizing Persian-specific characters (پ, چ, ژ, گ) that extend the Arabic character set
  • Handling the Persian ی and ک which differ visually from their Arabic counterparts (ي, ك)
  • Processing documents with Persian numerals (۰-۹) alongside or instead of Western digits
  • Correctly interpreting Ezafe construction markers which are often omitted in print

چگونه متن فارسی را از PDF و تصاویر استخراج کنیم

  1. به fastocr.org
  2. تصویر یا PDF فارسی خود را آپلود کنید. زبان به طور خودکار شناسایی می‌شود.
  3. منتظر پردازش بمانید — تصاویر چند ثانیه زمان می‌برند، PDFها نوار پیشرفت را نشان می‌دهند.
  4. دانلود نتایج: PDF قابل جستجو، فایل متنی خام, یا کپی مستقیم متن.

نکاتی برای دقت بهتر OCR فارسی

  1. Use Naskh-style fonts for source documents — OCR accuracy is significantly higher than on Nastaliq
  2. Scan at 300 DPI minimum to preserve dots distinguishing Persian characters like پ, چ, ژ, گ
  3. Verify Persian-specific ی and ک are not replaced with Arabic ي and ك in the output
  4. For documents with Persian numerals (۰-۹), check that they are not converted to Arabic or Western digits
  5. Separate multi-column layouts and remove decorative borders before processing

موارد استفاده رایج OCR فارسی

  • Digitizing Farsi Islamic texts including Rumi, Hafez, and theological works
  • Extracting text from Farsi tafsir and seerah books
  • Archiving historical Farsi manuscripts and calligraphy
  • Digitizing Iranian legal documents, contracts, and court rulings
  • Extracting text from Persian academic publications and university theses
  • Processing Iranian government forms, identity documents, and official certificates
  • Converting scanned Persian literary works, poetry collections, and historical texts
  • Archiving Persian-language business records, invoices, and financial documents

FastOCR vs Standard OCR Apps for Farsi

CapabilityFastOCR Dedicated Cloud AIStandard Online OCR Tools
Farsi Script Recognition✅ Full native cloud recognition for Farsi (Nastaliq & Naskh cursive ligatures)❌ Most online tools do not support Urdu or Arabic at all
Right-to-Left (RTL) Layout Flow✅ Preserves proper bidirectional RTL reading order❌ Scrambles character order backwards (left-to-right)
Searchable PDF/A 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

سوالات متداول

Is there a free Farsi OCR tool?

Yes. FastOCR offers free Farsi OCR for images with no registration. PDF processing requires a free account — see fastocr.org/pricing for plan details.

Can I OCR a Farsi PDF and keep the original layout?

Yes. FastOCR creates a searchable PDF that preserves the original scan appearance with selectable, searchable Farsi text and correct RTL positioning.

Does Farsi OCR work on handwritten text?

Partially. Our advanced AI engine recognizes some handwritten Farsi, depending on clarity. Printed text is read more reliably.

Which works better for OCR: Nastaliq or Naskh?

Naskh works significantly better. Characters sit on a horizontal baseline making them easier to segment. Nastaliq is harder to read accurately.

آپلود متن فارسی ←

Free for images. No registration required.

Free Farsi OCR

Upload & Extract Text

Last updated: July 24, 2026