Screenshot to Document Image Converter
Transform mobile screenshots, angled phone photos of paper pages, receipts, whiteboards, and ID cards into clean, straightened, readable document images or PDFs—with 4-corner perspective correction, uneven shadow removal, and six specialized document cleanup modes directly in your browser.
Loading screenshot to document image converter…
Your screenshots and document photos are processed locally on an HTML5 Canvas inside this browser tab. No document image or exported PDF is ever uploaded to a server.
How to convert a screenshot or phone photo into a clean document
- 1Drop a screenshot or smartphone photo of a paper page, receipt, marksheet, or whiteboard into the upload area (or paste directly from your clipboard).
- 2Inspect the automatic 4-corner boundary box on the Source & Perspective Canvas: drag the Top-Left, Top-Right, Bottom-Right, and Bottom-Left corner handles to align with the four corners of a skewed or angled sheet of paper, or click Auto-Detect Page Corners / Full Frame.
- 3Choose one of the 6 Document Processing Modes—Original, Clean document (removes uneven camera shadows while keeping colour stamps and signatures), Grayscale, Black and white (adaptive local thresholding for pure white paper), High contrast, or Natural enhancement.
- 4Fine-tune Rotation (90° steps), Brightness, Contrast, Shadow Reduction, and Text Sharpening while comparing the Before and After views side by side.
- 5Export your cleaned page as a crisp PNG, compact JPG, or print-ready A4 / Letter PDF document.
Key features of the screenshot to document converter
Interactive 4-corner perspective rectification
Maps any angled 4-corner quadrilateral on a desk or wall back into a flat rectangular page using bilinear inverse-mapped perspective warping.
Integral-image uneven shadow removal
Estimates local background illumination across the page using a fast summed-area table (box filter) and divides out phone shadow gradients so gray paper turns clean white.
Six specialized document cleanup modes
Switch instantly between Original, Clean document, Grayscale, Black and white (adaptive local threshold), High contrast, and Natural enhancement.
Direct JPG, PNG, and client-side PDF export
Download the enhanced result as a raster image (JPG or PNG) or package it directly into a standard PDF document in your browser without server uploads.
Practical use cases for cleaning up screenshots and document photos
- Turning an angled smartphone photo of a printed contract, invoice, or academic marksheet taken under uneven desk lighting into a flat, white-background page.
- Cleaning up dark-mode or low-contrast mobile app screenshots, bank transfer confirmations, and ticket receipts so they print cleanly on paper without wasting black toner.
- Straightening and whitening whiteboard or notebook lecture photos so handwriting and diagrams stand out with crisp contrast.
- Enhancing a scanned signature or certificate photo before meeting strict kilobyte ceilings in the Document Scan Compressor, Signature Resizer, or Image Upload Compliance Checker.
- Combining multiple cleaned pages into a multi-page submission under 200 KB using the Image to PDF Converter.
Supported input formats and document export options
You can load any standard JPG, PNG, or WebP capture and export the cleaned document in the format required by your portal, printer, or archive:
- Input formats: JPG / JPEG camera photos, PNG desktop/mobile screenshots, and WebP captures.
- Image exports: High-contrast JPEG (.jpg) with adjustable quality or lossless PNG (.png) for sharp text edges.
- Document export: Single-page client-side PDF (.pdf) generated locally via `pdf-lib`.
How perspective deskewing and local shadow normalization work
When you photograph a flat sheet of paper at an angle with a phone camera, the rectangular page projects onto the camera sensor as a trapezoid (the edge closer to the lens appears wider than the far edge), and the phone or your hand often casts a soft diagonal shadow across the lower half of the sheet. Simple global brightness or contrast sliders cannot fix either problem: raising global brightness washes out ink in the bright top half of the page before the shadowed bottom half turns white.
To solve both issues locally in your browser, this tool applies a two-stage geometric and photometric pipeline. First, the 4-corner perspective warp computes the Euclidean edge lengths of your selected quadrilateral and maps every output pixel `(u, v)` back to its corresponding fractional coordinate inside the source quad via bilinear interpolation. Second, the illumination normalizer builds a 2D summed-area table (integral image) over pixel luminance to compute the local paper brightness around every pixel in O(1) time, dividing the pixel's RGB values by the local background estimate so shadows disappear while dark ink strokes and coloured stamps remain intact.
Clean Document vs Black-and-White adaptive thresholding
Clean Document mode normalizes paper illumination and snaps near-white paper tones (> 234 luminance) to pure #FFFFFF while preserving 24-bit colour and anti-aliased grey transitions—making it ideal for certificates with blue ink signatures or red official seals. Black-and-White mode compares each pixel's luminance against its local neighborhood mean minus a threshold offset, outputting strictly #000000 (black) or #FFFFFF (white) for maximum text contrast on monochrome forms.
Unsharp-mask text edge sharpening
Camera lens softness and bilinear perspective warping slightly blur character boundaries. The sharpening stage runs a 3×3 Laplacian high-pass convolution kernel that accentuates local luminance differences along letter strokes without introducing artificial characters.
Real document cleanup and perspective correction examples
Below are three typical capture scenarios and the recommended settings for each:
Example 1: Angled Smartphone Photo of a Printed Marksheet with Desk Shadow
Flattening a trapezoidal desk photo while preserving blue signatures and red stamps.
- Geometry step: Drag the 4 corner handles to the paper corners -> perspective warp rectifies the skewed quad into a flat 1650 × 2334 px rectangular page.
- Enhancement mode: Clean document (Shadow Reduction 70%, Contrast +25, Sharpen 40%).
- Result: Uneven room shadow is normalized to #FFFFFF white paper while blue pen signatures and coloured seals remain crisp; export as PDF or JPG.
Example 2: Faded Thermal Store Receipt Photographed for Expense Reimbursement
Recovering low-contrast grey ink on shiny thermal paper.
- Geometry step: Crop tightly around the vertical receipt tape.
- Enhancement mode: High contrast or Black and white (Shadow Reduction 80%, Sharpen 55%).
- Result: Faint grey numbers separate cleanly from the paper background for expense portal upload.
Example 3: Mobile UI Screenshot of a Confirmation Page Prepared for Printing
Trimming status bars and enhancing text legibility for an A4 PDF attachment.
- Geometry step: Pull top and bottom handles inward to crop out phone battery/navigation bars.
- Enhancement mode: Natural enhancement or Clean document.
- Result: Clean rectangular document exported directly as a single-page PDF.
Accuracy, legibility, and compliance limitations
- Visual enhancement never invents or reconstructs missing text: If a blurry or out-of-focus photo does not contain legible letter strokes in the original pixels, sharpening and contrast adjustments cannot guess or fabricate the missing words.
- Aggressive Black-and-White thresholding can remove faint strokes: On documents containing very light pencil markings, pale watermarks, or faded stamps, pure Black-and-White binary thresholding may turn faint details white. Use Clean Document or Natural Enhancement mode instead and compare the Before/After preview at 100% zoom.
- Not a notarized or certified document scanner: Cleaning up a photo improves readability, but some government, legal, or banking portals strictly prohibit heavily filtered or thresholded ID cards. Use Original or Natural Enhancement mode when colour fidelity is mandatory.
- Single-page processing per pass: This workbench cleans one screenshot or document page at a time; to merge multiple cleaned pages into a single multi-page PDF, save each page and combine them in the Image to PDF Converter.
What happens to your file
Selected or pasted document images are decoded into local browser memory where quadrilateral perspective warping, local illumination normalization, adaptive thresholding, and optional PDF page packaging run on your device. Neither your source image nor the exported PDF is uploaded to a remote server (while standard webpage assets, on-demand PDF library code, and consented analytics load separately). Clicking Reset or closing the tab releases the working canvas buffers.
Supports JPG, JPEG, PNG, and WebP files up to 40 MB. Visual cleanup improves contrast and legibility of existing pixels; it never invents missing text or certifies official documents.
Full details are in the Privacy Policy.
Troubleshooting document cleanup issues
Why did my coloured stamp or blue signature turn black in Black-and-White mode?
Black-and-White mode applies binary thresholding, converting every pixel to either pure black (#000000) or pure white (#FFFFFF). Switch to 'Clean document' or 'Natural enhancement' mode to whiten the paper background while keeping blue ink and coloured stamps in full colour.
Some faint handwriting disappeared after I switched to Clean document—how do I bring it back?
Lower the Brightness slider slightly (for example, to -10 or -15) or switch to 'Natural enhancement' mode so light grey pencil or ballpoint strokes are not snapped into the white paper threshold.
How do I undo a corner drag or slider change?
Click 'Reset Corners' to snap the 4 perspective handles back to the full image rectangle, or click 'Reset All Adjustments' to restore all sliders and modes to their neutral defaults.
Once your document photo is straightened and whitened, hit a strict 50 KB, 100 KB or 200 KB portal upload limit with Document Scan Compressor.
Frequently asked questions
How does this tool convert a phone photo into a flat document scan?
It combines two techniques: 4-corner bilinear perspective rectification (which maps an angled trapezoidal photo of a page back into a flat rectangle) and local illumination shadow normalization (which removes uneven lighting gradients across the paper while sharpening dark text strokes).
Does this tool use AI that might hallucinate or alter numbers on my document?
No. This tool uses deterministic pixel math (bilinear interpolation, integral-image local illumination division, contrast curves, and 3×3 unsharp-mask convolution). It never uses generative AI and never invents, alters, or replaces characters or numbers.
Which mode should I choose for an ID card or certificate with coloured stamps?
Choose 'Natural enhancement' or 'Clean document'. Both modes preserve RGB colour channels so official seals, photos, and blue signatures retain their colour while uneven shadows are lifted.
Can I export the cleaned screenshot directly as a PDF?
Yes. Select 'PDF Document (.pdf)' in the Export Format selector to package your cleaned and straightened document image into a standard PDF file locally in your browser.
Are my confidential receipts, contracts, or ID screenshots uploaded anywhere?
Never. Every step—edge detection, perspective warping, shadow removal, and PDF creation—happens locally inside your browser tab. Your files never leave your device.
What is the difference between Grayscale and Black-and-White mode?
Grayscale keeps 256 smooth shades of grey from black to white (preserving anti-aliased text edges and photo shading), whereas Black-and-White mode applies adaptive local thresholding so every pixel becomes either pure black (#000000) or pure white (#FFFFFF).
How do I fix a document photo that was taken sideways or upside down?
Use the Rotate 90° Left / Rotate 90° Right buttons in the toolbar before adjusting the 4 corner handles so the page stands upright.
What should I do if the exported PDF or JPG is still too large for an upload portal?
Lower the JPEG Quality slider in the export panel, or open the exported file in the Document Scan Compressor or Image to PDF Converter (which includes a Target KB limit mode).
When not to use this
Do not use Black-and-White binary thresholding on ID cards, passports, or certificates that require full-colour photographs and official coloured stamps; choose 'Natural enhancement' or 'Clean document' mode instead.
Avoid relying on sharpening to recover text that is completely out of focus or unreadable in the original capture—deterministic pixel filters enhance existing contrast edges but never invent or guess missing characters.