Reduce LLM tokens by feeding it Markdown

Markdown, the language of LLMs.

Turn PDFs, Word and ODT files, scans and phone photos into clean Markdown. AI models get the same words and the same structure for a fraction of the tokens. Going the other way? Turn Markdown into a finished PDF.

  • Fewer tokens, same structure
  • Free, no sign-up
  • Files never stored
  • Scans read with OCR
Connecting

Drop a document, scan or photo here

PDF, DOCX, ODT, JPG, PNG, TIFF or WEBP, up to 20 MB. Scanned pages are read with OCR.

Reads PDFDOCXODTJPGPNGTIFFWEBP
Writes .md PDF

Same document, 93% fewer tokens

Web pages, Word files and PDFs carry tags, layout and page images that an AI model still has to pay for. Markdown keeps only the words and their structure: headings, lists and tables.

A three-page PDF report became 411 tokens of Markdown. Sent as a PDF, the same three pages are estimated at 4,500 to 9,000 tokens.

Why Markdown works
One report, five formats
Same document asTokens
Saved as a web page (HTML export) 1,913
Raw XML inside the Word file 1,808
Clean, minimal HTML 333
Dox2MD Markdown 137
Bare text, structure removed 111
Counted with OpenAI’s o200k_base tokenizer (used by GPT-4o). The sample is a one-page pilot study report with a title, headings, a numbered list, a bullet list and a table.

How it works

  1. Drop your file

    A PDF, Word or ODT document, or a photo of a page. Up to 20 MB.

  2. We read its structure

    Headings, lists and tables are found from font sizes, bold text and layout. Scanned pages go through OCR.

  3. Copy, download or print

    Edit the Markdown in place, download the .md file, or send it straight to the PDF tool.

See what your file becomes

The same page, before and after. Structure is kept, clutter is dropped, and the result is plain text that works in any editor, wiki, Git repository or AI chat.

Your document

Quarterly report

Sales grew in every region. Online orders doubled after the spring launch.

Highlights

  • New customers up 32%
  • Returns down to 4%
RegionGrowth
North18%
South11%
Markdown
1# Quarterly report
2
3Sales grew in every region. **Online orders** doubled
4after the spring launch.
5
6## Highlights
7
8- New customers up 32%
9- Returns down to 4%
10
11| Region | Growth |
12|---|---|
13| North  | 18%    |
14| South  | 11%    |

29 words, 2 headings, 2 list items, 1 table, 66 tokens

  • For AI tools. Markdown keeps the structure an AI model needs and uses far fewer tokens than web pages, Word files or PDFs. Each result shows its token count.
  • For docs and wikis. Paste straight into GitHub, Notion, Obsidian, Confluence or any static site.
  • For scanned paperwork. Old letters, printed reports and photos of notes become text you can search and edit.

Markdown to PDF, laid out for you

Give it a Markdown file and it works out what kind of document it is, shows you why, and lays it out with the matching template. Change the type if you disagree, then download the PDF.

  • Formal report

    Title page feel, numbered sections, tables

  • CV / resume

    Name and contact line, compact sections

  • Letter

    Date, greeting, body and sign-off

  • General document

    Clean pages for notes and everything else

Your files are not kept

Every file is processed in memory and the result goes straight back to your browser. Nothing is saved, shared or used for training.

Read the privacy policy
  • Processed in memory

    Uploads are not written to a database or kept on disk.

  • No account, no tracking

    No sign-up, no cookies, no analytics, nothing loaded from other servers.

  • Checked before reading

    Every upload is screened for files built to harm servers, then read in an isolated process.

  • Made in your browser

    Downloads and the preview are created on your own device.

Questions

The short answers. There is more on the FAQ page.

Why feed an AI model Markdown instead of a PDF or Word file?

AI models read everything as tokens, and you pay for every one, in money, speed and room in the model's memory. Web pages and Word files wrap the words in a lot of markup, and PDFs sent to AI tools go in as extracted text plus an image of every page. Markdown carries the same words and structure (headings, lists, tables) with very little extra.

How many tokens does it save?

It depends on the document. In our test, a one-page report saved as a web page was 1,913 tokens; as Markdown it was 137. Even clean HTML was 333. A three-page PDF became 411 tokens of Markdown, while sending a PDF is estimated at 1,500 to 3,000 tokens per page. The "Why Markdown" page explains how we measured.

Which files can I convert to Markdown?

PDF, Word (.docx), OpenDocument text (.odt) and images: JPG, PNG, TIFF, WEBP, BMP and GIF. HEIC photos from iPhones work when the server has HEIC support switched on.

Older Word files (.doc) are not supported. Open them in Word or LibreOffice and save as .docx first.

Do you keep my files?

No. Your file is processed in the server's memory, the result is sent back to your browser, and the file is gone. It is not saved to disk, put in a database or used for training. Downloads are created in your own browser.

Is it free? Do I need an account?

It is free to use and there is no sign-up. Open the page and drop a file.

Ready when your file is