llm2doc

PDF to Markdown converter. The file stays with you.

Drop a PDF and get clean Markdown — headings, lists, tables, links and pictures — ready for ChatGPT, Claude or Obsidian, or to export again as Word. Read in your browser, free, no signup.

Checked

— or drop a PDF here · up to 60 MB · read in your browser, never uploaded

How do I convert a PDF to Markdown?

Drop the PDF on the box above, or choose it, and it is read here in your browser — the file is not uploaded. The converter rebuilds the document from the layout of each page: larger or bold lines become headings, wrapped lines join back into paragraphs, bullets and numbers become lists, text that lines up in columns becomes a table, a monospaced block becomes code, and the PDF's links and pictures come along. Pages set in two columns are read in order, and running heads and page numbers are left out. The Markdown opens in the editor beside a rendered preview, with a note on what came through, so you can compare it with the PDF and fix anything before you copy it or download a .md file. A scanned PDF has no text to read, and a formula comes through as its characters rather than as LaTeX.

Drop the PDF

Up to 60 MB and 500 pages. pdf.js reads it on your computer, page by page — a long report takes a few seconds, and nothing is sent anywhere.

Check the Markdown

The editor holds the Markdown and the preview renders it. A note says how many pages, tables and pictures came through: compare the headings and tables with the PDF.

Take it anywhere

Copy it into a ChatGPT or Claude prompt, download the .md file, or export the same document to Word, PDF, HTML, EPUB or LaTeX.

What actually happens to the PDF

A PDF does not store paragraphs or headings. It stores pieces of text placed on a page — each with a position, a font and a size — plus pictures and the areas that are links. The converter reads those pieces with pdf.js and puts the document back together from where they sit: pieces on one baseline make a line, lines one under another make a paragraph, a line set larger than the text or in bold before it is a heading, and text that keeps to the same column edges over several lines is a table. It looks for a gutter down the middle of the page to tell a two-column layout from one wide column, and it drops what repeats at the top and foot of every page. The result is ordinary Markdown in the editor: what the reader guessed is there for you to read, beside the preview, before anything is copied or downloaded.

What comes through, and what does not

In the PDFIn the Markdown
Headings# headings, by size. A short bold line before the text is a heading too; numbered ones (2.3 Methods) keep their depth.
ParagraphsOne paragraph, however many lines, columns or pages it ran over. A hyphen at a line's end is removed only when the PDF spells the word whole somewhere else.
Lists- items and 1. items, nested by indent — bullets written as text and bullets drawn as shapes alike.
TablesPipe tables, from cells that line up in columns. A table whose cells do not line up comes through as lines of text.
CodeFenced code blocks from a monospaced font, with the indentation kept.
Bold, italic, links**bold** and *italic* from the fonts; [links](…) from the PDF's own link areas.
PicturesCut out of the page as it is drawn and placed where they sit (up to 8 MB of pictures per document).
Two columnsRead left column, then right, with titles across the page where they fall.
Running heads, page numbersLeft out — the lines repeated at the top or foot of the pages.
FormulasAs the characters the PDF stores (x², ∑, √), not as LaTeX.
Scanned pagesNot read: a scan is a picture with no text in it, and there is no text recognition (OCR) here.
Forms, comments, bookmarksNot carried over.

Other ways to Markdown, and when they fit

RouteGood forWhat it takes
This pageA PDF with text in it that you want to read through, fix and use — in a prompt, a note, or exported again.Nothing to install or upload; an editor and a preview beside the Markdown; Word, PDF, HTML, EPUB and LaTeX from the same document. No OCR, formulas as characters.
Upload converters (CloudConvert, iLovePDF and others)A quick file-to-file conversion when uploading the PDF is fine.The file goes to their servers; you get a .md file back, without seeing it first.
MarkItDown (Microsoft's Python library)Developers converting many files in a script or a pipeline.Install Python and the library, then run it on each file.
Marker and other AI modelsScans, handwriting and formulas that need recognising.Model weights and a strong computer, or a paid service that runs them for you.

A PDF for ChatGPT, Claude or a search index

A language model reads a PDF best when it reads Markdown. Text pulled from a PDF by an app comes as one long run of lines, with the page numbers and running heads in it and the tables flattened into columns of words; the model has to guess where a heading ends and which number belongs to which column. Markdown says it outright: # for a heading, a pipe table for a table, a blank line between paragraphs. Paste it into a ChatGPT or Claude prompt, or split it at the headings for a retrieval index — each section keeps its title and its tables. For a long document, download the .md file and attach it rather than pasting, and keep the headings: they are what lets the model point back to a section.

Common questions

Is my PDF uploaded?

No. The PDF is opened in your browser by pdf.js, the reader Firefox uses, and the Markdown is built on your computer; the file never reaches our server. The same goes for the pictures, which are cut out of the page in the browser. If you then export to Word or PDF, the Markdown — not the PDF you dropped — is sent once to our converter, for Word's editable equations or to prepare a new PDF for typesetting; HTML and Markdown downloads never leave the browser.

Can it convert a scanned PDF?

Not one that is only pictures. A scan has no text in it, only images of pages, and turning those back into text needs text recognition (OCR), which this converter does not do; it says so instead of handing you an empty document. A scan that has already been through OCR — a searchable PDF, where you can select the words — works: its text comes through, and the page pictures it was drawn from are left out.

What happens to formulas and math?

They come through as the characters the PDF stores: letters, digits and symbols such as x², ∑ or √, in reading order. A PDF does not keep the LaTeX a formula was typed in, and rebuilding it from the layout is a job for a recognition model. If the formulas came from an AI assistant, copy the answer from the chat instead — its LaTeX is still there. If you have the paper's .tex source, the LaTeX to Word page reads it with every equation intact.

How good are the tables?

Tables whose cells line up in columns — almost every table a word processor or a browser draws — become Markdown pipe tables, header row first, a cell that wraps onto a second line joined back together. A table built from loose text with no common column edges, or with merged cells spanning several columns, may come through as lines of text instead. The note after the import counts the tables found, so you know what to check.

Can I turn the PDF into Word instead?

Yes. Once the PDF has opened as Markdown, choose Word and download: you get a .docx with real headings, lists and tables you can edit, rather than a page of text boxes. The same document exports to PDF again, HTML, EPUB, LaTeX or slides, so a PDF can be edited here and saved as whatever you need.

How large a PDF can it read?

Up to 60 MB, and the first 500 pages of a longer document, with a note saying how many pages were read. Pictures are kept up to 8 MB in total; any beyond that are counted in the note. A password-protected PDF has to be opened and saved without the password first.

Can I get plain text instead?

The .md file is plain text: open it in any text editor. Markdown only adds a few marks — # before a heading, * around bold, pipes in a table — that keep the structure readable without software. If you want the text with no marks at all, select it in the preview and copy it.