How to Scan a Document With Your Phone (Better Than a Scanner)
What actually makes a photo look like a scan: flattened lighting, removed colour, local contrast. Plus the shooting habits that matter more than any filter.
A phone camera has more resolution than the flatbed scanner that used to sit next to the printer. What it does not have is even light. That single difference — a lamp on one side, a window on the other, your own shadow across the middle — is why a phone photo of a page looks like a photo of a page and not like a scan.
Everything a scanning tool does is aimed at that problem, not at sharpening.
Three things separate a photo from a scan
- Even illumination. The paper should be one uniform value from edge to edge, with no gradient and no shadow.
- No colour cast. Paper is white; under tungsten light it photographs yellow. Removing the cast is most of the “clean” impression.
- Local contrast. Ink should be black and paper white, decided per region rather than by one global threshold.
Global threshold versus adaptive threshold
Adaptive thresholding is the technique that makes phone scans work. It computes a local average around every pixel — typically over a 25-pixel window — and turns the pixel black only if it is meaningfully darker than its own neighbourhood. A shadow makes both the paper and the ink darker by the same amount, so the comparison is unaffected.
| Method | How it decides | Result on a shadowed page |
|---|---|---|
| Global threshold | One cut-off value for the whole image | The shadowed half turns solid black |
| Adaptive threshold | Compares each pixel with its local neighbourhood | Shadow disappears; text stays readable |
| Contrast stretch | Maps darkest and lightest tones to black and white | Improves, but shadow remains a gradient |
The three stages, and what each one is for
Shooting habits that beat any filter
- Fill the frame. A page occupying 90% of the photo has 90% of the pixels on the text.
- Avoid your own shadow: stand with the light behind you, not over the page.
- Shoot straight down. A 20-degree tilt costs about 6% of resolution to perspective correction.
- Use a dark background if the page edge is white on white — it gives the crop something to find.
- Do not use the flash directly. It creates a hot spot that no threshold can recover.
PDF or JPG?
For a document that will be read, printed, signed or emailed to an office, PDF. It is one file regardless of page count, it opens identically everywhere, every portal accepts it, and it does not invite the recipient to edit the image. A JPG is the right choice when the destination expects an image — a form field that says “upload a photo of your ID”, for instance.
A JPEG embedded in a PDF is not re-encoded. The PDF stores the exact JPEG bytes and tells the reader to draw them; the page is a container, not a second compression step.
What this cannot do
It does not read the text. No OCR, no searchable layer, no copy-paste — the output is an image of a page, not a document in the word-processor sense. It also does not straighten a tilted page, detect the page boundary for you, or merge several photos into one multi-page file.
Those are separate problems with separate tools. Being clear about the boundary matters: a tool that quietly implies OCR and then delivers a picture wastes the time of everyone who needed text.
When a real scanner still wins
Two cases. First, more than about ten pages: the handling time per page dominates and a document feeder is simply faster. Second, anything with a legal requirement for a specific resolution or a colour-accurate reproduction — a passport, a certificate, an artwork. For the single-page contract that has to go back this afternoon, the phone in your pocket is already better than the scanner you would have to walk to.
Try it without uploading
Every tool on Toolpix runs in your browser. No file is sent anywhere.
Browse all toolsTOOLS IN THIS GUIDE
Each one does the step described above, on your own device.