IMAGE FLAGSHIP
Document Scanner
Choose a document photo
Click to browse or drag and drop · Max 25 MB
Improves rotation, grayscale and contrast; it does not perform four-corner perspective correction.
At a glance
Document Scanner — Clean a photographed document into a sharper, easier-to-read scan image.
Free for the core workflow, no account required. Image decoding and processing are performed in the browser from the file you select.
About Document Scanner
Clean a photographed document into a sharper, easier-to-read scan image.
Document Scanner applies browser-side rotation, grayscale, contrast and threshold adjustments as a practical image-cleanup step before OCR or sharing. An image rarely needs just one edit. The Image Upscaler enlarges images 2x to 4x online with advanced bicubic and perceptual interpolation to increase display size while preserving crisp edges and the Base64 to Image decodes a supported image data URL into a viewable image directly in the browser. And the Image to Base64 converts an image into a Base64 data URL for embedding in HTML, CSS or application data. The scanner takes a phone photo of a document, corrects perspective so the page becomes rectangular, enhances contrast for readability, and outputs a clean page image ready for archiving or OCR. Worked example — an A4 page photographed with a phone at 4,032 × 3,024 pixels is cleaned in place: the output keeps the photo's own dimensions (a 90° rotation swaps width and height), and the cleanup is rotation, grayscale and threshold. Every pixel above the threshold of 150 becomes white and every pixel below becomes black, so grey shadows and paper texture vanish and the text stands out. The file shrinks with it — a thresholded page is mostly flat black and white, so the JPEG compresses far smaller than the colour photo it came from. Table — what to aim for when photographing: A4 at 300 DPI is 2,480 × 3,508 px (8.27 × 300 = 2,481, 11.69 × 300 = 3,507); US Letter at 300 DPI is 2,550 × 3,300 px (8.5 × 300 = 2,550, 11 × 300 = 3,300); A4 at 150 DPI is 1,240 × 1,754 px. The tool keeps your photo's dimensions — it does not resize — so the resolution you shoot at is the resolution you keep. Before / after — before: a phone photo of a contract with a shadow across the middle, grey paper, and text that an OCR engine misreads; after: the same page rotated upright, high-contrast black on white, ready to archive or run through OCR. The common mistake is photographing a glossy page under a ceiling light: the glare creates a hotspot that no amount of contrast adjustment can recover, because the text underneath is washed out in the capture itself. Shoot in even, shadow-free light with the phone parallel above the page. A second edge case is curved book pages — the cleanup corrects rotation and contrast well, but a page curving away from the camera stays distorted near the spine, so press the book as flat as practical. Sources: Adobe, “Scan documents into PDFs” (accessed November 2026); Smith, R., “An Overview of the Tesseract OCR Engine” (2007). Content last reviewed: November 2026.
Primary objective: clean a photographed document with rotation, grayscale, contrast and threshold controls before sharing or OCR.
Privacy assurance: Image decoding and processing are performed in the browser from the file you select.
How to Use Document Scanner
- Choose a document photo.
- Adjust rotation and scan treatment.
- Preview the result and download the cleaned image.
- Photograph the page flat in even light, holding the phone parallel above it.
- Upload the photo and set the rotation so the text reads upright.
- Switch to grayscale and raise contrast until the text is dark on a clean white page.
- Apply threshold cleanup for text-only pages; keep colour for stamps and photos.
- Download the cleaned image — it keeps your photo's pixel dimensions, so shoot at high resolution for the best OCR result.
Key Use Cases & Applications
- Cleaning phone photos of paperwork
- Preparing images for OCR
- Creating clearer document copies for sharing
- Digitizing receipts and contracts when no flatbed scanner is available.
- Creating clean page images from whiteboard or notice-board photos.
- Preparing a photographed document for OCR.
Frequently Asked Questions
Does this fix perspective?
No. It improves the image but does not perform full four-corner perspective correction.
Is the image uploaded?
No. Processing happens locally in the browser.
Can I use it before OCR?
Yes. A cleaner high-contrast image can be easier for OCR engines to recognize.
How do I photograph a document for the best scan?
Lay the page flat in even, shadow-free light, hold the phone parallel above it, and include a small margin around all edges — the perspective correction needs to see the page corners.
By Shehzad Hussain — owner and editor of ExpTool, based in Multan, Pakistan. He builds and tests every tool on this site himself.
Last updated: 2026-11-09