PDF to Markdown
Clean Text for AI and Docs
Drop a PDF and get tidy Markdown in seconds. Keeps headings, lists, tables, bold and italic, reads scanned pages with OCR, and adds optional front matter from the PDF's own details. The file is read in your browser and never uploaded. 100% client-side. Zero data stored.
PDF to Markdown Converter
Your PDF
Your PDF never leaves this browser. Nothing is uploaded.
Choose or drop a PDF to get started. Nothing leaves your browser.
- Pages
- 0
- Words
- 0
- Tokens (estimate)
- 0
- Headings
- 0
- Table rows
- 0
Tokens are an estimate: characters divided by four. A real model counts with its own tokenizer, so the true number differs. The Markdown starts and ends with one line saying it was converted with RJL.io, with a link to this tool.
What People Use It For
Give a report to an AI assistant
Paste a long PDF into a chat as Markdown. The model gets the headings and tables as structure instead of a wall of loose lines, and you see the token cost before you paste.
Prepare documents for search and RAG
Turn manuals, policies and papers into Markdown you can split by heading for a knowledge base, a vector index or a support bot, with the page markers kept for citations.
Move a PDF into a docs site or repo
Start a README, a wiki page or a static-site article from an old PDF instead of retyping it. Front matter with the title and author is ready for most site generators.
Get tables out of a PDF
Copy a price list, a spec sheet or a results table as a pipe table that renders on GitHub and pastes cleanly into a spreadsheet or a chat window.
Convert private files safely
Contracts, statements and internal reports stay on your computer. The converter runs in the browser tab, so nothing is sent to a conversion service.
Rescue text from scans
A scanned page has no text to copy. The tool spots those pages and reads them with OCR, then puts the text back in page order with the rest of the document.
What Converts, and How
| In the PDF | In the Markdown |
|---|---|
| Large or bold title lines | # to #### headings, picked from the font sizes used in the document |
| Bold and italic words | **bold** and *italic* |
| Bulleted and numbered lists | - and 1. items |
| Tables, ruled or lined up in columns | A GitHub-flavored pipe table with a header row |
| Monospaced code | A fenced code block |
| Paragraphs broken across lines, hyphenated words | Joined into whole paragraphs |
| Scanned pages (pictures of text) | Flagged, then read with OCR when you press the button |
| Pictures, charts and drawings | Left out, or marked with a placeholder if you turn that option on |
Columns and layout
A PDF stores where each word is drawn, not which column or paragraph it belongs to. The converter rebuilds the reading order from positions. It names the pages with columns and tables so you know where to check.
Front matter
A YAML block at the top with the PDF's title (or its file name), author, subject, keywords, created date, page count, the source file name and today's date. Site generators and notes apps read it as metadata.
Page markers
An HTML comment such as <!-- Page 12 --> before each page. It does not show when the Markdown is rendered, but it lets a search index or an AI answer cite the page a passage came from.
Compact output
Trims layout detail the reader rarely needs, to save tokens when the text is going to a model. Many documents come out the same either way; the difference shows on heavily formatted ones.
Password-protected PDFs
When a PDF needs a password to open, a password box appears. The password is used in your browser to read the file and is never sent or saved.
Nothing is uploaded
The converter is downloaded to your browser once and then runs there. Your PDF goes from your disk to the browser tab and nowhere else, and nothing is kept after you close the page.
Frequently Asked Questions
No. The converter downloads to your browser and reads the file there. The PDF, the Markdown and any password you type stay in the browser tab and are never uploaded, logged or saved.
Markdown keeps the structure a model needs, such as headings, lists and tables, in plain text it reads well. You can check what it will read, trim what it does not need, see a token estimate, and paste the text anywhere, including tools that do not accept file uploads.
Yes. A scanned page is a picture with no text in it, so the tool lists those pages and offers to read them with OCR. OCR also runs in your browser, reads up to 20 pages per run, and puts the text back in page order. Recognized text can contain mistakes, so proofread names and numbers.
Simple tables with clear rows and columns come out as clean pipe tables. A PDF does not store tables as tables, only text at positions, so tables with merged cells, cells that wrap onto several lines or no ruling lines may need a quick fix. The tool lists the pages where it found tables so you can compare them with the original.
Magazine and brochure layouts place text boxes side by side, and the PDF only records where each line sits. The converter works out the reading order from those positions, which is right for most pages, but a busy layout with text boxes that overlap or touch can still interleave lines. The tool names the pages with columns so you know where to look.
No. Markdown is text, so pictures, charts and drawings are left out. Text inside a chart that the PDF stores as real text, such as axis labels, may still appear. Turn on the picture option to leave a placeholder where each image was, so you know where to add one back.
Up to 100 MB. A 60-page, 49 MB report converts in about a second on a typical laptop, because the work happens on your own computer. The first conversion also downloads the converter, about 2.6 MB, which your browser then keeps. For very long documents, convert a page range.
Yes, if you know the password. When a file needs one, a password box appears; type it and press Convert. The password only opens the file in your browser and is never sent or stored.
It is a rough estimate: the number of characters divided by four, which fits ordinary English prose. Each model has its own tokenizer, and tables, numbers, code and other languages usually need more tokens per character, so treat it as a guide rather than an exact count.
Why We Built This PDF to Markdown Converter
PDFs are made for printing, not for reading by software. Copy text out of one and you get broken lines, headers and page numbers in the middle of sentences, and tables flattened into a list of loose words. That is a poor thing to hand to an AI assistant, a search index or a docs site. Markdown keeps what matters - headings, paragraphs, lists and tables - in a plain text file anything can read.
Most PDF to Markdown converters want you to upload the file to their server, which is the wrong trade for a contract, a bank statement or an internal report. This one runs in your browser: the converter downloads once, reads the PDF on your own computer, and sends nothing back. It is quick too, because there is no upload to wait for. Scanned pages, which have no text at all, are read with OCR in the browser as well.
The PDF to Markdown converter is part of RJL.io's collection of free developer tools. Read the result in the Markdown Viewer, turn a web page into Markdown with HTML to Markdown, pull plain text from photos and screenshots with Image to Text, or split a large file first with PDF Split.