PDF to Markdown

A PDF to Markdown converter pulls the text out of a PDF and rewrites it as Markdown, a plain-text format with # headings, - bullet lists and blank lines between paragraphs. This one runs in your browser, so the file never leaves your device, and the result is ready to paste into ChatGPT, Claude or Gemini.

  • 100% free
  • No sign-up
  • Runs in your browser
  • Updated

No PDF handy? .

Key takeaways

  • Headings are found by font size: text 1.7 times the body size or larger becomes #, 1.35 times becomes ##, 1.12 times becomes ###.
  • Bullets and numbered lines become Markdown lists, and lines that wrap are joined back into whole paragraphs.
  • Page numbers and headers that repeat on at least half the pages (3 or more) can be removed with one tick.
  • Scanned PDFs hold pictures, not text, so they come out empty; they need OCR first.

How to use the PDF to Markdown

  1. 1Click the drop zone to choose a PDF, or drag one onto it. You can also press Try a sample PDF to see how it works.
  2. 2Wait a moment while the text is read. The page counter shows progress on long files.
  3. 3Tick or untick Remove repeated headers, footers and page numbers, and Add a divider line between pages. The Markdown updates straight away.
  4. 4Read through the result in the Markdown box, then press Copy Markdown to paste it into a chat, or Download .md to save the file.

What is Markdown and why convert a PDF to it?

Markdown is a plain-text writing format where a few symbols carry the structure: # marks a heading, - starts a bullet, and a blank line separates paragraphs. Any text editor can open it, and tools such as GitHub, Notion and Obsidian display it as formatted text.

It is also a good way to hand a document to an AI assistant. A PDF pasted straight into a chat often arrives with broken line breaks, stray page numbers and no sign of which lines are headings. Markdown keeps the outline in a few characters, so the model can tell a section title from a sentence. You also pay for fewer tokens than you would with the layout noise left in. To check the size of the result, paste it into the AI token counter.

How does the converter turn a PDF into Markdown?

The converter reads every piece of text on each page together with its position and font size, then rebuilds the structure from those clues. A PDF does not store headings or paragraphs. It stores characters at coordinates, so the tool has to infer the rest.

First it groups pieces that sit on the same baseline into lines. Then it finds the most common font size, which is the body text. Lines set in a clearly larger size become headings, lines that start with a bullet or a number become list items, and lines that sit close together are joined into one paragraph. A word split by a hyphen at the end of a line is stitched back together when the next line begins in lower case.

How are headings detected?

Headings are detected by comparing each line's font size with the body size: 1.7 times larger or more becomes a # heading, 1.35 times or more becomes ##, and 1.12 times or more becomes ###. Only short lines, up to 140 characters, can become headings, so a large pull quote does not.

This works well for reports, articles and notes made in Word, Google Docs or LaTeX. It works less well when a document marks headings only with bold text at the body size, because the tool compares sizes, not weight. If that happens, add the # marks by hand; the output is plain text, so this takes seconds. When the Markdown is ready, the ChatGPT to Word converter also turns any Markdown into a formatted Word document.

What does a PDF to Markdown converter not do?

It does not read scanned pages, because a scan is a photo of text and contains no characters to extract. If the tool finds almost no text, it tells you so. You need optical character recognition (OCR) to turn a scan into text, and OCR is a separate step. To read a scanned page, save it as an image and run it through the image to text converter.

It also leaves out images, charts and drawings, and it does not rebuild tables. Table cells arrive as lines of text in reading order, so check any table against the original. Bold and italic styling is dropped, and two-column layouts can interleave if the columns are very close together. Think of the output as a clean first draft, not a perfect copy. If the same document also exists as a web page, the HTML to Markdown converter keeps its tables and links intact.

Is it safe to convert a confidential PDF here?

Yes, because the file is read and converted on your own device. The page loads an open-source PDF reader (PDF.js from Mozilla) into your browser the first time you choose a file, and nothing is sent to a server. You can turn off your connection after the page has loaded and the conversion still works.

Password-protected PDFs cannot be opened. Remove the password in a PDF viewer first, or print the document to a new PDF. If a long file is too large to convert in one go, cut it into parts with Split PDF and convert each part.

Worked example

Example: converting a one-page set of meeting notes

The sample PDF has 11 pt body text, a 28 pt title and 18 pt section titles. The title is 2.55 times the body size, so it becomes # Meeting notes. The 18 pt titles are 1.64 times the body size, so they become ## Project overview, ## Action items and ## Next steps.

The two body lines under Project overview are joined into one paragraph. The three lines that start with a hyphen become a bullet list, and the two lines that start with 1. and 2. become a numbered list. The finished Markdown is 68 words, small enough to paste into any chat.

Try it yourself with the sample button above, then compare the result with your own file. If you want the same content as structured data instead of prose, the JSON to TOON converter is the next step.

How font size maps to Markdown headings (11 pt body text)

The converter compares each line with the body size. These are the results for common heading sizes in a document with 11 pt body text.

Font sizeRatio to bodyBecomes
11 pt1.00Normal paragraph
12 pt1.09Normal paragraph
13 pt1.18### (heading 3)
15 pt1.36## (heading 2)
18 pt1.64## (heading 2)
20 pt1.82# (heading 1)
24 pt2.18# (heading 1)
28 pt2.55# (heading 1)

The body size is the most common font size in your own file, so the same rules apply to a document with 10 pt or 12 pt text.

Frequently asked questions

How do I convert a PDF to Markdown for ChatGPT or Claude?

Choose your PDF in the box above, wait for the text to load, then press Copy Markdown and paste it into the chat. The headings, lists and paragraphs stay marked, so the assistant sees the structure of the document. For very long files, convert one chapter at a time to stay inside the model's context window.

Is this PDF to Markdown converter free and private?

Yes. It is free, needs no sign-up and adds no watermark. Your PDF is read by your own browser and is never uploaded, so it is suitable for contracts, reports and other private documents. The only thing downloaded is the PDF reader code, once, when you pick your first file.

Why is the Markdown empty or full of gaps?

The PDF is most likely a scan or a photo saved as PDF. Those files contain pictures of text, not real characters, so there is nothing to extract. Run the file through an OCR tool first, then convert the result. A PDF where you can select and copy words in a viewer will convert normally.

Does it keep tables, images and bold text?

No. Images and charts are skipped, table cells come out as separate lines of text, and bold and italic styling is dropped. Headings, bullet lists, numbered lists and paragraphs are kept. If a table matters, check it against the original PDF or copy it across by hand.

Can I convert a password-protected PDF to Markdown?

Not directly. The tool cannot open encrypted files and will say so. Open the PDF in a viewer with its password, then save or print it to a new PDF without protection. That copy converts normally. Only do this for documents you are allowed to open.

How big a PDF can I convert?

The limit is 100 MB, though the practical limit is your device's memory. A typical 50-page text report converts in a few seconds. If a very large file stalls on a phone, split it into smaller parts first and convert each part on its own.

Sources

Last reviewed by the ToolsFiesta team.

Related tools