Creation
Document Scanner
Scan documents with edge detection, perspective correction, and multi-page PDF export - 100% private.
Your files stay on your device - processed locally via WebAssembly, never uploaded
Drop a photo of a document
JPEG, PNG, WebP, HEIC
Embed this tool on your website
Copy this code to add the Document Scanner to your site for free. It runs entirely in your visitors' browsers - no API key, no usage limits.
<iframe src="https://optipix.art/embed/document-scanner" width="100%" height="600" style="border:1px solid #e4e4e7;border-radius:8px;" title="Document Scanner by OptiPix" loading="lazy"></iframe> <p style="font-size:12px">Free tool by <a href="https://optipix.art/document-scanner">OptiPix Document Scanner</a></p>
❤️ Love this tool? Support our team.
No ads, no tracking, no limits. Tips keep 104 tools free for everyone.
Secure payment via Stripe · No account needed
About Document Scanner
Last updated: June 2026
OptiPix Document Scanner turns your laptop or phone camera into a private document scanner. Capture or upload a photo of a document, ID, receipt, or whiteboard - auto-detect the four corners, correct perspective with a real homography transform, then enhance with adaptive binarization (B&W scan), grayscale, color, or high-contrast modes. Add multiple pages and download as a single multi-page PDF, individual PNG/JPEG files, or a ZIP. The output is a perfectly straight, rectangular document image - exactly like CamScanner or Adobe Scan, but everything runs in your browser. No camera-roll permissions, no app, no upload. Manually drag the four corners if auto-detection isn't perfect. Perfect for scanning contracts, IDs, receipts, handwritten notes, and book pages - privately.
How It Works
Edge detection finds dominant lines and the largest quadrilateral contour. The four corners feed a 3×3 homography (DLT) that maps the source quad to a true rectangle. Adaptive binarization (Sauvola/Otsu) produces clean B&W scans. Multi-page PDFs are assembled with pdf-lib.
Use Cases
- •Scan a contract on the kitchen table without uploading it
- •Digitize receipts for expense tracking
- •Scan a handwritten notebook page to PDF
- •Capture an ID card without granting CamScanner access to your camera roll
- •Photograph a whiteboard and turn it into a clean rectangular scan
You Might Also Like
If you find Document Scanner useful, check out these related tools: OCR Text Extractor, Image to PDF, and EXIF Remover. All tools run entirely in your browser with no uploads or signups required.
Explore more: Browse all tools · Step-by-step guides · Tips & tutorials · Compare tools
Frequently Asked Questions
How does this compare to CamScanner?
Can I scan multiple pages into one PDF?
Will this work on my phone?
What's the difference between B&W, Grayscale, and Color modes?
What if the auto edge detection misses a corner?
Related Tools
OCR Text Extractor
Extract text from any image in multiple languages.
Image to PDF
Convert one or multiple images into a PDF document.
EXIF Remover
Strip GPS, camera data, and metadata from photos.
Passport Photo Maker
Make compliant passport, visa, and ID photos for 30+ countries - with face detection and white background.