AI & Productivity

PDF to Markdown: Keep Headings, Nested Lists and Footnotes

Why headings, nested lists and footnotes break when you convert PDF to Markdown, how to check the output in two minutes, what PDF2MD rebuilds, and how to restore the rest.

Illustration of a PDF outline with headings, nested bullets and a footnote mapped onto a structured Markdown document

A good document has a shape: a title, chapters, sections, bulleted points with sub-points, and footnotes that back up the claims. Convert it from PDF to Markdown and that shape often collapses. Headings turn into ordinary sentences, nested lists flatten into one long run, and footnote numbers end up glued to random words. If you want PDF to Markdown that preserves headings, lists and footnotes, it helps to know why they break, how to check the output in a minute, and which parts a converter can reliably rebuild. This guide covers all three, including exactly what PDF2MD: PDF to Markdown keeps and what you'll still want to touch up.

Can PDF to Markdown Preserve Headings?

PDF to Markdown can preserve headings only when the converter can recognize them, because most PDFs don't label text as "heading level 2"; they just draw it bigger or bolder, so a converter has to infer structure from font information or from text patterns like numbering, and anything it can't infer becomes a plain paragraph.

Markdown structure is explicit. A heading is a line that starts with #, ## or ###. A bullet starts with -. A nested bullet is indented under its parent. A footnote is written as [^1] in the text with the note defined elsewhere. Every one of those markers has to be created by the converter, because the PDF almost never contains them.

Some PDFs do carry hidden structure. "Tagged" PDFs, often exported with accessibility in mind, can label headings and lists. Many don't, and even when tags exist, simple text extraction usually ignores them. So in practice, keeping formatting from PDF to Markdown is a reconstruction job.

What Breaks and Why

Heading levels

In the PDF, a chapter title might be 24pt bold and a section title 16pt bold. Converters that read font sizes can map those to # and ##, but they can still get it wrong when a document uses large text for pull quotes or small caps for headings. Converters that work from plain text have no size information, so they rely on clues such as numbering ("2.1 Methods") or ALL-CAPS lines. Headings with neither clue tend to be lost.

Nested lists

A bullet in a PDF is usually just a character, like •, followed by text drawn a little to the right. Nesting is shown purely by horizontal position. Once text is extracted line by line, that horizontal offset is often dropped or reduced to a few spaces, so the converter can't tell a sub-point from a main point. Sub-items labeled "a)", "i." or with a different bullet glyph add another layer of guesswork.

Footnotes

Footnotes are the hardest. The reference mark is a small raised number in the body text, and the note itself sits at the bottom of the page, physically far away. Extraction typically turns the raised number into an ordinary digit stuck to the end of a word ("results12"), and the note text into a paragraph at the page break, separated from the sentence it belongs to. Rebuilding proper Markdown footnotes means matching each number to its note, which requires knowing which digits are footnote marks and which are real numbers.

Bold, italics and links

Emphasis is a font change in the PDF, so plain text extraction loses it. Links may survive as visible URLs, or not at all if the link was attached to normal-looking text.

How to Check Your Markdown Output in Two Minutes

You don't need to proofread the whole file. Check structure in this order:

  1. Outline view. Open the .md file in an editor with an outline or document map (Obsidian, VS Code and many writing apps have one). Compare it to the PDF's table of contents. Missing or misleveled headings jump out immediately.
  2. Search for #. If there are only a handful of headings in a 40-page document, the converter didn't recognize most of them.
  3. Find one nested list. Pick a list in the PDF with sub-points and look at it in the output. Are sub-points indented under their parent, or all at the same level?
  4. Check a footnote. Find a sentence with a footnote mark in the PDF. Is the mark there, gone, or stuck to the word? Where did the note text end up?
  5. Render a preview. Markdown preview shows broken structure faster than raw text: a stray # or a list that renders as a paragraph is easy to spot.

What PDF2MD Preserves (and How)

PDF2MD: PDF to Markdown extracts the text on your phone with no uploads, using Apple's PDFKit on iPhone and the PDFBox library on Android. That extraction gives plain text without font sizes, so PDF2MD rebuilds structure from text patterns. Here is exactly what it recognizes.

Headings it recognizes

  • Numbered section headings, with the level set by the numbering depth: "1 Introduction" becomes #, "2.1 Methods" becomes ##, "2.1.3 Sampling" becomes ###, and deeper numbering is capped at ####. This works for short titles that start with a capital letter.
  • Chapter, Section, Part and Appendix lines followed by a number, like "Chapter 4" or "Section 2:", become ## headings.
  • Short ALL-CAPS lines that start a new block, such as "SUMMARY" or "KEY FINDINGS", become ### headings.
  • Lines that already start with # are kept as headings.
  • A table of contents is turned into a "Table of Contents" heading with a clean bulleted list, with dot leaders and page numbers removed.

Headings that are only bold or larger, with no numbering and not in capitals, stay as plain lines, because the size information isn't available to it.

Lists it recognizes

  • Bullets written with •, *, +, – or — become standard Markdown - bullets.
  • Numbered items written as "1." or "1)" become standard 1. items.
  • Simple tables whose columns are separated by tabs or wide spacing are formatted as Markdown tables.
  • Code and directory trees (lines indented four or more spaces, or using tree characters like ├──) keep their indentation and are not turned into bullets.

What it doesn't keep

  • List nesting. Converted bullets are placed at a single level, so sub-points usually end up alongside their parents. Sub-items labeled "a)" or "i." are left as plain text.
  • Footnotes as footnotes. PDF2MD does not create Markdown [^1] footnotes. Its cleanup is aimed at removing footnote clutter: footnote numbers stuck to the end of words are removed (with exceptions for terms like IPv4 or MP3), lone single-character markers are dropped, and lines that are only a URL or email address are stripped. The footnote text itself stays as plain text where the PDF engine placed it, usually near the page break.
  • URLs in the text. The same cleanup removes web addresses and email addresses throughout, which saves tokens but means you'll want the original PDF if you need the links.
  • Bold and italics, since the extracted text carries no font styling.
PDF2MD conversion result showing original and optimized size, cleanup stats and the Markdown output with Copy, Save .md and Share buttons
PDF2MD shows the cleaned Markdown with its cleanup stats, ready to copy, save as .md or share.
Private, on-device converter

PDF2MD: PDF to Markdown

Turn PDFs into Markdown with numbered headings, bullets and simple tables rebuilt, on your phone with no uploads. PDF2MD is a paid app ($4.99 on the US App Store at the time of writing).

Get PDF2MD on iOS & Android

How to Restore the Structure That's Missing

Fix heading levels

Use the PDF's table of contents as your map. Add # marks to any chapter titles that came through as plain lines, and adjust levels so chapters are # or ## and sections sit one level below. Keep one top-level heading for the document title if you plan to publish the file.

Rebuild nested lists

Indent sub-points under their parent by two or four spaces (be consistent) and make sure each starts with - or a number. Convert "a)" style sub-items to - bullets or to numbered items, since standard Markdown doesn't use letters for list markers.

Add footnotes back

If footnotes matter, for example in academic or legal text, check the PDF and add them in Markdown footnote syntax: put [^1] after the word in the text, then define the note on its own line as [^1]: The note text. Footnote syntax is supported by many Markdown tools, such as Obsidian and GitHub, though not every renderer. For a quick AI summary, you can often skip this: the note text is still in the file as plain text.

Let an AI help, carefully

For long documents, you can paste the Markdown into ChatGPT or Claude and ask: "Fix heading levels and list nesting in this Markdown. Do not change any wording." Then compare a few sections with the original. Models are good at structure but can quietly reword or drop sentences, so the "do not change any wording" instruction and a spot check both matter.

When Structure Matters (and When It Doesn't)

  • Pasting into an AI chat: headings help the model navigate long documents and answer "what does section 3 say?" questions. Perfect nesting and footnote syntax matter much less. Numbered headings and bullets are usually enough.
  • Notes in Obsidian or Notion: headings drive the outline and links, so fix those. Nested lists matter if you'll actually read the lists.
  • Publishing or documentation: everything matters, including footnotes and links. Plan for a proper edit pass after any conversion.

For PDFs where the problem is order rather than structure, such as text out of order, repeated headers and stray page numbers, see why your PDF comes out scrambled in Markdown. For the basics of converting and why it saves tokens, read how to convert PDF to Markdown.

Tips for Getting Better Structure From the Start

  • Export from the source if you can. If you have the original Word or Google Docs file, export it to Markdown or HTML directly; the structure is still in there.
  • Prefer numbered documents. Reports with numbered sections ("3.2 Results") convert into clean heading levels much more reliably than designed brochures.
  • Check for a text layer. Scanned PDFs have no text to structure. PDF2MD has no OCR and will tell you when no selectable text is found.
  • Convert one chapter at a time for huge documents you plan to edit, so fixes stay manageable.

PDF Headings, Lists and Footnotes FAQ

Why did my PDF headings become normal text in Markdown?

Most PDFs show headings only through font size and weight, which plain text extraction doesn't carry. Converters then rely on clues like numbering or capitals. Headings without those clues come through as ordinary lines.

How does PDF2MD decide heading levels?

From numbering depth: "1 Title" becomes a level 1 heading, "1.2 Title" level 2, "1.2.3 Title" level 3, capped at level 4. "Chapter 3"-style lines become level 2, and short ALL-CAPS lines become level 3.

Does PDF2MD keep nested lists?

It converts bullets and numbered items into standard Markdown lists, but places them at a single level, so nesting usually needs to be restored by indenting sub-points.

Does PDF2MD convert footnotes to Markdown footnotes?

No. It removes footnote clutter such as numbers stuck to words and URL-only lines, and leaves the footnote text as plain text. Add [^1] footnotes manually if you need them.

Is PDF2MD free?

No, it is a paid app. At the time of writing it costs $4.99 on the US App Store.

Structure Is Rebuilt, Not Copied

A PDF looks structured, but under the surface it's mostly positioned text. Every converter rebuilds headings, lists and footnotes from clues, so the honest goal is a solid first draft and a quick check: outline, one nested list, one footnote. Numbered headings and bullets come through well; nesting and footnotes usually need a few minutes of your attention.

If you want that first draft fast, private and on your phone, try PDF2MD: PDF to Markdown and spend your editing time where it counts.

All articles
PDF2MD: PDF to Markdown

Private PDF to Markdown

Get App