Supported Document Formats

This page lists the document formats from which the parsers shipped in Apache Tika 4.0.0 extract text and/or metadata. Follow the links to the parser javadocs for detail on how each format is handled.

Tika detects far more formats than it parses. A type missing here is still identified by content detection; it just has no parser, and tika-app or tika-server returns metadata only.

The families below are the parsers in the standard parser set: what tika-app, tika-server and the tika-parsers-standard-package artifact ship. Parsers that live in the tika-parsers-ml or tika-parsers-extended trees are marked as such. The full list at the bottom of the page is generated from the standard set on every build.

HyperText Markup Language

The HyperText Markup Language (HTML) is the lingua franca of the web. Tika uses the jsoup library to support virtually any kind of HTML found on the web. The output from JSoupParser is guaranteed to be well-formed XHTML, and various heuristics keep things like inline scripts out of the extracted text.

XML and derived formats

The Extensible Markup Language (XML) is a generic container for all kinds of content. Tika has custom parsers for some widely used XML vocabularies like XHTML, OOXML and ODF, but the default DcXMLParser simply extracts the text content and ignores the XML structure. The one exception is Dublin Core metadata elements, which become document metadata.

Microsoft Office document formats

Microsoft Office and some related applications produce documents in the generic OLE 2 Compound Document and Office Open XML (OOXML) formats. OLE 2 was the default from Office 97 until Office 2007 introduced OOXML. OfficeParser and OOXMLParser use the Apache POI libraries to extract text and metadata from both.

Old, pre-OLE2 Excel files (Excel 2, 3 and 4) are handled by OldExcelParser.

The older pure-XML office formats are handled by SpreadsheetMLParser, WordMLParser and Word2006MLParser.

OneNoteParser extracts text from OneNote notebooks, and MSOwnerFileParser pulls basic metadata from the temporary lock ("owner") files Office leaves beside open documents.

OpenDocument Format

The OpenDocument format (ODF) is the native format of LibreOffice and OpenOffice. OpenDocumentParser supports the packaged format and the earlier OpenOffice 1.0 format on which ODF is based; FlatOpenDocumentParser handles the single-file flat XML variants (.fodt, .fods, .fodp).

iWork document formats

The Apple iWork formats (Pages, Numbers, Keynote) are supported by IWorkPackageParser for the original package format. IWork13PackageParser and IWork18PackageParser identify the 2013 and 2018 generations and extract metadata, embedded resources and the preview image; the body text of these newer formats is not yet extracted.

WordPerfect document formats

The Corel WordPerfect Office formats are supported by WordPerfectParser (WordPerfect WP6 and later) and QuattroProParser (QuattroPro QPW v9 and later).

Portable Document Format

PDFParser parses PDF documents using the Apache PDFBox library. It can extract inline images, annotations, forms and incremental-update history, and can hand pages or images to OCR or a vision model. See PDF Parser for the options.

Electronic Publication Format

EpubParser supports the EPUB format used for many digital books. FictionBookParser supports the XML-based FictionBook (.fb2) publishing format.

Rich Text Format

RTFParser extracts text, metadata and embedded objects from Rich Text Format documents.

Compression and packaging formats

Tika uses the Commons Compress library to support most compression and packaging formats. CompressorParser handles the top-level compression formats (Gzip, BZip2, XZ, LZMA, Z, Brotli, LZ4, Snappy, …​), then PackageParser and its subclasses ZipParser and SevenZParser unpack the archive formats (Zip, 7Zip, Tar, AR, ARJ, CPIO, Dump, jar, …​) and pass each entry to a second parsing stage. See ZIP Detection and Salvaging for how damaged zips are handled.

RarParser supports the RAR archive format, which Commons Compress does not.

AppleSingleFileParser supports resources packaged in AppleSingle and AppleDouble files, and PListParser reads Apple property lists in both XML and binary form.

Text formats

Extracting text from plain-text files looks simple until character encodings enter the picture. TextAndCSVParser runs Tika’s encoding detectors (see Encoding Detectors) and recognizes CSV and TSV, emitting tables for those.

MarkdownParser parses Markdown into structured XHTML rather than treating it as plain text.

Feed and syndication formats

FeedParser supports the RSS and Atom feed formats. IptcAnpaParser supports the IPTC ANPA news wire format.

Web archive formats

WARCParser and WACZParser unpack WARC and WACZ web archives and parse each captured response; HttpParser handles a single raw HTTP response.

Help formats

ChmParser supports the CHM (compiled HTML help) format.

Audio formats

Tika extracts metadata from common audio formats, and text from those that carry lyrics or other textual content. Extracted metadata includes sampling rates, channels, format information, artists, titles and so on. AudioParser and MidiParser use the standard javax.sound features for simple formats. Mp3Parser adds MP3, and MP4Parser covers MP4 audio. The Ogg family (Vorbis, Speex, Opus, FLAC) is supported by VorbisParser, OpusParser, SpeexParser and FlacParser.

Speech-to-text is available through AmazonTranscribe in the tika-transcribe-aws module of tika-parsers-ml; it is not part of the standard set.

Image formats

ImageParser uses the standard javax.imageio feature to extract simple metadata from the image formats the Java platform supports, such as PNG, GIF and BMP. Richer metadata comes from JpegParser and TiffParser, which use the metadata-extractor library for Exif, IPTC and XMP. HeifParser (HEIF/HEIC), JXLParser (JPEG XL), WebPParser, PSDParser, BPGParser and ICNSParser extract metadata from their respective formats.

WMFParser and EMFParser extract text from Microsoft WMF and EMF drawings; EMFParser also exposes embedded resources.

Text inside images is not extracted by these parsers. See OCR and vision-language models.

Video formats

FLVParser supports the Flash video format with a simple parsing algorithm. MP4Parser covers the MP4 family (MP4, QuickTime, 3GPP, …​), extracting video metadata and any audio stream metadata. For the Ogg family, OggParser and TheoraParser extract a limited amount of metadata.

Frame extraction, transcoding and probing through ffmpeg are available via the External Parser when the tool is installed.

Java class files and archives

ClassParser extracts class names and method signatures from Java class files, and PackageParser supports jar archives.

Source code

SourceCodeParser handles a number of source code formats, including Java, C, C++ and Groovy, providing a formatted form of the code along with simple metadata.

Mail formats

MboxParser extracts messages from the mbox format used by many mail archives and Unix mailboxes. RFC822Parser processes single RFC 822 messages (.eml). OutlookPSTParser extracts messages from Microsoft Outlook PST stores, and OfficeParser handles single Outlook MSG files. TNEFParser extracts attachments from Microsoft TNEF (winmail.dat) wrappers.

CAD formats

DWGParser extracts metadata from AutoCAD DWG files, DGN8Parser from MicroStation DGN v8 files, and PRTParser from Cadkey PRT files.

Font formats

TrueTypeParser extracts simple metadata from TrueType fonts, and AdobeFontMetricParser does the same for Adobe Font Metrics files.

Publishing and localization formats

IDMLParser reads Adobe InDesign Markup (IDML) packages, and MIFParser reads Adobe FrameMaker Interchange Format. HwpV5Parser supports the Hangul Word Processor (HWP) v5 format.

For translation memory and localization interchange, XLIFF12Parser and XLZParser handle XLIFF 1.2 and its zipped form, and TMXParser handles Translation Memory eXchange.

Scientific formats

In the standard set, DIFParser extracts attribute metadata from the GCMD Directory Interchange Format and MatParser from MATLAB .mat files.

The tika-parser-scientific-package artifact in tika-parsers-extended adds GDALParser, GeographicInformationParser (ISO 19139), GribParser, HDFParser, ISArchiveParser (ISA-Tab) and NetCDFParser. These pull in large native and scientific dependencies and are not in tika-app.

Executable programs and libraries

ExecutableParser extracts platform, architecture and type metadata from a range of executable and library formats, such as Windows PE and Linux/BSD ELF binaries; UniversalExecutableParser unpacks macOS universal (fat) binaries.

Crypto formats

Pkcs7Parser parses the content of PKCS7 signed messages, without information from the outer PKCS7 wrapper. See Detectors for enabling finer CMS detection. TSDParser extracts metadata from Time Stamped Data envelopes and exposes the wrapped content.

Database formats

JackcessParser extracts metadata and tabular content from Microsoft Access databases. DBFParser supports dBase (.dbf) files before version 7, as used by dBase, FoxBASE, FoxPro and ESRI Shapefiles. SAS7BDATParser reads SAS .sas7bdat datasets.

SQLite3Parser extracts SQLite3 content in tabular form. It ships in the tika-parser-sqlite3-package artifact in tika-parsers-extended because of the native sqlite-jdbc dependency; it is not in tika-app.

OCR and vision-language models

None of the image parsers above read text out of pixels. Tika offers three ways to do that, all off by default and all documented under Configuration:

The PDF Parser page describes how these engines are attached to PDF pages and images.

Natural language processing

The tika-parser-nlp-package artifact in tika-parsers-ml wraps external NLP tools as parsers that enrich the output of other parsers: NamedEntityParser (named entity recognition via OpenNLP, Stanford CoreNLP, MITIE, NLTK or regex), JournalParser (journal article metadata via a Grobid server), CTAKESParser (clinical text via Apache cTAKES) and GeoParser (geographic entity resolution against a gazetteer). Each needs models, training data or a running service; see the parser javadocs.

Full list of supported formats in the standard parsers

Generated from the parsers on the tika-app classpath with tika-app --list-parser-details-adoc. Parsers that only advertise types once an external tool or service is configured (Tesseract, the VLM parsers, the External Parser) are not listed.

  • org.apache.tika.parser.apple. AppleSingleFileParser

    • application/applefile

  • org.apache.tika.parser.apple. PListParser

    • application/x-bplist

    • application/x-bplist-itunes

    • application/x-bplist-memgraph

    • application/x-bplist-webarchive

    • application/x-plist

  • org.apache.tika.parser.asm. ClassParser

    • application/java-vm

  • org.apache.tika.parser.audio. AudioParser

    • audio/basic

    • audio/vnd.wave

    • audio/x-aiff

    • audio/x-wav

  • org.apache.tika.parser.audio. MidiParser

    • application/x-midi

    • audio/midi

  • org.apache.tika.parser.code. SourceCodeParser

    • text/x-c++src

    • text/x-groovy

    • text/x-java-source

  • org.apache.tika.parser.crypto. Pkcs7Parser

    • application/pkcs7-mime

    • application/pkcs7-signature

  • org.apache.tika.parser.crypto. TSDParser

    • application/timestamped-data

  • org.apache.tika.parser.csv. TextAndCSVParser

    • text/csv

    • text/plain

    • text/tsv

  • org.apache.tika.parser.dbf. DBFParser

    • application/x-dbf

  • org.apache.tika.parser.dgn. DGN8Parser

    • image/vnd.dgn; version=8

  • org.apache.tika.parser.dif. DIFParser

    • application/dif+xml

  • org.apache.tika.parser.dwg. DWGParser

    • image/vnd.dwg

  • org.apache.tika.parser.epub. EpubParser

    • application/epub+zip

    • application/x-ibooks+zip

  • org.apache.tika.parser.executable. ExecutableParser

    • application/x-coredump

    • application/x-elf

    • application/x-executable

    • application/x-mach-o

    • application/x-mach-o-bundle

    • application/x-mach-o-core

    • application/x-mach-o-dsym

    • application/x-mach-o-dylib

    • application/x-mach-o-dylib-stub

    • application/x-mach-o-dylinker

    • application/x-mach-o-executable

    • application/x-mach-o-fvmlib

    • application/x-mach-o-kext-bundle

    • application/x-mach-o-object

    • application/x-mach-o-preload

    • application/x-msdownload

    • application/x-object

    • application/x-sharedlib

  • org.apache.tika.parser.executable. UniversalExecutableParser

    • application/x-mach-o-universal

  • org.apache.tika.parser.feed. FeedParser

    • application/atom+xml

    • application/rss+xml

  • org.apache.tika.parser.font. AdobeFontMetricParser

    • application/x-font-adobe-metric

  • org.apache.tika.parser.font. TrueTypeParser

    • application/x-font-ttf

  • org.apache.tika.parser.html. JSoupParser

    • application/vnd.wap.xhtml+xml

    • application/x-asp

    • application/xhtml+xml

    • text/html

  • org.apache.tika.parser.http. HttpParser

    • application/x-httpresponse

  • org.apache.tika.parser.hwp. HwpV5Parser

    • application/x-hwp-v5

  • org.apache.tika.parser.image. BPGParser

    • image/bpg

    • image/x-bpg

  • org.apache.tika.parser.image. HeifParser

    • image/heic

    • image/heic-sequence

    • image/heif

    • image/heif-sequence

  • org.apache.tika.parser.image. ICNSParser

    • image/icns

  • org.apache.tika.parser.image. ImageParser

    • image/bmp

    • image/gif

    • image/jp2

    • image/jpx

    • image/png

    • image/vnd.wap.wbmp

    • image/x-icon

    • image/x-jbig2

    • image/x-ms-bmp

    • image/x-portable-pixmap

    • image/x-xcf

  • org.apache.tika.parser.image. JXLParser

    • image/jxl

  • org.apache.tika.parser.image. JpegParser

    • image/jpeg

  • org.apache.tika.parser.image. PSDParser

    • image/vnd.adobe.photoshop

  • org.apache.tika.parser.image. TiffParser

    • image/tiff

  • org.apache.tika.parser.image. WebPParser

    • image/webp

  • org.apache.tika.parser.indesign. IDMLParser

    • application/vnd.adobe.indesign-idml-package

  • org.apache.tika.parser.iptc. IptcAnpaParser

    • text/vnd.iptc.anpa

  • org.apache.tika.parser.iwork. IWorkPackageParser

    • application/vnd.apple.iwork

    • application/vnd.apple.keynote

    • application/vnd.apple.numbers

    • application/vnd.apple.pages

  • org.apache.tika.parser.iwork.iwana. IWork13PackageParser

    • application/vnd.apple.keynote.13

    • application/vnd.apple.numbers.13

    • application/vnd.apple.pages.13

    • application/vnd.apple.unknown.13

  • org.apache.tika.parser.iwork.iwana. IWork18PackageParser

    • application/vnd.apple.keynote.18

    • application/vnd.apple.numbers.18

    • application/vnd.apple.pages.18

  • org.apache.tika.parser.mail. RFC822Parser

    • message/rfc822

  • org.apache.tika.parser.markdown. MarkdownParser

    • text/markdown

  • org.apache.tika.parser.mat. MatParser

    • application/x-matlab-data

  • org.apache.tika.parser.mbox. MboxParser

    • application/mbox

  • org.apache.tika.parser.microsoft. EMFParser

    • image/emf

  • org.apache.tika.parser.microsoft. JackcessParser

    • application/x-msaccess

  • org.apache.tika.parser.microsoft. MSOwnerFileParser

    • application/x-ms-owner

  • org.apache.tika.parser.microsoft. OfficeParser

    • application/msword

    • application/sldworks

    • application/vnd.ms-excel

    • application/vnd.ms-outlook

    • application/vnd.ms-powerpoint

    • application/vnd.ms-project

    • application/vnd.visio

    • application/x-mspublisher

    • application/x-tika-msoffice

    • application/x-tika-msoffice-embedded; format=ole10_native

    • application/x-tika-msworks-spreadsheet

    • application/x-tika-ole-drm-encrypted

    • application/x-tika-ooxml-protected

  • org.apache.tika.parser.microsoft. OldExcelParser

    • application/vnd.ms-excel.sheet.2

    • application/vnd.ms-excel.sheet.3

    • application/vnd.ms-excel.sheet.4

    • application/vnd.ms-excel.workspace.3

    • application/vnd.ms-excel.workspace.4

  • org.apache.tika.parser.microsoft. TNEFParser

    • application/ms-tnef

    • application/vnd.ms-tnef

    • application/x-tnef

  • org.apache.tika.parser.microsoft. WMFParser

    • image/wmf

  • org.apache.tika.parser.microsoft.activemime. ActiveMimeParser

    • application/x-activemime

  • org.apache.tika.parser.microsoft.chm. ChmParser

    • application/chm

    • application/vnd.ms-htmlhelp

    • application/x-chm

  • org.apache.tika.parser.microsoft.onenote. OneNoteParser

    • application/onenote; format=one

  • org.apache.tika.parser.microsoft.ooxml. OOXMLParser

    • application/vnd.ms-excel.addin.macroenabled.12

    • application/vnd.ms-excel.sheet.binary.macroenabled.12

    • application/vnd.ms-excel.sheet.macroenabled.12

    • application/vnd.ms-excel.template.macroenabled.12

    • application/vnd.ms-powerpoint.addin.macroenabled.12

    • application/vnd.ms-powerpoint.presentation.macroenabled.12

    • application/vnd.ms-powerpoint.slide.macroenabled.12

    • application/vnd.ms-powerpoint.slideshow.macroenabled.12

    • application/vnd.ms-powerpoint.template.macroenabled.12

    • application/vnd.ms-visio.drawing

    • application/vnd.ms-visio.drawing.macroenabled.12

    • application/vnd.ms-visio.stencil

    • application/vnd.ms-visio.stencil.macroenabled.12

    • application/vnd.ms-visio.template

    • application/vnd.ms-visio.template.macroenabled.12

    • application/vnd.ms-word.document.macroenabled.12

    • application/vnd.ms-word.template.macroenabled.12

    • application/vnd.ms-xpsdocument

    • application/vnd.openxmlformats-officedocument.presentationml.presentation

    • application/vnd.openxmlformats-officedocument.presentationml.slide

    • application/vnd.openxmlformats-officedocument.presentationml.slideshow

    • application/vnd.openxmlformats-officedocument.presentationml.template

    • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

    • application/vnd.openxmlformats-officedocument.spreadsheetml.template

    • application/vnd.openxmlformats-officedocument.wordprocessingml.document

    • application/vnd.openxmlformats-officedocument.wordprocessingml.template

    • model/vnd.dwfx+xps

  • org.apache.tika.parser.microsoft.ooxml.xwpf.ml2006. Word2006MLParser

    • application/vnd.ms-word2006ml

  • org.apache.tika.parser.microsoft.pst. OutlookPSTParser

    • application/vnd.ms-outlook-pst

  • org.apache.tika.parser.microsoft.pst. PSTMailItemParser

    • application/x-tika-pst-mail-item

  • org.apache.tika.parser.microsoft.rtf. RTFParser

    • application/rtf

  • org.apache.tika.parser.microsoft.xml. SpreadsheetMLParser

    • application/vnd.ms-spreadsheetml

  • org.apache.tika.parser.microsoft.xml. WordMLParser

    • application/vnd.ms-wordml

  • org.apache.tika.parser.mif. MIFParser

    • application/vnd.mif

    • application/x-maker

    • application/x-mif

  • org.apache.tika.parser.mp3. Mp3Parser

    • audio/mpeg

  • org.apache.tika.parser.mp4. MP4Parser

    • application/mp4

    • audio/mp4

    • video/3gpp

    • video/3gpp2

    • video/mp4

    • video/quicktime

    • video/x-m4v

  • org.apache.tika.parser.odf. FlatOpenDocumentParser

    • application/vnd.oasis.opendocument.flat.presentation

    • application/vnd.oasis.opendocument.flat.spreadsheet

    • application/vnd.oasis.opendocument.flat.text

    • application/vnd.oasis.opendocument.tika.flat.document

  • org.apache.tika.parser.odf. OpenDocumentParser

    • application/vnd.oasis.opendocument.chart

    • application/vnd.oasis.opendocument.chart-template

    • application/vnd.oasis.opendocument.formula

    • application/vnd.oasis.opendocument.formula-template

    • application/vnd.oasis.opendocument.graphics

    • application/vnd.oasis.opendocument.graphics-template

    • application/vnd.oasis.opendocument.image

    • application/vnd.oasis.opendocument.image-template

    • application/vnd.oasis.opendocument.presentation

    • application/vnd.oasis.opendocument.presentation-template

    • application/vnd.oasis.opendocument.spreadsheet

    • application/vnd.oasis.opendocument.spreadsheet-template

    • application/vnd.oasis.opendocument.text

    • application/vnd.oasis.opendocument.text-master

    • application/vnd.oasis.opendocument.text-template

    • application/vnd.oasis.opendocument.text-web

    • application/vnd.sun.xml.writer

    • application/x-vnd.oasis.opendocument.chart

    • application/x-vnd.oasis.opendocument.chart-template

    • application/x-vnd.oasis.opendocument.formula

    • application/x-vnd.oasis.opendocument.formula-template

    • application/x-vnd.oasis.opendocument.graphics

    • application/x-vnd.oasis.opendocument.graphics-template

    • application/x-vnd.oasis.opendocument.image

    • application/x-vnd.oasis.opendocument.image-template

    • application/x-vnd.oasis.opendocument.presentation

    • application/x-vnd.oasis.opendocument.presentation-template

    • application/x-vnd.oasis.opendocument.spreadsheet

    • application/x-vnd.oasis.opendocument.spreadsheet-template

    • application/x-vnd.oasis.opendocument.text

    • application/x-vnd.oasis.opendocument.text-master

    • application/x-vnd.oasis.opendocument.text-template

    • application/x-vnd.oasis.opendocument.text-web

  • org.apache.tika.parser.ogg. FlacParser

    • audio/x-flac

    • audio/x-oggflac

  • org.apache.tika.parser.ogg. OggParser

    • application/kate

    • application/ogg

    • audio/ogg

    • audio/x-oggpcm

    • video/daala

    • video/ogg

    • video/x-dirac

    • video/x-oggrgb

    • video/x-ogguvs

    • video/x-oggyuv

    • video/x-ogm

  • org.apache.tika.parser.ogg. OpusParser

    • audio/ogg; codecs=opus

    • audio/opus

  • org.apache.tika.parser.ogg. SpeexParser

    • audio/ogg; codecs=speex

    • audio/speex

  • org.apache.tika.parser.ogg. TheoraParser

    • video/theora

  • org.apache.tika.parser.ogg. VorbisParser

    • audio/vorbis

  • org.apache.tika.parser.pdf. PDFParser

    • application/pdf

  • org.apache.tika.parser.pkg. CompressorParser

    • application/deflate64

    • application/gzip

    • application/x-brotli

    • application/x-bzip

    • application/x-bzip2

    • application/x-compress

    • application/x-gzip

    • application/x-java-pack200

    • application/x-lz4

    • application/x-lzma

    • application/x-snappy

    • application/x-xz

    • application/zlib

  • org.apache.tika.parser.pkg. PackageParser

    • application/x-archive

    • application/x-arj

    • application/x-cpio

    • application/x-tar

    • application/x-tika-unix-dump

  • org.apache.tika.parser.pkg. RarParser

    • application/x-rar-compressed

  • org.apache.tika.parser.pkg. SevenZParser

    • application/x-7z-compressed

  • org.apache.tika.parser.pkg. ZipParser

    • application/java-archive

    • application/zip

  • org.apache.tika.parser.prt. PRTParser

    • application/x-prt

  • org.apache.tika.parser.sas. SAS7BDATParser

    • application/x-sas-data

  • org.apache.tika.parser.tmx. TMXParser

    • application/x-tmx

  • org.apache.tika.parser.video. FLVParser

    • video/x-flv

  • org.apache.tika.parser.wacz. WACZParser

    • application/x-wacz

  • org.apache.tika.parser.warc. WARCParser

    • application/arc+gz

    • application/warc

    • application/warc+gz

    • application/x-internet-archive

  • org.apache.tika.parser.wordperfect. QuattroProParser

    • application/x-quattro-pro; version=9

  • org.apache.tika.parser.wordperfect. WordPerfectParser

    • application/vnd.wordperfect; version=5.0

    • application/vnd.wordperfect; version=5.1

    • application/vnd.wordperfect; version=6.x

  • org.apache.tika.parser.xliff. XLIFF12Parser

    • application/x-xliff+xml

  • org.apache.tika.parser.xliff. XLZParser

    • application/x-xliff+zip

  • org.apache.tika.parser.xml. DcXMLParser

    • application/xml

    • image/svg+xml

  • org.apache.tika.parser.xml. FictionBookParser

    • application/x-fictionbook+xml