PDF to Markdown
Convert a PDF into clean Markdown with headings detected from font size, plus bullet lists and paragraphs. Free and processed entirely in your browser.
What is the PDF to Markdown?
The ByteTools PDF-to-Markdown converter turns a PDF into structured Markdown you can paste straight into a README, a wiki, a static site or a notes app.
- Headings inferred from relative font size (H1–H3)
- Bullet characters converted to Markdown list items
- Paragraph breaks preserved from the page layout
- Optional --- horizontal rule between pages
- Copy to clipboard or download a .md file
- Runs fully offline in your browser — no upload
How to use the PDF to Markdown
- 1
Drop a PDF onto the upload area to start the conversion.
- 2
Leave heading detection on for reports, or switch it off for flat prose.
- 3
Tick the page-rule option if you want a --- divider between pages.
- 4
Review the Markdown preview, then copy it or download the .md file.
About the PDF to Markdown
The ByteTools PDF-to-Markdown converter turns a PDF into structured Markdown you can paste straight into a README, a wiki, a static site or a notes app. It measures the font size of every line, compares it with the document's body text, and promotes the noticeably larger lines to headings.
Everything is converted locally in your browser — your PDF is never uploaded. Specifications, meeting notes, whitepapers and internal documentation can be turned into Markdown without sending a single byte to a server.
Heading detection is a heuristic, not magic: it works beautifully on documents with a consistent type scale and less well on posters or heavily designed layouts. The output is meant as a strong first draft that saves you the retyping, not a pixel-perfect conversion.
Frequently asked questions
How does this tool know which lines are headings?
It measures the font size of every line, takes the median size as the document's body text, and treats lines that are noticeably larger as headings — roughly 1.6× for H1, 1.3× for H2 and 1.15× for H3. Very long lines are left as paragraphs even when they are large.
Can I convert a scanned PDF to Markdown?
No. Scans contain images of pages rather than text, so there is nothing to read font sizes from. Run the file through OCR first, save the searchable PDF it produces, and then convert that.
Are tables and images converted too?
No. Tables come through as their individual lines of text and images are skipped entirely, because a PDF stores no reliable structure to tell a table apart from a grid of positioned text. Expect to rebuild tables by hand.
Why should I convert PDF to Markdown instead of Word?
Markdown is plain text, so it works in version control, static site generators, documentation platforms and AI prompts without carrying binary formatting baggage. It is also far easier to diff and review than a .docx file.
Is my PDF uploaded during conversion?
No. The document is parsed and converted by JavaScript running on your own device. Nothing is transmitted, logged or stored, and the tool keeps working with your network disconnected.
Related tools
PDF to Text
Extract all the text from a PDF and copy it or save it as a .txt file. Layout-aware, free and processed entirely in your browser with no upload.
HTML Formatter
Format HTML online with clean, consistent indentation. This HTML formatter handles void elements and preserves pre, script and style exactly. Free and private.
Word Counter
Count words, characters, sentences, paragraphs and estimated reading time instantly. Free online word counter for essays, blogs and social media.
PDF Page Counter
Count the pages in a PDF instantly and see every page's dimensions in points and millimetres. Free, private page counter that runs in your browser.
PDF Metadata Viewer
View, read and check PDF metadata online — title, author, subject, keywords, creator, producer and dates — extracted privately in your browser.