Skip to content
ByteNeat

Turn a photo of a document into a clean scan

Straighten a photographed document, crop it to the page edges and clean it up, then save as PDF or image. Multi-page supported. Nothing is uploaded.

Drop a photo of a document here, or

Lay the page on a contrasting surface and photograph it straight on · never uploaded

What a scanner does that a camera does not

A flatbed scanner presses the page flat, lights it evenly, and photographs it from directly above. A phone held at arm's length does none of those things. The page comes out as a trapezoid rather than a rectangle, one side is brighter than the other, and there is usually a shadow where your hand was.

This tool corrects all three. It finds the four corners of the page, applies the transform that maps them back onto a true rectangle, and evens out the lighting. What comes out looks like a scan.

Why the correction needs a perspective transform

It is tempting to think rotating and cropping would be enough. It is not. When you photograph a page at an angle, the edge further from the camera appears shorter than the near edge — the rectangle becomes a trapezoid, and the text tapers along with it. Rotation cannot undo that, because rotation preserves parallel lines and perspective is precisely what breaks them.

What is needed is a homography: an eight-parameter transform computed from four point correspondences. Every pixel in the output is traced back through that transform to find where it came from in the photograph, then sampled with bilinear interpolation so small text stays smooth instead of turning into jagged edges.

Why the corner handles are always there

Automatic detection thresholds the image and looks for the largest bright region, which works nicely when the page sits on a dark desk and poorly when it sits on a white table. Rather than pretend otherwise, the four handles are always draggable, and the tool tells you when detection failed instead of silently using a bad guess.

Choosing a clean-up mode

ModeBest forFile size
ScanPrinted text, forms, lettersSmallest
GreyscalePencil, faint print, photographs of textMedium
ColourColoured forms, stamps, signatures, ID cardsLargest

Scan mode does more than raise the contrast. It estimates the background brightness across the page and divides the image by it, which cancels uneven lighting before the contrast is applied. A single global threshold cannot do that — one shadow across the corner and half the text disappears with it.

Getting a good photograph

  • Put the page on a surface that contrasts with it. A white page on a dark desk detects almost every time; white on white rarely does.
  • Photograph from directly above, with the whole page and a little margin in frame.
  • Avoid casting your own shadow across the page — light from the side rather than from behind you.
  • Flatten folds first. The transform assumes the page is flat; it cannot undo a curl.
  • Hold steady. Blur is the one thing no amount of correction recovers.

Multiple pages

Scan a page, press Add page, then load the next photograph. Pages collect in order and export together as a single PDF, each sized to its own aspect so nothing is stretched. Remove any page that did not come out well before exporting.

Nothing is uploaded

Corner detection, the perspective transform, clean-up and the PDF itself are all produced in your browser. The document never leaves your device.

That is the substantive difference from a phone scanning app. The popular ones want an account, camera-roll access and often a subscription, and more than one has been found sending documents to its own servers. The things people scan — contracts, bank statements, certificates, passports — are exactly the things you would least want on someone else's machine.

Frequently asked questions

How do I scan a document without a scanner?

Photograph the page with your phone, then drop the photo in here. The tool finds the four corners of the page, flattens the perspective so the page becomes a proper rectangle, and cleans up the lighting. The result looks like it came off a flatbed scanner rather than out of a camera.

What does perspective correction actually do?

A photograph taken at any angle turns a rectangular page into a trapezoid — the far edge is narrower than the near one. Perspective correction computes the transform that maps your four corners back onto a true rectangle and applies it to every pixel. Text that was slanted and tapering comes out straight and evenly sized.

The corners were detected wrong. Can I fix them?

Yes — drag any of the four handles. Automatic detection looks for the page edges against the background, which works well on a dark surface and poorly on a light one. The handles are the guarantee; detection is only a starting point.

Which clean-up mode should I use?

Colour keeps the original and suits photographs, coloured forms and anything with a stamp or signature you want to stay recognisable. Greyscale drops the colour but keeps the shading. High contrast pushes the page towards white and the ink towards black, which is best for plain printed text and produces much smaller files.

Can I scan more than one page?

Yes. Scan a page, press Add page, then load the next photo. Pages collect in order and export together as a single PDF. You can remove any page before exporting if one did not come out well.

Is my document uploaded anywhere?

No. Corner detection, the perspective transform, clean-up and PDF generation all run in your browser. Your document never leaves your device — which matters, because the things people scan are contracts, bank statements, certificates and identity documents.

How is this different from a phone scanning app?

Mostly that it does not want anything from you. Popular scanning apps ask for account signup, camera-roll access and often a subscription, and several have been caught sending documents to their own servers. This runs in a browser tab, needs no account, and has no server to send anything to.

What can I do with the scan afterwards?

Export it as a PDF or an image. If you need the text as characters you can edit, run the result through the image-to-text tool. If a form demands a specific file size, the image compressor will hit an exact KB target without changing the dimensions.

Last updated .