Command-line tool
pdftohtml
brew/pdftohtml
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Utility which converts PDF files into HTML and XML formats
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install pdftohtml
Linux
brew install pdftohtml
Convert a PDF file to an HTML file
pdftohtml path/to/file.pdf path/to/output_file.html
Ignore images in the PDF file
pdftohtml -i path/to/file.pdf path/to/output_file.html
Generate a single HTML file that includes all PDF pages
pdftohtml -s path/to/file.pdf path/to/output_file.html
Browse
Related command-line tools
- xpdf-tools
Several command-line utilities to read and extract data from PDF files - asciidoctor
Text processor and publishing toolchain for AsciiDoc - xpdf
PDF viewer - unrtf
RTF to other formats converter - xmlto
Convert XML to another format (based on XSL or other tools) - dbn-cli
Command-line utility for converting Databento Binary Encoding (DBN) files to text-based formats - pandoc
Swiss-army knife of markup format conversion markdown docs document 转换 converter doc 转换器 pandoc 格式转换 document-converter - cmark
Strongly specified, highly compatible implementation of Markdown
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents