Document Scanner

Flatten a photo of a document using four paper corners and download a one-page PDF with a Three.js preview.

  • File & Data
  • Runs in your browser
  • Free, no signup

The guide

Tested tool guide Tested browser tools Checked November 30, 2026

What Document Scanner does, with a checked example

Open a photo of a paper document from your device. Suggest the four corners or position them yourself, then flatten the area into a rectangular page. Inspect the result before saving a PDF.

Worked example

A concrete input and expected output from the current implementation.

Input

Use the example of pale paper on a dark surface. Select Detect paper edges, check the corners, and choose Flatten page.

Expected output

The corrected preview trims the surrounding surface and straightens the selected paper. Download PDF saves the raster scan as a single page.

The four coordinates map the photographed quadrilateral to a rectangle.

How the result is produced

1

Open a clear photo

Choose a local image up to 24 MiB or use the camera picker on a device that offers capture. A contrasting surface makes the edges easier to see.

2

Check the four corners

Detect paper edges suggests corners for a bright page against a darker area. Adjust the horizontal and vertical position sliders if any marker misses the page.

3

Flatten and export

The viewer resamples the selected quadrilateral to a rectangle. Compare the source and corrected result in Three.js, then download one PDF page with the image embedded.

Good uses

  • Turn a photograph of a page into a PDF for a personal record.
  • Reduce the visible background around a receipt or note.
  • Straighten a document you photographed from a slight angle.

Limits and checks

  • Keep all corners and important content inside the photo.
  • Inspect the corrected page at a readable size for missing words or blurred edges.
  • The PDF contains a picture of the page. Use a text recognition tool when selectable text is needed.

Common questions

How do I fix an inaccurate edge suggestion?

Use the individual sliders to move the four corner markers to the four physical corners before flattening again.

Does detection work on every background?

It works best with bright paper on a plain, darker surface. Shadows and other bright objects may require manual adjustment.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.