Online Document Scanner – Digitize Paper Documents

Turn document images and paper records into digital copies for easier storage and sharing. Prepare receipts, invoices, and everyday documents online.

Document Scanner Pro
1 Upload
—
2 Edit
—
3 Export
Processing…
Crop area

Turn Angled Phone Photos into Flat, High-Contrast Document Scans

Taking a quick smartphone photo of a paper contract, tax receipt, handwritten note, or ID card rarely looks like a real flatbed scan. Because it is nearly impossible to hold a phone perfectly parallel to a desk without casting a shadow, the paper usually comes out skewed in a trapezoid shape surrounded by cluttered table edges and dim room lighting. Our browser-based Document Scanner fixes both problems locally on your device using the OpenCV computer vision engine.

With a single click, the tool detects the four outer corners of your page, crops away the surrounding desk, stretches the angled sheet back into a flat rectangle, and lets you switch to a crisp black-and-white document finish—all without uploading confidential paperwork to an external server.

How to Scan, Flatten, and Clean Up a Document Online

  1. Load a document photo or PDF: Drag and drop an image (JPG, PNG, or WebP) or a PDF file onto the dropzone, or click to browse your device. If you select a PDF, the built-in renderer automatically extracts the first page at high resolution (2× scale) onto the canvas.
  2. Run automatic edge detection & perspective correction: Click Detect & Correct in the sidebar. The OpenCV engine scans the image for the largest four-cornered contour, calculates the geometric perspective matrix, and warps the skewed page so it sits completely flat and upright.
  3. Apply high-contrast Black & White (Optional): Click Convert to B&W to strip away yellow indoor lighting and paper shadows, leaving sharp black text on a pure white background.
  4. Compare or revert if needed: If your document contains colored stamps, signatures, or photos that look better in full color, click Undo B&W to return immediately to your perspective-corrected color scan.
  5. Download your scanned JPG: Click Download Document to save the finished scan as a high-clarity JPEG (encoded at 95% quality), or click New Image to process another page.

Color Perspective Scan vs. Black & White Mode: Which Should You Use?

Depending on what type of paperwork you are digitizing, you can export your scan right after perspective correction or apply the B&W filter first:

  • Printed Contracts, Invoices & Tax Forms (Use Detect & Correct + Convert to B&W): Eliminates uneven phone shadows and gray paper tint so text prints cleanly on laser printers without wasting toner.
  • IDs, Passports, Certificates & Stamped Letters (Use Detect & Correct Only — Keep Color): Preserves blue ink signatures, official color seals, holograms, and portrait photos while still squaring up the page edges.
  • Handwritten Notes & Whiteboard Sketches (Use Convert to B&W with Undo Check): Turns pencil or dark pen strokes into bold, legible lines; click Undo B&W if light highlighter colors fade out.

3 Quick Tips for Accurate Automatic Edge Detection

Because our scanner uses Canny edge detection and polygon approximation to locate your page borders automatically, how you snap the original photo makes a big difference:

  • Place white paper on a darker surface: Laying a white sheet of paper on a white tablecloth leaves zero contrast along the edges. Place the document on a wooden desk, dark folder, or colored tabletop so the four borders stand out clearly.
  • Keep all four corners visible inside the frame: Make sure none of the page corners are cut off by the camera edge or covered by your fingers.
  • What if my scan is already cropped? If your image or PDF already fills the entire frame without a background border, you can skip Detect & Correct and click Convert to B&W directly, or trim the margins manually with our Image Cropper.

Complete Your Document Workflow on Imagesmint

Once you have downloaded your flattened document scan, you can finish preparing it for submission or archiving with our companion tools:

  • Convert your scanned JPG into a PDF: Most government portals, universities, and HR systems ask for PDF uploads. Turn your cleaned scan into a standard document file in seconds with our Image to PDF converter.
  • Extract editable text from the page: Want to copy paragraphs or invoice numbers out of your newly cleaned scan instead of retyping them? Run the downloaded image through our OCR Text Extractor.
  • Fix page orientation & redact private numbers: If you snapped the photo sideways, straighten it with our Rotate Image tool. Need to hide an account number or address before sharing? Mask it cleanly using our Blur Image tool.
  • Meet strict file-size limits: Because the scanner exports at 95% JPEG quality to keep small typography razor-sharp, you can shrink the final kilobyte weight anytime using our JPG Compressor.

Frequently Asked Questions

Are my confidential contracts or ID scans uploaded to any server?

No. Both the PDF rendering (via PDF.js) and the perspective and threshold processing (via OpenCV.js WebAssembly) execute 100% locally inside your web browser. Your tax forms, legal contracts, and personal IDs never leave your computer or phone.

Why did the scanner say "Could not detect clear outer edges"?

That message appears when the algorithm cannot find a distinct four-sided shape covering at least 5% of the image area. It usually happens if the paper blends into a white background, if the page is crumpled into more than four corners, or if the document is already cropped edge-to-edge. Even if auto-detection is skipped, you can still apply the Convert to B&W filter and download your cleaned document.

Why does the first scan take a couple of seconds to start?

When you open the page, your browser downloads and initializes the local OpenCV computer vision runtime in the background. Once loaded, perspective warping and black-and-white conversion happen almost instantaneously on your device's processor.

Can I scan a multi-page PDF with this tool?

When you drop a PDF into the scanner, it renders the first page at double resolution so you can deskew or clean up a scanned cover sheet, single-page receipt, or certificate. For multi-page assembly after scanning individual photos, use our Image to PDF tool.