Convert a PDF to Markdown
Headings, lists and paragraphs as .md text.
- Files never leave your device
- Free, no sign-up
- No daily limit
Drop a PDF file here
or drag it here, or paste it.
Privacy: your files are opened and processed by your browser, on this device. They are never uploaded to YardMaths or anyone else, and they are gone when you close the tab.
How to convert a PDF to Markdown
- Choose a PDF or drop it on the box. One file at a time.
- Type the pages you want to convert, or leave the box empty to take the whole document.
- Switch on “Draw a line between pages” if you want a rule where each new page starts.
- Press Convert to Markdown. Your browser reads the text and works out headings, lists and tables on your device.
- Copy the result from the preview, or download it as a .md file.
Why this tool runs in your browser
People who turn PDFs into Markdown are usually moving notes, papers or documentation into a notes app, a wiki or a repository, and many of those PDFs are private. Doing the conversion in the page means the text of your document is never handed to a conversion service.
It is also quick to repeat. Because there is no upload, you can convert one page, check how it looks, adjust the page range and run it again in seconds.
How the Markdown is built
A PDF does not say “this is a heading” or “this is a list”. It only says where each piece of text sits and how big it is. The tool works backwards from that:
- Text that is clearly larger than the body text, and short, becomes a heading: # for the biggest, ## and ### for smaller ones.
- Lines that begin with a bullet, or a dash, become list items with a leading “- ”. Lines that begin with 1. or 2) become numbered items.
- Consecutive lines of a paragraph are joined, and a word split by a hyphen at the end of a line is mended.
- Rows of text that line up in the same number of columns become a Markdown table, with the first row as the header.
- Characters that Markdown treats as formatting, such as * and _, get a backslash so they stay visible as typed.
Check the result before you rely on it
This is a best guess from the shape of the page, so always skim the Markdown in the preview. Headings in the same size as body text will not be detected, and a page set in unusual columns can come out in a different order than you read it.
Limits to know before you start
- Only text stored in the PDF is converted. A scan or a photo of a page holds no text, and the tool will say that nothing was found.
- Bold, italics, links, footnotes, code blocks, fonts and colors are not carried over, and pictures are left out of the Markdown.
- Headings are guessed from the font size. A heading that is the same size as the text around it stays a normal paragraph.
- Tables are found only when the rows line up in the same number of columns. Tables with merged cells or wrapped cell text come out as plain lines.
- On pages with several columns, lines from neighboring columns can be mixed. Convert such pages one at a time and check them.
- Password-protected PDFs cannot be read until the password is removed. You need to know it; nothing here guesses passwords.
PDF to Markdown FAQ
How does PDF to Markdown decide what is a heading?
It looks at the size of the text on each line. The most common size in the document is treated as body text, and a short line that is clearly bigger becomes a heading, with larger sizes getting a higher level. If your headings use the same size as the body, they stay plain paragraphs.
Will tables, bold text and links survive the conversion to Markdown?
Simple tables whose rows line up are turned into Markdown tables. Bold, italics and links are not kept, because a PDF does not record them in a way that can be read reliably from the text alone. Pictures are left out.
Can I use the result in Obsidian, Notion or GitHub?
The output is plain CommonMark-style Markdown in a UTF-8 .md file, with no extra syntax, so notes apps and code hosts that read Markdown can open it. Expect to tidy a few lines by hand, as with any automatic conversion.
Why is my Markdown full of backslashes before * and _ characters?
They are escapes. In Markdown a lone asterisk or underscore can switch on italics or bold, so the tool puts a backslash in front when the original text used those characters. Markdown viewers hide the backslash and show the character as typed.
Does the PDF get uploaded to turn it into Markdown?
No. Your browser reads the PDF, finds the structure and writes the .md text on your own device. The file is not sent to YardMaths or anyone else.
Last updated . Free to use, no sign-up.