--- id: textract version: "2.0.0" license: MIT license_treatment: permissive maintenance: active --- # textract — extract text from any document. no muss. no fuss. License: permissive · Maintenance: active · Downloads: 454.9K/mo ## What it is and what it does textract is a document text extraction library that abstracts away the complexity of handling multiple file formats. Instead of learning separate APIs for PDF, Word, PowerPoint, Excel, and image files, you call a single function and get text back. It wraps specialized libraries (pdfminer-six for PDFs, python-pptx for presentations, xlrd for spreadsheets, docx2txt for Word, pillow for images, and others) into one consistent interface. The package is designed for straightforward use: point it at a file, get text out. It handles format detection and delegates to the appropriate underlying tool. With 4690 GitHub stars and active maintenance, it serves as a practical utility for workflows that need to ingest text from mixed document sources without writing format-specific extraction code. Use it for: - Batch processing a folder of mixed document types (PDFs, Word docs, spreadsheets) to extract and index text. - Building a document search or archival system that needs to read text from files in multiple formats. - Automating data extraction from email attachments and embedded documents. - Preparing documents for NLP pipelines by converting various formats to plain text. - Creating a document ingestion layer for a content management or knowledge base system. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Extracts text from documents in multiple formats (PDF, Word, PowerPoint, Excel, images, email) with a single unified interface. Yes, if you need to extract text from multiple document formats and want to avoid learning separate APIs for each. The low install friction, active maintenance, MIT license, and unified interface make it a practical choice for document processing workflows. No known vulnerabilities as of 2026-08-14. ## Install pip install textract uv add textract poetry add textract ## Installing textract Before you install: Low friction install with 11 runtime dependencies. Active maintenance: last commit 2026-08-05, release 109 days ago. Supports current Python versions (requires >=3.9). License in practice: MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice. Quickstart: pip install textract import textract text = textract.process('document.pdf') print(text) Requires system libraries for some formats (e.g., pdfminer-six for PDF, python-pptx for PowerPoint); pillow for image text extraction. Verify before relying: - Whether OCR capabilities are included for scanned images or if text extraction is limited to searchable documents. - Performance characteristics with large documents or batch processing of many files. - Specific format support and any known limitations or edge cases per document type. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 454.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags extract text from pdf, document text extraction, convert documents to text, multi-format text extraction, pdf word excel text extraction, document parsing library, text from images and documents, document-extraction, multi-format, text-processing [View on SkillFed](https://skillfed.io/packages/textract) · [View on PyPI](https://pypi.org/project/textract/)