Opens what you have
PDF, Word, Excel, PowerPoint, OpenDocument, RTF, EPUB and CSV files become editable text, with PDF and Word originals beside it. Your file is never changed.
Open PDFs, scans and Word files, replace names and other identifying details with aliases, and paste the text into ChatGPT or Claude. When the answer comes back, mdoc puts the real names in. Nothing is uploaded.
Downloads available macOS (Apple silicon) and WindowsGPL-3.0-or-later










PDF, Word, Excel, PowerPoint, OpenDocument, RTF, EPUB and CSV files become editable text, with PDF and Word originals beside it. Your file is never changed.
Text recognition runs on your computer, in English or in English and Russian. About 40 pages a minute.
People, companies, emails, phone numbers, addresses and bank details get consistent aliases such as PERSON_1. You review every one and add what was missed.
One click copies the text as Markdown, with a short note asking the AI to keep every alias as written.
Paste the AI’s answer back and mdoc puts the real names in, in a new tab. Saved cases keep the mapping, encrypted on this computer.
No upload, no account. Works offline after a one-time model download. A 100-page PDF converts in 0.12 s.
Speeds measured on a fanless MacBook Air (M4, 24 GB) with synthetic text-heavy documents. Your results depend on your computer and documents.
See it work
Recorded in mdoc on a fictional letter before claim: find what identifies people, fix what detection missed, share only aliases, and bring the AI’s reply back with the real names.
Screen recordings of mdoc 0.1.0-beta.11, without sound. Detection can miss identifiers, so always review before you share.
Yes, for Macs with Apple silicon and Windows PCs. Get it from the download page. mdoc tells you when a newer version is out, and on a Mac it can download and install it for you.
No. Opening, reading, recognizing scans and pseudonymizing all happen on your computer. mdoc connects to the internet only when you approve the one-time download of its recognition and pseudonymization models, from GitHub and Hugging Face. After that it works offline. It also checks GitHub for a newer version when it starts, without sending any document data; you can turn that off in Settings. Text reaches an AI tool only when you copy it and paste it there yourself, and that tool’s own data terms then apply.
Copy the answer from ChatGPT or Claude and choose Paste AI reply in mdoc. It opens the answer in a new tab with every alias it knows replaced by the original wording, on your computer. Aliases it does not recognize are highlighted rather than guessed. To come back to a matter later, save it as a case: the mapping is stored encrypted on this computer, with its key protected by the operating system (the macOS keychain or Windows data protection).
It catches most names and identifiers, but not all of them. In our tests on synthetic English legal documents it found about 84% of identifying details; Russian text is detected less reliably. That is why mdoc only proposes replacements: you review each one, add anything it missed, and apply them before copying. Dates, amounts and other context are not replaced automatically and may still identify the parties. Pseudonymization helps you prepare a document; it does not guarantee that the result is anonymous.
PDF (including scanned PDFs), Word (DOC and DOCX), Excel (XLS and XLSX), PowerPoint (PPT and PPTX), OpenDocument (ODT, ODS and ODP), RTF, EPUB and CSV, as well as Markdown and plain text. The side-by-side view of the original is available for PDF and Word files. Your original file is never changed.
mdoc keeps the text and its structure, such as headings, lists and tables, rather than the page layout. Embedded images are not carried over, and complex tables or unusual Word features may need a quick correction. Keep the original in view and check the result before you rely on it.
Scanned PDF pages are recognized locally in English, or in English and Russian. Clean, printed scans work best. Handwriting is not supported, and recognition can misread characters, so check figures and names against the original. Recognition applies to PDFs; images inside Word files are not read.
mdoc is made for Macs with Apple silicon (M1 or later) and Windows PCs (x64). On Windows, the installer adds the Microsoft Visual C++ runtime that scanned-page recognition needs, if it is missing. Developers can build mdoc for Intel Macs, Windows on ARM and Linux; there it reads documents with built-in text, but scan recognition and automatic pseudonymization are not available.
Yes. mdoc is free and open-source software under the GPL-3.0-or-later license.
Its code, including the lawkitt/anydoc conversion library it uses,
is public on GitHub. There is no account and no subscription.
Use the mdoc issue tracker. Please describe your computer, the steps that led to the problem, and, if possible, a made-up example document rather than a real client file.