Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

PDF to Markdown

Convert any text-based PDF into clean Markdown with headings, lists, bold, italic, links and tables. Fast, free and private: your file never leaves your browser.

  • 100% free
  • No Signup
  • No upload
PDF
file.pdf
0 MB

Settings

Your Privacy Matters

Your PDF is converted inside your browser. It is never uploaded or stored, and no third-party API is used.

ADVERTISEMENT
Demo Ad 728 x 90

How to convert PDF to Markdown

  1. 1

    Upload

    Add your PDF by dragging it in or browsing your device.

  2. 2

    Choose settings

    Pick what to detect: headings, lists, links, tables and more.

  3. 3

    Copy or download

    Copy the Markdown or save it as a .md file.

PDF TO MARKDOWN GUIDE

PDF to Markdown Converter – Convert PDF to MD Online With Headings, Lists, Links and Tables, Free and Private

Looking for a free PDF to Markdown converter that keeps the structure of your document instead of dumping a wall of plain text? This online PDF to MD converter reads a text-based PDF and rebuilds it as clean, readable Markdown. It finds headings from font sizes and turns them into # headings, keeps bold and italic text, detects bullet lists and numbered lists with nesting, converts clickable PDF links into Markdown links, recognizes code in monospace fonts, removes repeated headers, footers and page numbers, joins words that were split across lines and can even turn aligned columns into Markdown tables. You can copy the result with one click, preview it as formatted text, or download it as a .md file for Obsidian, Notion, GitHub, Jekyll, Hugo, Docusaurus or any other Markdown tool.

Everything happens inside your browser. Your PDF is not uploaded to a server, it is not sent to any third-party API and no AI service is involved, so contracts, research papers, lecture notes, manuals and other private documents stay on your own device. There is no signup, no watermark, no daily limit and no software to install. It works on Windows, macOS, Linux, Android and iOS in any modern browser, which makes it a quick way to convert PDF to Markdown for documentation, note taking, blogging, knowledge bases and AI workflows.

Structured Markdown, Not Plain Text

Headings, lists, bold, italic, links, code blocks and tables are rebuilt from the layout and fonts of your PDF, so the Markdown is ready to edit and publish.

No Upload, No Third-Party API

The conversion runs locally in your browser with the open-source PDF.js engine. Nothing is sent to a server, and no AI or cloud conversion service is used.

Settings You Control

Turn each feature on or off, choose single or multi-column pages, select a page range, add page separators and YAML front matter, then convert again instantly.

How to Convert a PDF to Markdown Online

You can convert a PDF to a Markdown file in a few seconds. Follow these steps.

  1. Upload your PDF: Drag and drop a PDF into the upload area or click Select PDF file. The file stays on your device.
  2. Choose your settings: The defaults work well for most documents. Turn on table detection for documents with aligned columns, or add front matter if you publish with a static site generator.
  3. Press Convert to Markdown: A progress bar shows each page as it is read.
  4. Review the result: Switch between the Markdown source and the formatted preview to check headings, lists and links.
  5. Copy or download: Copy the Markdown to your clipboard or download it as a .md file.

After the first conversion you can change most settings and the Markdown updates immediately, without reading the PDF again.

What Is Markdown and Why Convert a PDF to Markdown?

Markdown is a lightweight plain-text format that uses simple symbols to describe structure: a # for a heading, asterisks for bold and italic, hyphens for bullet lists and square brackets for links. It is easy to read even without rendering, easy to write by hand and supported by thousands of tools. A PDF, on the other hand, is built for printing and fixed layout. Copying text out of a PDF usually loses the headings, breaks lists and adds line breaks in the middle of sentences. Converting a PDF to Markdown gives you editable, structured text that you can reuse anywhere.

  • Documentation and README files: Move manuals, guides and specifications into GitHub, GitLab, Docusaurus, MkDocs or a wiki.
  • Note taking and knowledge bases: Import articles, books and lecture slides into Obsidian, Logseq, Notion, Joplin or Bear.
  • Blogs and static sites: Publish PDF content with Jekyll, Hugo, Astro, Eleventy or Next.js using front matter.
  • AI, ChatGPT and RAG workflows: Markdown keeps headings and lists in a compact, token-friendly format that language models read well, so it is a good way to prepare PDF content for prompts, embeddings and retrieval systems.
  • Version control: Markdown is plain text, so changes can be compared line by line in Git, which is impossible with a binary PDF.
  • Accessibility and reuse: Structured text is easier to convert into HTML, EPUB, Word or screen reader friendly formats.

What the PDF to Markdown Converter Keeps

A PDF does not store headings, lists or paragraphs as such. It stores positioned pieces of text with fonts. The converter reconstructs the structure from that information.

In the PDFIn the MarkdownHow it is detected
Large title or section title# Heading, ## HeadingFont size compared with the body text
Bold and italic text**bold**, *italic*Font name and style
Bullet and numbered lists- item, 1. itemBullet characters, numbers and indentation
Clickable links[text](https://...)Link annotations in the PDF
Monospace textfenced code blockMonospace fonts
Aligned columns| a | b | tableConsistent column positions (experimental)
Wrapped linesOne paragraphLine spacing and sentence endings
Page headers, footers, numbersRemovedLines repeated on many pages

How Headings Are Detected From a PDF

The converter measures the font size of every line, finds the size most of the text uses and treats that as body text. Lines set noticeably larger than the body text are headings. The largest size becomes a level 1 heading, the next size level 2 and so on, up to level 5. Wrapped headings that span two lines are merged into one. A short, bold, stand-alone line at body size, such as a run-in section label, is turned into a smaller heading. Because the logic depends on font sizes, PDFs exported from Word, Google Docs, LaTeX, InDesign or web pages usually convert very well, while PDFs that use one font size for everything have no headings to detect.

Lists, Nested Lists, Code Blocks and Links

Lines that start with a bullet character (such as a round dot, a square, a dash or an arrow) become Markdown list items. Lines that start with a number and a period or bracket become numbered items and keep their original numbers. Indentation is measured to create nested lists, and a wrapped line that continues a list item is joined back to it. Text set in a monospace font, such as Courier or Consolas, is placed in a fenced code block and keeps its indentation, which is helpful for source code, commands and configuration files. If a PDF contains clickable links, they are converted to Markdown links with the original link text.

Converting PDF Tables to Markdown

Tables are the hardest part of any PDF conversion because a PDF stores a table only as text placed at positions, with no row or column structure. The experimental table option looks for several consecutive lines that split into the same number of columns and line up vertically. When it finds them, it creates a GitHub-flavored Markdown pipe table with the first row as the header. It works well for simple data tables. Tables with merged cells, multi-line cells or no clear alignment may need manual cleanup, which is why this option is off by default. Turn it on when your document has simple tabular data.

Headers, Footers, Page Numbers and Hyphenation

Documents often repeat a title, a date or a page number at the top or bottom of each page. These lines break up paragraphs and add noise to the Markdown. With Remove headers, footers and page numbers enabled, the converter finds lines in the top and bottom margins that repeat on many pages (ignoring page numbers) and removes them. It also joins words that were split with a hyphen at the end of a line, so "informa-" and "tion" become "information". If your document contains real hyphenated compounds at line ends, you can turn this option off.

Multi-Column PDFs and Reading Order

Scientific papers, newsletters and magazines often use two columns. Reading them line by line across the page would mix both columns together. In auto-detect mode, the converter looks for a vertical gap in the middle of the page and, when it finds one, reads the left column first and the right column second, while keeping full-width titles in the right place. If a page is detected as two columns by mistake, for example a table with two wide columns, choose Single column in the settings and convert again.

Page Separators, Page Ranges and Front Matter

You can add a horizontal rule or an HTML comment such as a page marker between pages, which is useful when you need to find the original page number later. Use the page range field to convert only part of a long PDF, for example 1-5, 8 or 10-12. For static site generators and knowledge bases, turn on front matter to add a YAML block with the document title, author, source file name and page count at the top of the file.

---
title: "Annual Report 2026"
author: "Example Ltd."
source: "annual-report.pdf"
pages: 24
---

# Annual Report 2026

## Highlights

- Revenue grew by 18%
- New offices in three countries

Scanned PDFs and Images of Text

This converter reads the text layer of a PDF. A scanned PDF is just a set of page pictures with no text layer, so there is nothing to read, and the tool will tell you that no selectable text was found. To convert a scanned document you first need OCR (optical character recognition). You can render the pages as pictures with our PDF to Image tool and extract the text with the Image to Text tool, then format it as Markdown. A quick way to check whether your PDF has a text layer is to try to select a sentence with your mouse in a PDF viewer.

Password-Protected PDFs

If a PDF needs a password to open, the converter asks for it. Enter the password in the field that appears and convert again. The password is used only inside your browser to open the file, and it is never sent anywhere. The tool cannot open a PDF without the correct password.

Markdown Flavors: CommonMark, GitHub, Obsidian, Notion and Pandoc

The output uses standard CommonMark syntax for headings, emphasis, lists, links, code blocks and horizontal rules, plus GitHub Flavored Markdown pipe tables when table detection is on. This is accepted by GitHub and GitLab, Obsidian, Logseq, Joplin, Typora, VS Code, Notion (import), Docusaurus, MkDocs, Hugo, Jekyll, Astro and Pandoc. Special characters such as asterisks, backticks and angle brackets in the original text are escaped so that they are shown as text and do not accidentally create formatting.

PDF to Markdown for ChatGPT, LLMs and RAG

Large language models handle Markdown very well. Headings show how a document is organized, lists show items and relationships, and the format uses far fewer tokens than the original layout. If you want to ask questions about a PDF, build a chatbot over your documents or create embeddings for a retrieval-augmented generation (RAG) pipeline, converting the PDF to Markdown first gives cleaner chunks that can be split along headings. Because this tool works locally, you can prepare confidential documents without sending them to a cloud service. Always review the output before you rely on it, especially for tables and technical content.

Tips for the Best PDF to Markdown Results

  • Use text-based PDFs: PDFs exported from Word, Google Docs, LaTeX, Pages or a browser convert best.
  • Check headings first: If headings are missing, the PDF may use one font size throughout. Add # marks manually in your editor.
  • Try both layout modes: If the reading order looks wrong, switch between Auto-detect columns and Single column.
  • Convert long files in parts: Use the page range for very long PDFs, then join the Markdown files.
  • Review tables and equations: Complex tables, math formulas and footnotes may need manual fixes.
  • Use the preview: The formatted preview makes it easy to spot problems before you copy.

Limitations: What a PDF to Markdown Converter Cannot Do

No PDF to Markdown converter is perfect, because PDF is a layout format and not a document format. This tool does not extract images, charts or drawings, it does not perform OCR on scanned pages, and it does not recreate mathematical formulas, footnotes or complex multi-level tables exactly. Reading order can be wrong on unusual layouts, and heading levels depend on the fonts used in the file. Treat the result as a strong first draft that saves you most of the typing, and check important documents against the original.

PDF to Markdown vs PDF to Word, Text and HTML

FormatBest forStructure kept
Markdown (.md)Docs, notes, blogs, Git, AI promptsHeadings, lists, links, tables, emphasis
Plain text (.txt)Quick copying and searchingNone
Word (.docx)Editing with page layout and stylesLayout, styles, images
HTMLPublishing on the webStructure and styling
Image (PNG/JPG)Sharing a page as a pictureAppearance only

How This Tool Works and Why It Is Private

The conversion uses PDF.js, an open-source JavaScript PDF engine from Mozilla that is also behind the built-in PDF viewer in Firefox. It runs inside your browser and reads the text, the fonts, the positions and the link information of each page. Our own code then groups the text into lines, finds columns, detects headings, lists, code and tables, and writes the Markdown. No file is sent to our server, and no cloud service, AI model or third-party API is called. Because the work is done on your device, speed depends on your computer and the size of the PDF. You can convert a PDF up to 50 MB and up to 500 pages in one run.

Who Uses a PDF to Markdown Converter?

Developers use it to move documentation into repositories. Students and researchers use it to bring papers and lecture notes into Obsidian or Notion. Writers and bloggers use it to turn PDF drafts into posts. Technical writers use it to migrate old manuals to Markdown-based documentation systems. Data and AI teams use it to prepare documents for language models. And anyone who simply wants editable text from a PDF can use it as a free PDF to MD converter.

Popular Searches This Tool Covers

People find the PDF to Markdown by searching for PDF to Markdown, convert PDF to MD, PDF to Markdown online, PDF to Markdown with tables, PDF to notes and PDF to GitHub README. All of these searches describe the same job, and this free online tool handles it with no signup, no watermark and no software to install, on Windows, Mac, Linux, Android and iPhone.

Troubleshooting: Common PDF to Markdown Problems

Most files work on the first try. If something does not look right, these quick fixes usually help.

  • Headings are missing: The PDF may use plain text sizes.
  • The file is rejected: Keep it under 50 MB and 500 pages.
  • Tables look broken: Complex tables need cleanup.

More Free PDF Tools You May Need

The PDF to Markdown is often one step in a bigger document workflow. These related free tools make the rest of the job easier:

Free PDF to Markdown Converter Online With No Signup

This PDF to Markdown converter is free, requires no account and works on desktop and mobile. Need more PDF tools? Use Split PDF to extract the pages you need before converting, Merge PDF to combine files, Compress PDF to reduce file size, and Word Counter or Text Summarizer to work with the resulting text.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About PDF to Markdown Conversion

Find answers to common questions about converting PDF to Markdown, privacy, tables, scanned PDFs and using the result in your favorite tools.

What is a PDF to Markdown converter?

A PDF to Markdown converter turns the content of a PDF file into Markdown, a simple text format with symbols for headings, lists, bold, italic, links and tables. The result is editable text that you can use in Obsidian, GitHub, Notion, static site generators and many other tools.

How do I convert a PDF to Markdown?

Upload your PDF, choose the settings you want and press Convert to Markdown. When it finishes, copy the Markdown or download it as a .md file. Text-based PDFs work best.

Is this PDF to Markdown converter free?

Yes. It is completely free, with no signup, no watermark and no daily limit.

Is my PDF uploaded to a server?

No. The PDF is read and converted inside your browser. It is not uploaded to our server and it is not stored.

Does it use any third-party API or AI service?

No. The conversion runs locally with the open-source PDF.js engine and our own formatting logic. No cloud conversion service, AI model or external API receives your document.

What does the converter keep from the PDF?

It keeps headings, paragraphs, bold and italic text, bullet and numbered lists with nesting, clickable links, monospace code and, if you enable it, simple tables. It removes repeated headers, footers and page numbers by default.

How does it detect headings?

It compares the font size of each line with the most common size in the document. Larger lines become headings, with the largest size as level 1. Short, stand-alone bold lines can also become smaller headings.

ADVERTISEMENT
Demo Ad 320 x 50