Forum Discussion
Elenaans
Sep 01, 2026Tin Contributor
How can I convert a PDF to Markdown locally on Microsoft Windows?
Hello. I have several PDF documents stored locally on my Windows computer and need a reliable way to convert pdf to markdown while preserving headings, paragraphs, lists, tables, links, and basic f...
Theaoper
Sep 01, 2026Tin Contributor
unpdf is an excellent, completely free option to convert PDF to Markdown locally on Windows.
Here are the basic steps to get started with the high-performance command-line version (iyulab/unpdf):
- Download: Go to the project's GitHub Releases page and download the unpdf- cli-x86_64-pc-windows-msvc.zip file for Windows .
- Extract: Unzip the file to get the unpdf.exe executable.
- Run: Open a command prompt (CMD) in the folder containing unpdf. exe.
- Convert: The most basic command to convert PDF to Markdown is unpdf your_ document. pdf . This will create a folder alongside your PDF containing an extract. md file and any extracted images.
The Rust-based unpdf command-line tool offers several features that make it a solid choice:
- Output Options: It can output to Markdown, plain text, or JSON, and can also extract images embedded in the PDF .
- Structure Preservation: It intelligently detects and preserves headings, paragraphs, lists, and tables during conversion .
- Text Cleanup: It includes options for cleaning up the extracted text, which is useful for preparing text for use with AI models .
- Batch Processing: You can convert multiple PDFs at once by using a simple for loop in the command prompt, such as for %f in (*.pdf) do unpdf "%f" .
The search results point to two main projects called unpdf, both designed for Windows and both capable of performing a local PDF to Markdown conversion:
- The "Rust" Project : This is a command-line tool built in Rust, known for its high performance and comprehensive features for convert PDF to Markdown tasks .
- Features: It supports PDF 1.0-2.0, preserves structure (headings, tables, lists), extracts images, and includes CJK text support .
- How to Use: You can download a pre-built .exe file from its GitHub releases page, run it from the command prompt, and use a simple command like unpdf document. pdf to convert PDF to Markdown.