Your files never leave your device — 100% local processing

Document Scanner

Finds the four corners of a photographed document and straightens it into a clean scan.

B&W document mode removes shadows and sharpens text for a photocopier-style scan. The scanning feature (~10 MB) downloads once on first run, then starts instantly.

0 B uploaded — this page has not sent your files to any server?

Private by design — document detection and correction run entirely inside your browser, so your photos are never uploaded anywhere. Safe even for contracts, IDs and medical records.How this differs from upload-based sites — most converter sites upload your photo to a server, process it there, and promise to delete it after a while. Until that happens, your photo is sitting on someone else's server. imgmoa has no upload step at all. The more sensitive the photo — a scanned ID, a photographed contract, pictures of your kids — the more that difference matters.

Turn a crooked phone photo of a document into a clean, flat scan

Without a scanner, a document photographed on a desk tends to come out as a slanted trapezoid with shadows across it. This tool finds the four corners of the paper, flattens it into a head-on rectangle, and can wipe out the shadows with B&W document mode. It handles several photos at once, and the files are processed only on your computer.

A closer look

The scanner runs on OpenCV, an open-source image processing library, and downloads about 10 MB once, on the first scan. The outline is found on a copy of the photo scaled to 1000px on its long side: edges are extracted, the largest convex shape with four corners is treated as the document, and quadrilaterals covering less than 12% of the photo are ignored. The perspective is then corrected using those four points, with processing capped at 3000px on the long side. There is no way to drag the corners by hand, so if no outline is found the photo is saved at its original proportions, without perspective correction, with only your chosen mode applied.

There are three output modes. Color leaves the colors alone and Grayscale simply removes them. B&W document compares each point with the brightness around it to separate ink from paper, so shadows falling across the page and stains disappear, the result looks like a photocopier scan, and the file gets much smaller. The trade-off is that photos or colored stamps on the page break up into dots, so Color or Grayscale suits those documents better. Every result is a JPG at 92% quality, and there is no option to combine pages into a PDF.

How to use it

When it helps

Expense receiptsPhotograph travel receipts one by one, scan them together in B&W document mode, and upload them to your expense system.
Contracts and formsKeep a signed contract as a straight, readable image without a scanner, ready to email or file.
School and insurance paperworkWhen a form has to be submitted as a photo, send a head-on scan instead of a tilted snapshot.
Preparing for text extractionFeed a shadow-free B&W scan into Image to Text (OCR) for better recognition.

Common snags

It says “Corners not found — processed as-is without correction”.The paper and the surface are too similar in color, or a corner is outside the frame. Put a white document on a dark desk and reshoot with all four corners visible and the page filling most of the shot.
It straightened my desk or monitor instead of the document.The largest four-sided shape in the photo is taken as the document, so a bigger rectangular object wins. Clear the surroundings before shooting, or crop down to the document with Crop Image first.
Photos and stamps look messy in B&W mode.B&W document mode is tuned for text, so photos and colored stamps break into dots. Use Color or Grayscale for pages like that.
It says my iPhone photos were skipped.HEIC files aren’t accepted. Convert them with HEIC to JPG first, then scan.

Tip Even when the corners are found, the steeper the angle, the more the far side of the page is stretched and softened, so shooting from directly above gives the cleanest result.

Document Scanner FAQ

How should I take the photo?

Strong contrast between the document and the background works best. Place a white document on a dark desk, keep all four corners in frame, and let the document fill most of the shot.

What if the corners aren't detected?

If no document outline is found, the image is processed without perspective correction, at its original proportions, with only your chosen mode (color, B&W, grayscale) applied. Try again with a higher-contrast background.

What does B&W document mode do?

It removes paper shadows and stains and turns the page into crisp black-and-white text, like a photocopier scan — great for submitting paperwork, and the file gets much smaller. For documents with photos, use color or grayscale.

Can I scan iPhone HEIC photos?

Convert them with HEIC to JPG first, then scan the JPG.

Can I extract the text afterwards?

Save the scan, then run it through Image to Text (OCR). B&W document mode improves recognition accuracy.

Is it free? Are my files safe?

Completely free with no limits. Everything runs in your browser and your photos are never uploaded to any server.