You can handle this directly in your browser with our free pdf to images tool — nothing gets uploaded.
You point your phone at a page, tap the shutter, and open the result to find a dark, soft blob creeping in from one corner. Your thumb. Or the body of the phone itself. That shadow is now baked into the image, and when you try to upload the scan to a job application or a PDF-merging tool, it looks amateurish and, in some cases, hides real text.
The good news: in the majority of cases you do not need to re-shoot the document. A phone shadow is one of the most predictable artifacts in smartphone photography, and it can be removed either with a better shooting technique (if you have time to re-scan) or with software that is specifically designed to model and subtract background shadows. This guide covers both paths.
---
Understanding the physics makes the fixes less magical.
When you photograph a document on a desk, the light comes from the room — a window, a ceiling lamp, a screen glow. That light is directional. Your phone blocks a cone of it, and the shadow lands on the paper. The shadow is darkest directly under the phone and softens out toward the edges, which is exactly the soft, dark blob you see.
On most phones the shutter button is on the side, but your thumb or index finger is often pressed against the glass near the lens or near the document. That finger, being much closer to the paper than the phone body, casts a sharp, small shadow — often right over the corner of the page you care about.
Shoot the document from directly above (90°) and the phone’s shadow falls right under the phone, mostly off-page. Tilt the phone to 60° or less and the shadow stretches diagonally across the whole sheet. This is why “hold the phone higher and more vertical” is the single most effective physical fix.
Ironically, using your phone’s own screen as a light source (some scanning apps let you toggle a “flash” or use the front camera) can create a *bright* spot where you expected a shadow, or a shadow from the phone body against the screen-glow. This is rarer but worth knowing if your scans look “weird” rather than simply dark in one corner.
---
A re-shoot with the right posture and lighting removes the shadow at the source and usually gives you a cleaner scan than any software filter will. Aim for these five points:
Hold the phone with both hands, elbows tucked, and the camera as close to 90° (straight down) as you can manage. The higher the phone is above the page, the smaller and less distorted the shadow becomes. If you have to tilt, tilt *away* from the light source, so the shadow falls off the edge of the page rather than across it.
Look at the shadow. It tells you where the light is coming from. If the shadow is in the bottom-right, the light is top-left. You cannot move a window, but you can:
The phone’s own body is unavoidable, but *your* fingers are not. Use the volume-up button as the shutter (most phones support this), or enable the voice shutter / timer so your hands can rest flat on the desk or off to the side. A 2-second timer also gives the image stabilizer time to settle.
If the document is on a dark desk, the shadow blends into the desk and becomes a dark pool that is hard to separate from the paper. A white sheet of paper, a light table, or even a white T-shirt under the page gives the software (and your eyes) a clean reference for “what the background should look like.”
Every phone’s native camera app has a “document” or “scan” mode (often under the swipe-up menu in the camera app, or as a separate app like Camera, Notes → Scan, or the built-in scanner in the Files app on Pixel). These modes:
If you do not have a dedicated mode, the next-best thing is to switch to manual mode and bump the exposure up by 0.3–0.7 EV *after* the meter has settled on the page, so the software has a brighter base to work with.
---
When re-scanning is not an option — the original document is gone, or you have 200 scans in a queue — software is the answer. The key is to understand *what* the software is actually doing, so you can pick the right tool and set it up correctly.
Nearly every “remove shadow” algorithm works in two stages:
Step 1 — Perspective (homography) correction.
Your phone is rarely perfectly vertical. The page in the image is a quadrilateral, not a rectangle. The software finds the four corners (you tap them, or it auto-detects them) and warps the image so the page becomes a flat, axis-aligned rectangle. This step alone often *reduces* the shadow’s visual impact, because the shadow is no longer stretched diagonally across the page — it is compressed into a corner.
Step 2 — Background estimation and subtraction.
This is the actual shadow removal. The algorithm assumes that a “perfectly lit” version of the page would have a smooth, slowly-varying background — not the sharp, local darkening that a shadow creates. It builds a model of that background (usually a large, low-resolution blur of the image, or a polynomial / plane fit to the bright regions) and divides (in a linear color space) or subtracts (in a gamma space) the real image by that model. The result: the page looks evenly lit, and the shadow — being a *local* deviation from the smooth background — is divided out.
> In short: the shadow is a local, high-frequency dip in brightness. The background model is a global, low-frequency surface. Divide one by the other and the dip disappears.
A common mistake is to crank up the overall exposure or brightness slider. That brightens the shadow *and* the already-bright parts of the page, which clips the highlights, washes out text, and leaves a gray, low-contrast result. Background modeling keeps the bright areas where they belong and only lifts the shadowed regions, which is why it produces a natural-looking scan.
| Tool | Platform | What it does | Cost |
|---|---|---|---|
| Adobe Scan (app) | iOS / Android | Auto page-detect, perspective correct, and a “clean up” shadow-removal toggle in the export step. The shadow removal is the same background-division model described above, tuned for document photography. | Free (no account required for basic use) |
| Microsoft Lens (app) | iOS / Android | Perspective correction plus a “Document” filter that flattens background shadows. Output is a clean JPEG or PDF. | Free |
| CamScanner (app) | iOS / Android | “Enhance” mode with a dedicated “remove shadow” switch. The shadow model is slightly more aggressive than Adobe’s, which is good for heavy shadows but can over-lift light pages. | Free with ads; Pro removes ads |
| VueScan (desktop) | Windows / macOS / Linux | A power-user scanning app that can feed from a phone (via ADB or by importing the JPEG) and run a “deskew + despeckle + shadow removal” pipeline. The shadow-removal filter is a true background-subtraction, not a brightness curve. | Free (no ads, no trial limits) |
| GIMP (desktop) | Windows / macOS / Linux | Not one-click, but the “Curves” tool with a shadow-midtone-highlight split, or the “Level” filter with black/white points set from the unshadowed corners, can mimic the division model manually. Steeper learning curve, but fully free and scriptable. | Free, open source |
| Online: iLovePDF / Smallpdf “Enhance Document” | Browser | Upload the JPEG, and the service runs a hosted version of the perspective + background-model pipeline. Convenient for a one-off scan; not ideal for privacy-sensitive documents. | Free with a daily limit |
Practical tip: if your shadow is in only *one* corner (the common phone-body shadow), run the perspective correction first, then apply shadow removal only on that corner region (mask it in GIMP, or use the “local” mode in Adobe Scan). This avoids over-lifting the rest of the page, which can make text look slightly gray.
---
---
Q1: The shadow removal made the text in the shadowed area look gray instead of black. What did I do wrong?
The background model over-subtracted. This happens when the shadow is very deep (the phone body fully blocking a harsh light) and you run the removal at high strength. The model “thinks” the shadowed text should be as bright as the unshadowed background, so it lifts it too far. Fix: lower the strength to 40–60 %, then apply a gentle “levels” or “curves” correction *only on the text layer* (in GIMP, duplicate the layer, boost the midtones on the duplicate, and blend it back). The text goes back to crisp black without re-lifting the background.
Q2: My shadow is not in a corner — it is a long diagonal streak across the whole page. Is that still a “phone shadow”?
Yes, if the streak follows the phone’s silhouette and the light is coming from the opposite edge. The fix is the same: perspective-correct first (which compresses the streak into a thin band near one edge), then run shadow removal with the white reference placed in the *brightest* part of the page (usually the edge opposite the streak). If the streak is actually a scan artifact from a glass scanner (a white line or a black band from a stuck flag), it is not a shadow and shadow removal will not help — you need to crop or mask it out instead.
Q3: I am using a dedicated document scanner, not my phone, and I still get shadows. What is different?
A flatbed scanner can cast a “lid shadow” if the lid is not fully closed or if the document is thicker than the platen’s flat area (a thick notebook, for example). The shadow in that case is uniform across the top or side of the page and is *not* a local shadow — it is a global lighting bias. The fix is different: do not use shadow removal. Instead, use a “white balance” or “gain” adjustment that lifts the dark side of the page to match the bright side. In VueScan, this is the “Bias” or “Level” setting; in most scanner drivers, it is called “Background” or “Base” correction.
Q4: Will shadow removal destroy the original photo, or can I undo it?
It depends on the tool. Mobile apps like Adobe Scan and CamScanner apply the filter *on top* of the original JPEG, so the raw capture is still in the app’s history and you can re-export at a different strength. Desktop tools like VueScan and GIMP are non-destructive by default: they write to a *new* file and leave the source untouched. If you are using an online service, you are uploading a copy, so your original on your phone or desktop is safe. The only case where you “lose” the original is if you overwrite the file with the processed version — so always save the cleaned output under a new file name (e.g., scan_001_clean.pdf next to scan_001.jpg).
---
*Next time you see a phone shadow creeping into a scan, remember: it is just a local dip in brightness on top of a smooth background. Straighten the page, model the background, divide it out — and the shadow is gone.*
Related reading: annual review scan reconcile paper records, batch ocr scanned pdfs, car repair records scan before selling.