SumatraPDF supports the following document types (each format links to its description, specification and libraries on fileformats.dev):
- PDF (.pdf, .ai)
- eBook formats:
- unencrypted EPUB (.epub)
- MOBI / Kindle (.mobi, and unencrypted .azw, .azw3, .prc); Print Replica (.azw4) opens as the wrapped PDF
- FictionBook (.fb2, .fb2z, .fbz, .zfb2, .fb2.zip)
- Microsoft Reader (.lit) (ver 3.7+)
- Palm DOC (.pdb)
- plain text (.txt, .log, .nfo, .tcr, …)
- Markdown (.md, .markdown), rendered as GitHub Flavored Markdown
- Rich Text Format (.rtf), shown as a reflowable document; headers, footers and vector EMF / WMF pictures are not shown (ver 3.7+)
- comic book files: .cbz, .cbr, .cbt, .cb7 (and .ora), see Comics and manga
- archive files (.zip, .rar, .7z, .tar) containing images
- DjVu (.djvu, .djv)
- Microsoft Compiled HTML Help (.chm)
- XPS (.xps, .oxps, .xod, .dwfx)
- OFD (.ofd), the Chinese fixed-layout format (GB/T 33190), including packages of several documents and password-encrypted files; see OFD documents (ver 3.7+)
- SVG (.svg)
- images:
- PNG (.png)
- JPEG (.jpg, .jpeg, .jfif)
- GIF (.gif), including animations
- TIFF (.tif, .tiff), including multi-page
- BMP (.bmp, .dib)
- ICO (.ico), including multiple sizes
- TGA (.tga)
- WebP (.webp), also images inside EPUB, MOBI and HTML
- JPEG XR (.jxr, .hdp, .wdp)
- JPEG 2000 (.jp2, .j2k, .jpx, .jpf, .jpm, .j2c)
- AVIF (.avif)
- JPEG XL (.jxl)
- HEIF / HEIC (.heic, .heif), built-in decoder, see below
If Ghostscript is installed, we support PostScript (.ps, .eps) and PJL (Printer Job Language) files.
DVI (.dvi) opens when pdflatex, xelatex, or lualatex is installed, or when both dvips and Ghostscript are installed. SumatraPDF converts the file to PDF (with dvipdfmx from that TeX install, or with dvips and Ghostscript) and keeps the PDF in its data folder. The same PDF is reused until the DVI’s modification time changes. A cached PDF that has not been opened for a week is deleted.
CAJ, KDH and NH files from CNKI open on 64-bit Windows. The first one asks to download the caj2pdf converter, which is later updated automatically. Don’t ask again sets
NoCaj2pdfConverterDownload, and the files then open only if the converter is already downloaded. SumatraPDF converts the file to PDF and caches it in the Sumatra data folder. The cache is cleaned up when a converted file hasn’t been used for a week. Annotations can’t be added. Use Save As to keep the PDF.Preserve Markdown line breaks #
In the Markdown browser view, enable
MarkdownUI.PreserveLineBreaks in Settings → Advanced Settings… to display each source line on its own line. The default is false, which uses standard Markdown paragraph wrapping. Code blocks keep their formatting in either mode. This setting does not affect the fixed-page MuPDF view.When editing the settings file directly, reload the document after saving. For individual line breaks with standard Markdown, end a line with two spaces or a backslash; use a blank line to start a new paragraph.
HEIF / HEIC support #
SumatraPDF can open HEIF images (.heic, .heif) and AVIF (.avif) with a built-in decoder:
- HEIC (typical phone stills, HEVC-coded): decoded in-process, no Windows codec required for most files
- AVIF (AV1-coded): decoded in-process via dav1d
- Grids, overlays, and common transforms (crop / rotate / mirror) are handled for still images
If built-in decode fails, on Windows we still try the system WIC path (for example if a third-party HEIF codec is installed). The WIC fallback is optional for typical HEIC/AVIF files.
You can make SumatraPDF the default program for handling those file types.