DocSanitizer converts messy, bloated documents (PDF, DOCX, HTML, EPUB) into clean, token-optimized Markdown โ with on-device PII scrubbing, header/footer stripping, and real-time token analytics. All powered by a native Rust engine that never lets your data leave the device.
Free tier available ยท Web App now live ยท iOS & Android coming soon
Type sensitive data below. Watch emails, phones, cards, and extra whitespace disappear in real time โ 100% locally in your browser.
From PII redaction to token optimization โ all running locally on your device.
Instantly redact emails and phone numbers. Pro adds credit cards (Luhn-verified), SSNs, IPv4 addresses, and custom regex rules with live preview.
On-device tiktoken BPE counting for ChatGPT, Claude, and universal estimation. Collapse whitespace, repair line breaks, and strip soft hyphens to cut token size by up to 50%.
Process PDF, DOCX, EPUB, HTML, plain text, and images via hardware-accelerated on-device OCR. No uploads, no conversion servers.
Send documents straight from Files, Safari, Mail, or Chrome into DocSanitizer in one tap via the system share sheet.
Split long documents into context-sized parts on section boundaries with auto-generated <part_N_of_M> labels (Pro).
Encapsulate output in structured <context> prompt tags for better instruction adherence (Pro).
Your data never leaves your device at any point in the process.
Share a PDF, DOCX, EPUB, HTML, or image from any app โ or open a file directly.
PII is scrubbed, formatting is normalized, and tokens are counted โ all in RAM on your device.
Copy clean, token-optimized Markdown and paste it into ChatGPT, Claude, DeepSeek, or NotebookLM.
DocSanitizer was built around a single non-negotiable principle: your document data stays on your device. All parsing, regex scrubbing, PII redaction, and token optimization execute 100% locally in transient RAM using a high-performance native Rust engine. Zero network calls, zero tracking, zero cloud telemetry.
Start free. Upgrade when you need more power.
Forever
or $29.99 lifetime
๐ฑ Native iOS & Android apps are coming soon to the App Store & Google Play.