mdocFree · Open source

Use AI on client documents without sending client names.

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

mdoc reviewing a fictional letter before claim: people, companies, emails, a phone number, addresses and bank details are proposed for replacement, with one mention's alias open for editing. Dark theme.
Fictional letter. Captured in mdoc 0.1.0-beta.11.Scroll to explore

Features

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.

Reads scanned PDFs

Text recognition runs on your computer, in English or in English and Russian. About 40 pages a minute.

Replaces names with aliases

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.

Copy for AI

One click copies the text as Markdown, with a short note asking the AI to keep every alias as written.

Restores the reply

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.

Local and fast

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

Review the names. Keep the meaning.

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.

Questions lawyers ask

Can I download mdoc today?

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.

Does mdoc send my documents anywhere?

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.

How do the real names get back into the AI’s answer?

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).

How reliable is pseudonymization?

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.

Which documents can I open?

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.

Will the result match my original document?

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.

How well does it read scanned documents?

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.

Which computers does it run on?

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.

Is it really free?

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.

Where do I report a problem or suggest an improvement?

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.