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.
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.
Starting…
Your PDF is converted inside your browser. It is never uploaded or stored, and no third-party API is used.
Add your PDF by dragging it in or browsing your device.
Pick what to detect: headings, lists, links, tables and more.
Copy the Markdown or save it as a .md file.
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.
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.
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.
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.
You can convert a PDF to a Markdown file in a few seconds. Follow these steps.
After the first conversion you can change most settings and the Markdown updates immediately, without reading the PDF again.
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.
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 PDF | In the Markdown | How it is detected |
|---|---|---|
| Large title or section title | # Heading, ## Heading | Font size compared with the body text |
| Bold and italic text | **bold**, *italic* | Font name and style |
| Bullet and numbered lists | - item, 1. item | Bullet characters, numbers and indentation |
| Clickable links | [text](https://...) | Link annotations in the PDF |
| Monospace text | fenced code block | Monospace fonts |
| Aligned columns | | a | b | table | Consistent column positions (experimental) |
| Wrapped lines | One paragraph | Line spacing and sentence endings |
| Page headers, footers, numbers | Removed | Lines repeated on many pages |
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
| Format | Best for | Structure kept |
|---|---|---|
| Markdown (.md) | Docs, notes, blogs, Git, AI prompts | Headings, lists, links, tables, emphasis |
| Plain text (.txt) | Quick copying and searching | None |
| Word (.docx) | Editing with page layout and styles | Layout, styles, images |
| HTML | Publishing on the web | Structure and styling |
| Image (PNG/JPG) | Sharing a page as a picture | Appearance only |
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.
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.
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.
Most files work on the first try. If something does not look right, these quick fixes usually help.
The PDF to Markdown is often one step in a bigger document workflow. These related free tools make the rest of the job easier:
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.
Find answers to common questions about converting PDF to Markdown, privacy, tables, scanned PDFs and using the result in your favorite tools.
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.
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.
Yes. It is completely free, with no signup, no watermark and no daily limit.
No. The PDF is read and converted inside your browser. It is not uploaded to our server and it is not stored.
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.
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.
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.
Merge, split, compress, edit and convert PDF files with ease. Explore free PDF tools to manage all your documents in one place.
Explore All PDF Tools →