# Pandoc

> a universal document converter

Source: https://talira.ai/catalog/pandoc-n4qdtj99
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library, Web app
- Categories: [documents / conversion](https://talira.ai/categories/documents/conversion), [documents / pdf / generation](https://talira.ai/categories/documents/pdf/generation), [research / academic writing](https://talira.ai/categories/research/academic-writing)
- Platforms: windows, macos, linux, docker, web, cli[^1][^9]
- Licence: GPL-2.0-or-later[^6]
- Pricing: Free and open source[^6]
- Pricing notes: GPL-2.0-or-later, with some included code under other licences listed in COPYRIGHT.
- Free tier: yes[^6]
- Self-hostable: yes[^1]
- API: yes[^7]
- Plugins: yes[^5][^8]
- Creator: John MacFarlane (jgm)

Pandoc is a Haskell library and command-line tool by John MacFarlane that converts between dozens of markup and word-processing formats, among them Markdown, HTML, LaTeX, Word .docx, ODT, EPUB, reStructuredText, AsciiDoc, Org, Jupyter notebooks and [Typst](https://talira.ai/catalog/typst-kghwt0kf.md). Readers parse each input into an abstract syntax tree and writers render it, so Lua filters can change a document in between, and its citeproc support formats citations and bibliographies in CSL styles. It makes PDFs through an external engine: a LaTeX engine by default, or ConTeXt, groff, Typst, or HTML engines such as [WeasyPrint](https://talira.ai/catalog/weasyprint-c7dnxd3b.md) and [Prince](https://talira.ai/catalog/prince-cbgkkxts.md). For Word input, `--track-changes=accept` (the default) applies tracked changes, `reject` drops them and `all` keeps insertions, deletions and comments as spans with `insertion` and `deletion` classes. It also runs as an HTTP server (pandoc-server) and in the browser as WebAssembly at pandoc.org/app.

## Links

- Website: https://pandoc.org
- GitHub: https://github.com/jgm/pandoc
- Docs: https://pandoc.org/MANUAL.html

## Ways to install

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/j/JohnMacFarlane/Pandoc>[^1]
- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/pandoc>[^2]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/pandoc>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/pandoc>[^4]

## Problems it solves

- convert a Markdown file to a Word document that uses my company's styles
- turn a Word document into clean Markdown for our docs site
- write my thesis in Markdown with citations and get a PDF formatted to the journal's style
- convert LaTeX to Word for a co-author who only uses Word
- build an EPUB ebook from a folder of Markdown chapters
- keep the tracked insertions and deletions from a Word file when converting it to another format
- only accept the changes one reviewer made in a .docx before converting it
- make a slide deck from Markdown as reveal.js, Beamer or PowerPoint
- batch convert hundreds of HTML pages into Markdown from a script
- rewrite headings or links across a document during conversion with a small script
- convert Jupyter notebooks to HTML, Word or PDF
- generate PDFs from Markdown in CI with Typst or LaTeX
- convert reStructuredText or AsciiDoc documentation to Markdown
- turn a CSV or Excel sheet into a Markdown or HTML table
- offer document conversion as an HTTP service inside our network
- convert documents in the browser without uploading them anywhere
- format a bibliography from BibTeX or CSL JSON in any output format

## Features

- converts between dozens of formats: Markdown flavours, HTML, LaTeX, docx, ODT, RTF, EPUB, reStructuredText, AsciiDoc, Org, Typst, Jupyter and more
- reads CSV, TSV and Excel xlsx as tables
- PDF output through LaTeX, ConTeXt, groff, Typst, WeasyPrint, Prince, pagedjs-cli or wkhtmltopdf
- --track-changes=accept|reject|all for Word tracked changes and comments
- Lua filters and JSON filters that transform the document tree
- custom readers and writers written in Lua
- citations and bibliographies with CSL styles from BibTeX, BibLaTeX, CSL JSON or YAML
- templates for standalone output and --reference-doc for docx, ODT and pptx styles
- slide shows: reveal.js, Beamer, PowerPoint and others
- pandoc-server: an HTTP server mode
- pandoc.wasm in the browser at pandoc.org/app
- Haskell library on Hackage

## Limitations

- Doesn't make PDFs by itself: it needs an external engine such as LaTeX, Typst, WeasyPrint or groff installed[^5]
- Doesn't keep formatting details such as margins when converting: it keeps structure, so conversions from richer formats like Word are lossy[^5]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.39 out of 1.
Signals: backing 0.20, extensibility 0.60.

- created by John MacFarlane (jgm)
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Typst](https://talira.ai/catalog/typst-kghwt0kf.md)
- Works with [WeasyPrint](https://talira.ai/catalog/weasyprint-c7dnxd3b.md)
- Works with [Prince](https://talira.ai/catalog/prince-cbgkkxts.md)

## Alternatives

- [Aspose.Words](https://talira.ai/catalog/aspose-words-4k0hy0ew.md): Create, edit, render and convert Word documents to multiple formats without using external software
- [LibreOffice](https://talira.ai/catalog/libreoffice-htqdk2xd.md): Free and private office suite, no forced AI

## Sources

[^1]: https://pandoc.org/installing.html (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^5]: https://pandoc.org/MANUAL.html (checked 20 Nov 2026)
[^6]: https://github.com/jgm/pandoc/blob/main/COPYRIGHT (checked 20 Nov 2026)
[^7]: https://pandoc.org/pandoc-server.html (checked 20 Nov 2026)
[^8]: https://pandoc.org/lua-filters.html (checked 20 Nov 2026)
[^9]: https://pandoc.org/app/ (checked 20 Nov 2026)
