Scan a Document with Your Camera or a Photo
A phone photo of a document is trapezoidal, grey and shadowed. Drag this scanner's four handles onto the page corners and it computes the perspective correction, straightens the page and — in document mode — cleans it to crisp black-on-white. Bank letters and IDs never leave your machine.
Loading the tool…
How it works
- Photograph the document flat, filling the frame, and drop the image here.
- Drag each of the four handles precisely onto the page's corners.
- Straighten — the perspective math rebuilds the page as if shot square-on.
- Toggle document mode for clean black-and-white, tune the ink cutoff, download.
Worth knowing
The core of a document scanner is a homography: the 3×3 transform that maps the four corners you marked to a true rectangle. Once solved, every output pixel is traced back through the transform to its source position, which un-does the keystone distortion of a phone held at an angle. Output dimensions come from your marked quad's real edge lengths, so an A4 page yields A4 proportions without you declaring the paper size.
Corner placement is the entire skill, and it takes ten seconds: zoom your eyes to each corner and put the handle where the paper's edges would intersect, even when a finger or shadow covers the actual corner. Precision here is worth more than camera quality — a 12-megapixel photo with sloppy corners produces a worse scan than an 8-megapixel one with exact ones.
Document mode then handles the illumination problem. A photographed page is never evenly lit, so a single global threshold either drowns one side in black or fades the other to nothing. The cleanup here normalises each pixel against a heavily blurred copy of the page — approximating the local background level — before thresholding, which is why a page with a soft shadow across it still comes out uniformly white with solid text. The ink cutoff slider sets how aggressive that separation is.
Keep photos of ID cards, bank letters, contracts and medical papers in colour mode when stamps, holograms or signatures in blue matter — binarisation flattens colour evidence. And chain the result into the Image-to-PDF tool when a portal wants a PDF: photograph, straighten, clean, paginate, all without any of it touching a server.
The cleanup normalises against a blurred copy of the page itself — an approximation of adaptive thresholding — which is why a shadow gradient that ruins a simple brightness threshold comes out as even white here.
What this tool will not do
- It will not find the corners for you in this version — you place four handles; ten careful seconds beats a wrong guess.
- It cannot recover text lost in glare or deep shadow; re-photograph with the light behind the camera instead.
- It does not perform OCR — the output is a clean image (chain it to Image to PDF for a multi-page file).
Questions people ask
How do I scan a document without a scanner?
Photograph it flat from directly above in good light, then use this page: mark the four corners, straighten, and switch on document mode for a clean black-and-white result that prints and emails like a real scan.
Why is my "scan" grey and blotchy from other apps?
Global thresholding fails on unevenly lit pages. The local-background cleanup here adapts across the page, which removes the blotches — tune the ink cutoff until text is solid and paper is empty.
Is it safe to scan my ID or bank statement here?
The perspective correction and cleanup are computed by your own browser; no image data is transmitted anywhere, which you can verify from the Network tab or by using the tool offline.
How do I make a PDF of several scanned pages?
Straighten and clean each page here, then send the results into the Image to PDF tool — it assembles them into one A4 or Letter PDF, in order, still entirely on your device.
Should I scan in colour or black and white?
Text documents: black and white — smaller, sharper, cleaner to print. Anything where ink colour, stamps or photos carry meaning: colour mode, which skips binarisation and keeps the straightened photo as-is.
Usually the next step
More in Document & ID Photos
This page processed nothing on any server — there is no server. The technical explanation.