You can handle this directly in your browser with our free pdf to images tool — nothing gets uploaded.
If you have ever tried to scan a paper document only to see a dull yellow, gray, or uneven background instead of a clean white, you are not alone. This is one of the most common problems in digital archiving, and it is the reason many scanned documents look unprofessional and even harder to read. The good news is that a gray or yellowed background is not a permanent problem. With the right tools and techniques, you can turn any scanned document background into a crisp, pure white in just a few minutes. In this guide, we will explore why backgrounds turn gray or yellow in the first place, and then walk through practical, step-by-step methods to fix it — whether you are using a flatbed scanner, a smartphone camera, or a free online tool. By the end, you will have a reliable checklist you can apply every time you digitize a document.
Before we jump into the fix, it helps to understand the root cause. A document background should appear white because the paper itself reflects light uniformly. In practice, several factors break that uniformity:
Once you identify which factor is affecting your scan, you can choose the fastest path to a pure white background — either by re-capturing the document under better conditions, or by applying image processing that corrects the existing file.
The most effective way to get a white background is to prevent the problem at the source. If you have the original paper, re-capture the document using these habits:
If the document is a one-of-a-kind item and you cannot easily re-scan it, move to the image-processing methods below.
For documents that contain only black text on a light background — such as printed pages, memos, or handwritten notes — the most effective tool is a threshold. A threshold converts every pixel to either pure black or pure white based on a brightness cutoff. Anything brighter than the threshold becomes white; anything darker becomes black. This removes gray haze and uneven lighting in one step.
In most image editors, the steps look like this:
Thresholding works best when the contrast between text and background is strong. If your scan has a dark or heavily shadowed background, apply a mild brightness/contrast boost before thresholding so the cutoff sits in a sensible range.
When the document contains images, colors, or halftones — such as photographs, colored charts, or shaded forms — a hard threshold will damage the content. In those cases, use curves or levels to lift the background to white while preserving the tonal range of the rest of the image.
A practical curve workflow:
Levels work in the same spirit. Set the white input level so that the brightest background pixels map to 255, then nudge the black and middle input levels to protect the text contrast. The result is a background that reads as clean white even under uneven lighting, without the harsh binary look of a threshold.
If you scanned a document on a phone or camera, the white balance is likely the main offender. Most editing software includes an automatic white-balance tool that analyzes the image and neutralizes the color cast. Apply it before any other adjustment. For more control, use a white-point tool: click on a pixel that should be white — a clean corner of the paper, for instance — and the software will shift the entire image so that pixel is pure white.
For repeated scans, dedicated background-subtraction tools go further. They build a model of the paper's tone by sampling large empty regions of the page, then divide the image by that model, leaving only the ink. This works especially well for:
If you do not want to install software, many free online tools — including NoFilePDF — can apply automatic background whitening to a scanned image in the browser. They are convenient for quick fixes, but for a complete archive, a desktop workflow with curves or threshold gives you more control.
If you have dozens or hundreds of scanned pages, doing the correction one at a time is not practical. Look for batch tools that apply the same threshold or curve to an entire folder at once. A simple batch workflow:
For phone scans, some apps can batch-correct and even auto-crop pages, saving you the trouble of aligning each page by hand.
Running through this checklist every time will keep your scans consistent and professional:
How do I make a scanned PDF background white without losing text?
Apply a threshold or curve correction on the image before converting to PDF. If the PDF is already created, use an editor that can open and edit individual pages, correct the image, and re-export the PDF. Keep the correction subtle enough that the text stays solid.
What is the best threshold value for a gray scan?
There is no single universal value, but a good starting point is the midpoint between the text's darkest pixels and the background's lightest pixels. In most editors, you can read the histogram and place the cutoff where the background histogram ends. Adjust from there.
Can I fix a yellowed old document background with software only?
Yes, but with limits. Software can lift the yellow tint to white and remove haze, but it cannot recover paper fibers or stains that have physically changed. For severely stained pages, a combination of white-balance correction, curves, and a gentle despeckle filter will get the closest result without a full re-scan.
Will thresholding make my photos and charts look worse?
It will, because thresholding removes all intermediate tones. Use threshold only for pure text documents. For mixed content, use curves or levels to preserve the tonal range while still whitening the background.
How often should I clean my scanner glass?
At least once a month if you scan daily, and before any important batch. A smudge on the glass is one of the most common reasons a background looks uneven even when the paper is clean. Wipe it with a soft, lint-free cloth and a glass-safe cleaner, and let it dry completely before scanning.
A pure white background is not just a cosmetic upgrade — it makes documents easier to read, easier to search, and more professional in any shared context. Whether your scans come from a phone, a home flatbed, or a large office scanner, the fixes are the same: identify the cause, correct the white balance, and apply a threshold or curve to lift the background to white. Use the checklist above as a habit, and every document you digitize will come out clean, consistent, and ready for the archive.
Related reading: annual review scan reconcile paper records, batch ocr scanned pdfs, car repair records scan before selling.
Why does my scanned PDF still show gray spots after applying the white background tool?
Gray spots usually result from low scan resolution or uneven lighting during capture. Before uploading, ensure your source image is at least 300 DPI. If the tool cannot remove residue, try adjusting the 'Threshold' or 'Sensitivity' slider to a higher value to force more pixels to pure white. This forces a harder binary conversion.
Can I process multiple scanned pages in a single file simultaneously?
Yes. The browser tool accepts multi-page PDF files or separate image files (JPG, PNG) uploaded together. All selected pages are processed using the same brightness and contrast settings. To save time, batch upload all your scanned documents at once. The tool will strip backgrounds from every page, maintaining the original page order in the final downloaded PDF.
Will making the background pure white affect the legibility of faint text?
It can. Increasing the threshold to remove all gray noise may also fade low-contrast or light-colored text. To prevent this, adjust the 'Text Preservation' setting to 'High' if your document contains small fonts. Alternatively, perform the white background conversion, then use the separate 'Contrast Boost' feature to darken the remaining text, ensuring it remains sharp and readable against the clean white surface.
Is my scanned document uploaded to a server for processing?
No. This tool processes files entirely within your browser using client-side JavaScript. Your PDF or images never leave your device, so there is no upload time or privacy risk. This makes it suitable for handling confidential documents. After processing, the final file is generated locally, and you download it directly to your computer without any intermediary server storage.