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>
About Document Scanner
Last updated:
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
What the Document Scanner is good at - and what it isn't
What turns a photo of a document into something that looks scanned is one step: perspective correction. Edge detection finds the largest quadrilateral in the frame, and a homography maps those four corners onto a true rectangle - so a page shot at an angle comes out square, as if it had been laid on a flatbed.
After that, adaptive binarisation (Sauvola or Otsu) decides per-region what counts as ink and what counts as paper, which is what removes the shadow of your own hand from the page. Multi-page documents are assembled into a single PDF, in the browser, which is the right place for the contracts and ID documents people scan.
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?
Articles about Document Scanner
- Browser Scanner vs Mobile Apps: Comparison4 min
- Document Scanning Tips for Best Quality5 min
- Document Scanning Workflow for Small Business4 min
- Free Document Scanner - Scan Contracts Without Any App Seeing Your Files6 min
- Make Scanned PDF Searchable with OCR4 min
- Perspective Correction for Document Photos4 min
- How to Scan and Digitize Books3 min
- Scan Handwritten Notes to Digital Text4 min
- How to Scan ID Cards Safely Online4 min
- Scan Receipts for Taxes: Digital Organization4 min
- Scanner App Privacy Risks: What They Access3 min
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.