Detect file types and extract text and metadata from over a thousand formats
open sourceApache-2.0free
Apache Tika is a Java content analysis toolkit from the Apache Software Foundation that detects and extracts metadata and text from over a thousand file types, such as PDF, PPT and XLS, through a single interface. Since 4.0 it emits Markdown by default, shaped for LLM and RAG pipelines, parses in crash-isolated forked processes, and adds vision-language-model parsers (Claude, Gemini, OpenAI) for documents OCR can't read. It's used as a Java library (tika-core and the parser packages on Maven Central), from the command line with tika-app, or as a server with tika-server, and the project ships agent skills (file-to-markdown) for using it from AI agents.
Ways to install
On your own server
Package managers
Problems it solves
- pull the text out of PDFs, Word files and spreadsheets in a Java app with one API
- turn uploaded documents of any format into Markdown for a RAG pipeline
- find out what type a file really is and read its metadata
Features
- text and metadata extraction from over a thousand file types through one interface
- Markdown output by default since 4.0, plus plain text and structured recursive JSON (-J, /rmeta)
- parsing in crash-isolated forked processes
- vision-language-model parsers (Claude, Gemini, OpenAI) for documents OCR can't read
- tika-app command-line tool and tika-server
- file-to-markdown agent skills for AI agents
Limitations
- Tika 4.x builds on Java 17, and the tika-app jar runs only from its unzipped directory with the adjacent lib folder.3
Alternatives
The same job
These do what Apache Tika does.
- MarkItDown Python tool for converting files and office documents to Markdown
- Docling Get your documents ready for gen AI
- Unstructured Converts PDFs, Office files, HTML and email into structured data for LLM pipelines
- LlamaParse Parse transforms messy documents into AI-ready data at scale
