Boneyard Tools

Document Scanner

Turn a photo of a page into a clean, flat scan without an app or an upload. Drop in a picture of a document and the tool finds its edges, perspective corrects it to a straight top-down view, enhances it for legibility, and exports a PNG or a PDF. It uses OpenCV running entirely in your browser, so your document never leaves your device. OpenCV downloads once on first use, then is cached.

How to scan a document from a photo

  1. Drop in a photo of the document, or click to browse.
  2. Wait a moment while the page edges are detected and the perspective is corrected.
  3. Pick an enhance mode (Color, Grayscale, or Black and white), then download a PNG or a PDF.

Examples

Phone photo of a receipt to PDF

An angled photo of a receipt on a desk
A straightened, high-contrast scan saved as a one-page PDF

Tilted page to a flat PNG

A page shot at an angle with the corners visible
A flat, top-down PNG of just the page, edges cropped away

Frequently asked questions

Is my document uploaded anywhere?

No. Nothing is uploaded. The scan runs entirely in your browser using OpenCV (WebAssembly). Your photo is processed on your device and never sent to a server. Only the OpenCV engine is downloaded, once.

Why does the first scan take a moment?

OpenCV, the computer vision engine that finds the page edges and corrects the perspective, downloads the first time you use the tool and is then cached for instant reuse. Larger photos also take a little longer to process.

Can I export the scan as a PDF?

Yes. Use Download PDF to save the corrected scan as a one-page PDF (A4 with a small margin), or Download PNG for an image. Both are generated in your browser.

What gives the best results?

Good contrast between the page and the surface behind it. Lay the document on a darker, plain background, get all four corners in the frame, and use even lighting so the edges are easy to detect.

What if it cannot find the page edges?

If no clear page is detected, the tool falls back to scanning the full frame so you still get a result. Improve the contrast and lighting and try again for an auto-cropped scan.

Related tools