Free tools / PDF to Markdown
PDF to Markdown
Choose a PDF and get clean Markdown: headings from the font sizes, paragraphs, lists and simple tables, with running headers and page numbers left out. The file is read on your own computer and never uploaded, so it is fine for contracts, reports and other documents you would rather not send to a converter site.
Is there personal data in what you are about to paste into an AI chat? Scrub it first, also in your browser.
How it works
Open the PDF
Choose a file or drop it on the box. pdf.js, the PDF reader of Firefox, reads the text on this page.
Check the Markdown
Headings, lists and tables are recognised from the layout. Edit anything in the box before you copy.
Copy or download
Paste it into ChatGPT, Claude, Obsidian or GitHub, or save it as a .md file.
Questions
Is my PDF uploaded?
No. The file is opened by JavaScript on this page and read on your own computer. Nothing is sent to us or anyone else, and there is no account. Once the page has loaded it keeps working without an internet connection.
Why convert a PDF to Markdown before giving it to an AI model?
Markdown keeps the structure (headings, lists, tables) as plain text, so a model can follow the document and you can see exactly what it gets. You can also cut the parts it does not need, which saves tokens, and check that no personal data goes along.
How are headings recognised?
From the font size. The size used for most of the text is taken as body text; lines in clearly larger sizes become headings, the largest size level 1, the next level 2 and level 3. Short lines in bold become bold text.
Does it handle tables?
Simple ones. When several lines in a row have text in the same number of columns with clear space between them, they become a Markdown table. Tables with merged cells or text that wraps inside a cell are not always recognised; check them and fix them in the box, or use the table converter on the cells.
Does it work on scanned PDFs?
No. A scan is a picture of a page without a text layer, and this tool reads text, not images. It tells you when that is the case. Run the scan through OCR first, for example in your scanner software, and open the result here.
What is left out?
Images, colours and page layout. Running headers, footers and page numbers that come back on most pages are removed too; tick the option to keep them.
More free tools
- Table converter: Any table in, Markdown, CSV, JSON or HTML out.
- Excel to Markdown: Copy cells in Excel or Sheets, get a Markdown table.
- CSV to Markdown: CSV with commas, semicolons or tabs to a Markdown table.
- Markdown table to Excel: Turn a table from an AI answer into spreadsheet cells.
- CSV to JSON: One JSON object per row, numbers as numbers.
- HTML table to Markdown: Table HTML or a copied web table to Markdown.
- Markdown to Word: Turn Markdown, such as an AI answer, into a real Word document with headings, lists and tables.
- Markdown to PDF: Turn Markdown into a clean PDF with headings, tables and code, through your browser's print to PDF.
- HTML to Markdown: HTML or a copied piece of a web page to clean Markdown.
- Word and Google Docs to Markdown: Paste formatted text, get Markdown with headings and lists.
- Scrub online: hide emails, phone numbers, IBANs and API keys in text before you paste it into an AI chat.
- IBAN checker: Check the country, length and check digits of one IBAN or a whole list.
- IBAN calculator: Work out the IBAN from a bank code and account number for Germany, France, Italy, Spain, Austria, Switzerland, the Netherlands and Belgium.
- VAT number checker: Check an EU VAT number against VIES, with the registered name and address, or the check digits of a UK VAT number.
- UK VAT number checker: Test the form and check digits of a UK VAT number (GB) and catch typing errors at once.
- BSN checker: Check a Dutch citizen service number with the 11 test.
- JWT decoder: Read the header, the payload and the expiry time of a JSON Web Token without sending it anywhere.
- Token counter: Estimate how many tokens, words and characters a text is, and how much of a context window it fills.
Do this on any page in one click
Copy for AI turns a selection or a whole web page into clean Markdown, without menus, ads or tracking links. Free, no account.