Pandoc Try It
Universal document converter (over 60 document formats)
- Category
- Converter
- License
- GPL
- Platforms
- Windows macOS Linux BSD Docker
- Released
- 2006
- Path
-
c:\pandoc\pandoc.exe - Benefits
- Pandoc can convert between the following formats: Markdown, ASCIIDoc, Textile, (X)HTML4, HTML5, EPUB, LaTeX, DOCX, ODT, CSV and more.
- Used by
- Gotenberg (A dockerized API converter)
Version
Latest known: 3.10 (2026-06-04)
Latest known: 3.10 (2026-06-04)
Examples
3. Convert markdown to PDF (requires a LaTeX distribution like MiKTeX or TeX Live to be installed)
pandoc.exe d:\input.md -o d:\output.pdf
Try it
- Convert Markdown to HTML5
Convert the shared sample.md to standalone HTML5. Pandoc emits a clean document fragment with semantic tags from CommonMark/Pandoc Markdown source. - Convert HTML to GitHub Flavored Markdown
Round-trip a small HTML document to GitHub Flavored Markdown so tables, fenced code, and task lists are preserved. Useful for moving CMS content into a docs repo.
Agree to terms to run demos.
Pandoc - Help
# Pandoc - Help
Source: https://pandoc.org/
```
pandoc.exe [OPTIONS] [FILES]
-f FORMAT, -r FORMAT --from=FORMAT, --read=FORMAT
-t FORMAT, -w FORMAT --to=FORMAT, --write=FORMAT
-o FILE --output=FILE
--data-dir=DIRECTORY
-M KEY[:VALUE] --metadata=KEY[:VALUE]
--metadata-file=FILE
-d FILE --defaults=FILE
--file-scope[=true|false]
--sandbox[=true|false]
-s[true|false] --standalone[=true|false]
--template=FILE
-V KEY[:VALUE] --variable=KEY[:VALUE]
--variable-json=KEY[:JSON]
--wrap=auto|none|preserve
--ascii[=true|false]
--toc[=true|false], --table-of-contents[=true|false]
--toc-depth=NUMBER
--lof[=true|false], --list-of-figures[=true|false]
--lot[=true|false], --list-of-tables[=true|false]
-N[true|false] --number-sections[=true|false]
--number-offset=NUMBERS
--top-level-division=section|chapter|part
--extract-media=PATH
--resource-path=SEARCHPATH
-H FILE --include-in-header=FILE
-B FILE --include-before-body=FILE
-A FILE --include-after-body=FILE
--no-highlight
--highlight-style=STYLE|FILE
--syntax-definition=FILE
--dpi=NUMBER
--eol=crlf|lf|native
--columns=NUMBER
-p[true|false] --preserve-tabs[=true|false]
--tab-stop=NUMBER
--pdf-engine=PROGRAM
--pdf-engine-opt=STRING
--reference-doc=FILE
--self-contained[=true|false]
--embed-resources[=true|false]
--link-images[=true|false]
--request-header=NAME:VALUE
--no-check-certificate[=true|false]
--abbreviations=FILE
--indented-code-classes=STRING
--default-image-extension=extension
-F PROGRAM --filter=PROGRAM
-L SCRIPTPATH --lua-filter=SCRIPTPATH
--shift-heading-level-by=NUMBER
--base-header-level=NUMBER
--track-changes=accept|reject|all
--strip-comments[=true|false]
--reference-links[=true|false]
--reference-location=block|section|document
--figure-caption-position=above|below
--table-caption-position=above|below
--markdown-headings=setext|atx
--list-tables[=true|false]
--listings[=true|false]
-i[true|false] --incremental[=true|false]
--slide-level=NUMBER
--section-divs[=true|false]
--html-q-tags[=true|false]
--email-obfuscation=none|javascript|references
--id-prefix=STRING
-T STRING --title-prefix=STRING
-c URL --css=URL
--epub-subdirectory=DIRNAME
--epub-cover-image=FILE
--epub-title-page[=true|false]
--epub-metadata=FILE
--epub-embed-font=FILE
--split-level=NUMBER
--chunk-template=PATHTEMPLATE
--epub-chapter-level=NUMBER
--ipynb-output=all|none|best
-C --citeproc
--bibliography=FILE
--csl=FILE
--citation-abbreviations=FILE
--natbib
--biblatex
--mathml
--webtex[=URL]
--mathjax[=URL]
--katex[=URL]
--gladtex
--trace[=true|false]
--dump-args[=true|false]
--ignore-args[=true|false]
--verbose
--quiet
--fail-if-warnings[=true|false]
--log=FILE
--bash-completion
--list-input-formats
--list-output-formats
--list-extensions[=FORMAT]
--list-highlight-languages
--list-highlight-styles
-D FORMAT --print-default-template=FORMAT
--print-default-data-file=FILE
--print-highlight-style=STYLE|FILE
-v --version
-h --help
```