PDF to Markdown
Convert a PDF to clean Markdown — headings, lists, tables and links — ready for notes, docs or an AI chat, without uploading it.
Drop a PDF here, or
Your files never leave your device
Processed in this browser · one at a time
Converts a PDF into GitHub Flavored Markdown with its structure kept: headings come out as # headings, bulleted and numbered lists as lists, tables as pipe tables, bold and italic text and web links as they were. Use it to move a document into notes (Obsidian, Notion), a README or a wiki, or to paste a PDF into an AI chat as clean text that keeps its shape. The conversion runs in your browser and uses no AI: the structure is read from the PDF's fonts, positions and lines.
How to use it
Add a PDF; one with a password asks for it. It is read as soon as it opens, and a line says what was found, such as “12 pages · 9 headings · 3 tables”. Copy the Markdown, or download it.
- Pages: such as
1-3, 5; empty for every page. - Leave out headers and footers (on): lines at the top or bottom of the page that repeat on most pages, such as a running title or a page number, and a logo repeated in the same place, are left out. It needs three pages or more; with it off, a repeated logo appears once.
- Images: Leave out (the default) gives one
.mdfile of text. Separate files gives a ZIP ofdocument.mdand animagesfolder, each image linked where it sat, such asfor the first image on page 3; a document with no images is still one.mdfile. - Markdown · Preview: the Markdown itself, or as it renders. The preview shows the first 50 pages; the file has them all.
Scanned pages have no text to convert. The tool says how many there are and offers to read them with OCR, in the language you choose; what is read is then converted the same way, from the size and place of each line, without bold or italic. Hindi typed in the old Kruti Dev 010 or DevLys 010 fonts is converted to Unicode as it is read, where the PDF names the font.
How it works
Text is put in reading order first: columns are read one after the other, and a table's cells are found before that, so a table is not read across its columns as lines. The text size used for most characters is the body size. A paragraph of at most 3 lines and 200 characters set at 1.15 times the body size or more is a heading, its level by size: the largest is #, the next ##. A line on its own in bold at the body size is a heading one level below those. Where the PDF has bookmarks, a paragraph that matches one takes the bookmark's depth.
A paragraph starting with a bullet, or with a number or letter followed by a dot or bracket, is a list item, nested by how far in it starts. Tables are found three ways: from ruled lines that form a grid, from columns of text lined up over at least three rows, and from rows parted by lines with their columns lined up, as bank statements are drawn. Text set in a monospaced font becomes code. A paragraph whose lines all stop short of 70% of the column, such as an address, keeps its line breaks; other lines run together, and a sentence broken by a page break is joined again.
A tagged PDF, as word processors write when asked for an accessible PDF, says what each part is; the tool reads its headings, lists, tables and reading order from those tags instead. Text drawn more than 5° off level or upright, such as a watermark across the page, is left out. A chart or diagram drawn as lines and shapes is kept as a picture of itself, at 150 DPI (200 DPI when small).
Examples
A report page
A page with a title set larger than its text, a paragraph with a bold figure and a link, a numbered list and a ruled table of three columns, with the default options:
- Markdown
# Store review Sales rose **12%** this year. The [full figures](https://example.org/figures) are online. 1. Open two stores 2. Close one | Region | Stores | Growth | | ------ | ------ | ------ | | North | 40 | 9% | | South | 25 | 15% |
Text that looks like Markdown
Two paragraphs that are not a list and not emphasis. Only the characters that would otherwise turn into syntax get a backslash; the rest is written as it is:
- Markdown
1\. 2026 budget, as agreed \*Draft\* — C++, snake_case and 3 * 4 stay
Frequently asked questions
See also
- PDF to Text — for the text alone, in reading order, with no markup.
- PDF to Word — for a Word document to edit, with its fonts, colours and images.
- Markdown Editor — to edit the Markdown and see it rendered as you type.
- HTML to Markdown Converter — to turn a web page or HTML into Markdown.