
Turn any document into clean, AI-ready Markdown. Local-first desktop app: reads scanned PDFs, batche
Turn any document into clean, AI-ready Markdown. Local-first desktop app: reads scanned PDFs, batche
For the easiest setup, download Full. Everything needed for document conversion and OCR is included in one download.
Getting a document into a shape an LLM can use is more annoying than it should be. You either dump the raw text and lose every heading, table, and list, or you ship your pages to a cloud vision model as images, which means your documents leave your machine and you pay by the page to read your own files. And scanned PDFs? Plain text extractors just hand you back nothing. The text is right there, and the tool acts like the page is blank.
MDFlux is what I wanted instead. Drop in a file or a folder and get back clean, structured Markdown, with OCR for those "blank" scanned pages, batch processing for a whole directory, and an optional cleanup pass to tidy up messy extraction. It runs entirely on your machine. It's built on Microsoft's MarkItDown, with everything around it that makes the engine actually usable day to day.
Every time a document gets read by an LLM, you pay for it in tokens. The common way to feed a document to a model is to send its pages as images to a vision model, and images are an expensive way to spend tokens. MDFlux hands the model clean Markdown instead, which is far cheaper to read and reuse.
Why clean Markdown costs fewer tokens than feeding documents to AI:
About 2 to 6 times fewer tokens than vision. For ordinary documents, MDFlux Markdown runs around 4 times lighter than sending the pages as images, and up to 5.7 times lighter on scanned pages. That saving lands on every single call that reads the document, so it compounds quickly across a pipeline or a large batch.
And it reads what other tools return empty. Point a plain extractor at a scanned, image-only PDF and you get zero usable text. MDFlux's OCR recovers it, and even then it stays lighter than the vision route:
| Scanned, image-only PDF | Usable tokens of text |
|---|---|
| Plain text extractor | 0 |
| Vision model (page as an image) | 10,731 |
| MDFlux (OCR to Markdown) | 1,893 |
That's the full text recovered in about 5.7 times fewer tokens than the vision model, which still has to OCR the image on its end anyway.
| Fewer tokens, lower cost | Clean Markdown costs about 2 to 6 times fewer tokens than sending pages to a vision model, so every LLM call that reads the document is cheaper. |
| Local and private | Your documents never leave your machine. No cloud, no API key, no account. |
| Reads scanned PDFs | Built-in OCR recovers text from scans that other tools treat as blank. |
| Real structure | Proper Markdown with headings, tables, and lists intact. Readable, greppable, diff-able. |
| ️ No terminal needed | Portable app. Unzip, run, click through a one-time setup. Done. |
| Many formats | PDF, DOCX, PPTX, XLSX, EPUB, HTML, CSV, JSON, XML, TXT, Markdown, images, and audio. |
| Batch a whole folder | Convert everything at once, with progress, cancellation, and per-file diagnostics. |
| Optional cleanup | Off, rule-based, or an AI pass (local or API). The Changes tab shows what cleanup added or removed. |
.txt and .md like any other file.If you already had OCR from 0.1.0, reinstall it from Diagnostics.
AI and RAG builders: feed clean, structured source documents to any model instead of raw text or pricey vision tokens
Researchers: batch-convert papers, reports, and scanned archives into searchable Markdown
Developers: get diff-able, version-controllable text out of binary document formats
Writers and analysts: pull clean copy out of PDFs and Office files without the formatting mess
Privacy-conscious users: convert sensitive contracts, records, and decks with nothing ever uploaded
1. Drop a file or folder → PDF, Office, EPUB, scans, audio, and more
2. Pick a cleanup mode → Off, rule-based, or AI (local or API)
3. Get clean Markdown → Preview, Source, Split, or Changes. Copy or save as .md.The first launch sets up a private, self-contained Python environment (one time, needs internet). Every conversion after that runs fully offline.
01 · Select. Grab a folder of mixed files: Word, PowerPoint, Excel, PDFs, scans, web pages, anything. No conversion settings to pick.
02 · Convert. One drop turns the whole batch into AI-ready Markdown, locally. OCR recovers text from scans that other tools read as empty.
03 · Stays healthy. Dependency health and diagnostics run on-device, so you can see exactly what's installed and working.
MDFlux is built on Microsoft's MarkItDown, which is a genuinely great conversion library. What MDFlux adds is everything around it: the OCR for scans, the desktop app, the batching, the reliability, and the privacy-by-default packaging that lets anyone run it against a folder of files without touching a command line.
| Microsoft MarkItDown | MDFlux | |
|---|---|---|
| Core conversion engine | yes | yes (uses MarkItDown) |
| Scanned / image-only PDFs | returns roughly 0 characters | built-in OCR recovers the text |
| Install and run | pip install plus a terminal |
portable app, no terminal |
| Dependency setup | manual (pip, ffmpeg, OCR extras) | sets itself up on first launch |
| Batch a whole folder | write your own script | built in, runs concurrently with progress |
| Timeouts and cancel | can hang with no feedback | every job streams progress and can be cancelled |
| Cleanup modes | raw output | Off, rule-based, or AI cleanup (local or API) |
| Preview and diagnostics | none | rendered preview plus a health panel |
| Audio transcription | plugin or Azure | local, built in |
| Privacy | local if you wire it up | local by default |
On already-clean files the output is close to identical, because under the hood it is MarkItDown. The point isn't to beat the engine. It's to make that engine genuinely usable.
MDFlux is one cross-platform product with two editions on each supported platform:
| Edition | Download size | Python setup | Best for |
|---|---|---|---|
| Lite | Smaller archive | One-time transactional provisioning (internet on first launch) | Most users; smaller download |
| Full | Larger archive | Immutable bundled runtime — no package installs at runtime | Offline / air-gapped use |
Supported platform identifiers: windows-x64 and linux-x64-glibc (x64 only). Speech model
weights are on demand in both editions.
Release status: v0.3.0 introduces verified Windows and Linux x64 Lite and Full archives. Windows v0.2.0 remains available under the legacy Lite-style name
MDFlux__portable.zip. Each v0.3.0 archive is verified before the release is published; see docs/cross-platform/README.md.
Full details: editions · platforms & support · releases & verification
Requirements: Windows 10 or 11 (x64) with WebView2 (ships with current Windows). Linux x64
(glibc, Ubuntu 22.04+) needs WebKitGTK 4.1 (libwebkit2gtk-4.1-0) — including Full edition
builds. macOS is on the roadmap.
1. Download and run. Get the portable archive from Releases. On Windows, extract the zip and double-click MDFlux.exe. No installer, no admin rights. Linux Lite/Full tarballs with frozen names are pending the cross-platform release — see setup guide for contributor builds.
SmartScreen warning? The build is open source and unsigned. Click "More info" then "Run anyway". You'll need the WebView2 runtime, already on current Windows 10/11.
2. First launch (one-time, internet required). MDFlux sets up a private, self-contained Python environment. This happens once. After that, it runs fully offline.
3. Convert. Drop a document onto the window, pick a cleanup mode, and click "Convert to AI-Ready Markdown". Preview it, then copy straight from the preview or save as .md. For a whole folder, you pick an output folder up front and every converted file lands there.
To verify your download, check the SHA-256 posted on the release page. After cross-platform integration, use the artifact verifier for Lite and Full archives.
| Documents | Office | Web and data | Other |
|---|---|---|---|
| PDF (including scanned, via OCR) | DOCX | HTML | Audio to transcript (MP3, WAV, M4A, OGG, FLAC, AAC) |
| EPUB | PPTX | CSV, JSON, XML | Images via OCR (PNG, JPG, GIF, WEBP, TIFF, BMP) |
| TXT, Markdown | XLSX, XLS | OCR on images embedded in documents |
"Windows protected your PC": That's SmartScreen reacting to an unsigned build. Click "More info" then "Run anyway". The build is open source; code signing is on the roadmap.
Linux says a WebKit library is missing: Install the runtime WebKitGTK package (on Ubuntu/Lubuntu 24.04: sudo apt install libwebkit2gtk-4.1-0 libgtk-3-0 xdg-utils). That is the Linux equivalent of WebView2.
The first launch is downloading for a while: That's the one-time setup of the local Python environment. It only happens once, and every launch after is instant and offline.
AI cleanup says the key was rejected (401): The key is valid for a provider, not for "any API". In Diagnostics, set Provider to match the key (DeepSeek, Groq, OpenRouter, …) then Test. A DeepSeek key sent to OpenAI will always 401. Unambiguous prefixes (sk-ant-, gsk_, sk-or-, AIza, xai-, pplx-) switch the provider automatically; OpenAI and DeepSeek both start with sk-, so those you pick y
No open issues yet, or sync has not completed.