Home › PDF Tools › PDF to Markdown

PDF to Markdown

Turn a PDF into clean, editable Markdown. Headings are detected from font sizes, wrapped lines are joined into paragraphs, and bullet lists, numbered lists, tables, code, bold, italics and links are kept. Preview the result, tweak it, then copy or download the .md file.

Detect
Open a PDF to convert it to Markdown.
Advertisement
Advertisement

How to use the PDF to Markdown

  1. Open your PDF by dropping it into the box or clicking to choose it. The Markdown appears within seconds.
  2. Choose what to detect: headings, lists, tables, styles, code blocks and header/footer cleanup can each be switched on or off.
  3. Check the Preview tab to see the rendered result, and edit the Markdown text directly if something needs a touch-up.
  4. Limit pages if you only need a chapter, for example 12-20.
  5. Copy Markdown or Download .md to use it in GitHub, Obsidian, Notion, a static site or an AI chat.

How the PDF structure is rebuilt

A PDF stores positioned pieces of text and font information, not headings or paragraphs. The converter reconstructs the structure from the layout:

Markdown elementHow it is recognized in the PDF
# to ##### headingsFont size at least about 12% larger than the main body text; the largest size becomes #
ParagraphsConsecutive lines with the same font size and normal line spacing; a bigger gap, an indent after a finished sentence or a short last line starts a new paragraph
- bullet listsLines starting with •, ◦, ▪, –, * and similar markers; deeper indentation becomes a nested list
1. numbered listsLines starting with 1. 2) a. (iv) and similar
TablesTwo or more aligned lines that are split by wide gaps into the same columns
**bold**, *italic*The font name contains Bold, Black, Semibold, Italic or Oblique
`code` and code blocksMonospaced fonts such as Courier, Consolas or Menlo
[links](url)Link annotations that point to a web or email address

Tips for the best result

  • PDFs exported from Word, Google Docs, LaTeX or a website convert best because they have a clean text layer and real fonts.
  • Multi-column layouts are read in the order the PDF stores them, which is usually column by column. If columns come out interleaved, convert one page at a time and reorder.
  • Turn off Tables if ordinary text with wide spacing is being turned into a table, and turn off Headings for documents that use large fonts for decoration.
  • Need plain text without any Markdown symbols? Use PDF to Text. Need a web page? Use PDF to HTML.

Frequently asked questions

How do I convert a PDF to Markdown?

Open the PDF on this page. The converter reads the text and its layout with pdf.js and writes Markdown right away. Review it in the Preview tab, then press Copy Markdown or Download .md. It is free and works without an account.

How are headings detected?

The tool finds the font size used for most of the body text. Lines in a noticeably larger font become headings, with the largest size as # and smaller sizes as ## to #####. A short line that is entirely bold and stands on its own, such as a run-in section title, becomes the next heading level down.

Does it keep tables?

Yes. Rows whose text is separated by wide gaps and lines up with the rows around it are turned into a GitHub Flavored Markdown table. The first row becomes the header, and columns that hold mostly numbers are right-aligned. Very complex tables with merged or multi-line cells may need a quick manual fix.

Why is my converted Markdown empty?

The PDF probably contains scanned page images instead of real text. There is no text layer to read, so the pages must go through OCR (optical character recognition) first. You can check by trying to select text in a PDF viewer: if you cannot select it, it is an image.

Is Markdown from a PDF good for ChatGPT, Claude and other AI tools?

Yes. Markdown keeps the structure of a document (headings, lists, tables) in plain text with very little overhead, so language models read it more reliably than raw PDF text. Removing page numbers and running headers, which this tool does by default, also cuts noise.

Are images from the PDF included?

No. Markdown references images by URL, and pictures inside a PDF have no URL, so only the text structure is converted. Use an image extractor if you also need the pictures, then link them in the Markdown.

Is my file uploaded?

No. The PDF is processed by JavaScript inside your browser and the Markdown is created on your device. Nothing is sent to a server.

Related tools

PDF to HTMLConvert PDF to a clean, responsive HTML page or an exact positioned layout, in your browser.PDF to Text ConverterExtract the text from any PDF page by page, then copy it or save it as a TXT file.Markdown EditorWrite Markdown with a toolbar, live split preview, autosave and .md or HTML export.Markdown to PDF ConverterWrite or paste Markdown, preview it with a clean theme and export a polished PDF in seconds.Merge PDFCombine several PDF files into one document.Compress PDFReduce PDF file size while keeping it readable.JPG to PDFCombine JPG photos into one PDF with page size, margins and orientation options.PDF to WordConvert PDF files to editable Word documents.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (XLSX) or CSV, right in your browser.PDF to JPGTurn PDF pages into high-quality JPG images.PDF to PNGConvert PDF pages to PNG images with custom DPI and transparent background.Word to PDFConvert Word DOCX documents to PDF.Image to PDFConvert JPG, PNG, WEBP and more into a PDF.Split PDFExtract pages or split a PDF into separate files.Delete PDF PagesRemove pages from a PDF using a visual thumbnail grid.Rotate PDFRotate one page or all pages of a PDF by 90, 180 or 270 degrees.Add Page Numbers to PDFNumber PDF pages with your choice of position, format and font.Watermark PDFStamp a text or logo watermark on PDF pages with custom opacity.Invoice GeneratorCreate professional invoices and save them as PDF.Sign PDFDraw, type or upload a signature and place it on any PDF page, free and private.Fill PDF FormFill in PDF form fields online: text boxes, checkboxes, radio buttons and dropdowns.PDF Metadata EditorView and edit a PDF's title, author, subject, keywords and dates, or clear them all.Text to PDF ConverterTurn plain text or a .txt file into a clean PDF with your font, size, margins and page size.HTML to PDF ConverterPaste HTML and CSS, preview it as pages and download a PDF, safely in your browser.Excel to PDF ConverterConvert Excel and CSV sheets into tidy, paginated PDF tables with repeated headers.Flatten PDFFlatten PDF form fields and annotations into the page so they can no longer be edited.Grayscale PDFConvert a color PDF to grayscale or pure black and white for printing, right in your browser.PDF ViewerOpen and read PDF files in your browser with zoom, search, thumbnails and fullscreen.PDF Word CounterCount words, characters and lines in a PDF, page by page, with top words and CSV export.Organize PDFReorder, rotate, delete and duplicate PDF pages with drag-and-drop thumbnails.Crop PDFTrim PDF margins by dragging a crop box on the page, for all pages or selected ones.Resize PDFChange PDF page size to A4, Letter, Legal, A3 or custom and scale content to fit.Extract Images from PDFPull every embedded photo and graphic out of a PDF as PNG or JPG, or save pages as images.Redact PDFBlack out names, numbers and any text in a PDF for real: the hidden text is removed, not covered.PDF EditorAdd text, whiteout, shapes, images and drawings to any PDF page, then save a new PDF.Resume BuilderFill in a simple form, pick one of 3 clean templates and download your resume as a PDF.PDF to PowerPointTurn every PDF page into a PowerPoint slide (PPTX) in 16:9, 4:3 or the PDF's own size.Compare PDFCompare two PDF files and see added, removed and changed text side by side, page by page.Insert Pages into PDFInsert blank pages or pages from another PDF anywhere in your document, privately in your browser.PDF Page CounterCount the pages of many PDFs at once, with totals, page sizes and a CSV export.Add Header and Footer to PDFAdd header and footer text with page numbers, date and file name to every PDF page.Invert PDF ColorsTurn a PDF into dark mode: invert colors, keep hues or use a night sepia theme for easy reading.PDF N-UpPrint 2, 4, 6, 9 or 16 PDF pages per sheet with your own order, margins and borders.PDF Booklet MakerTurn a PDF into a print-ready folded booklet: pages imposed 2 per sheet in saddle-stitch order.PDF to Long ImageStitch all PDF pages into one tall PNG or JPG image, with gap, width and page range options.PNG to PDFConvert PNG images to one PDF, keeping transparency or filling it with white or any color.HEIC to PDFConvert iPhone HEIC photos into one PDF in your browser, with page size, margins and reordering.CSV to PDFTurn a CSV file into a clean, paginated PDF table with repeating headers.Add Stamp to PDFStamp APPROVED, PAID, DRAFT or custom text with a date onto any PDF page.Remove Blank Pages from PDFFind and delete empty or near-blank pages in a PDF automatically.