If you have ever opened a scanned file and seen white text floating on a black or dark grey page, you are not alone. This issue is one of the most common problems people face when digitizing paper documents. It can make text hard to read, increase file size unnecessarily, and cause compatibility issues with printers and PDF viewers. In this article, we will walk through why this happens, the difference between black and grey backgrounds, and practical methods to fix or prevent the problem in both single scans and large batches.
You can handle this directly in your browser with our free pdf to images tool — nothing gets uploaded.
Several settings and physical conditions can turn a normal scan into a black page with white text. Understanding the cause helps you choose the right fix.
Flatbed scanners read light that reflects off the document. If the scanner glass has fingerprints, dust, or residue, or if the internal lighting is uneven, the scanner may interpret large areas of the page as dark. The result is a scan where the background appears black or very dark grey instead of white.
When you use a phone camera to scan a document in dim lighting and the flash is off, the camera may underexpose the image. Because the sensor captures not enough light, the paper looks dark or black. This is especially common when scanning at night or in rooms with mixed lighting.
Some scanner software and phone scanner apps apply automatic contrast or brightness correction. If the algorithm is too aggressive, it can darken the background while trying to make text pop. This often happens when the software mistakenly thinks the document is underexposed and pushes the levels in the wrong direction.
If you scan a thin sheet of paper that has ink on both sides, the scanner may pick up the dark ink from the back side. This shows up as faint grey or black smudges on the front. In severe cases, especially with very thin paper or heavy ink, the whole background can look darkened.
Phone cameras and some color scanners rely on white balance to decide what should be "white." If the lighting is very yellow or blue, or if the white balance is set incorrectly, the paper may not render as white. Depending on the color cast, the background can end up grey, black, or a mix of both.
A pure black background is actually easier to correct than a grey one. Black means the background pixels are close to 0 in all color channels. You can raise the black point or apply a simple threshold, and the background will turn white quickly.
Grey is trickier because the background is not uniformly black. It may range from light grey to medium grey, and it often has slight variations caused by uneven lighting, shadows, or paper texture. When you try to brighten a grey background, you risk also brightening light grey handwriting, faded pencil marks, or subtle ink that you actually want to keep. In other words, the gap between "background" and "ink" is smaller with grey, so the correction has to be more careful.
The cleanest solution is often to re-scan the document instead of cleaning up a bad scan.
On flatbed scanners, select the "auto" or "auto-exposure" mode if available. For phone-based scans, place a clean white sheet of paper on the scanning surface and let the app or camera meter against it before you place the real document. Many scanner apps have a "white balance" or "calibrate with white paper" feature. Using it removes much of the guesswork.
If using a phone camera, use a well-lit area with even, neutral lighting. Avoid strong shadows from your hand or from the phone itself. Turn off the flash if the paper is glossy, because flash can create hotspots and reflections that confuse the exposure system. Instead, rely on ambient light that is bright and consistent.
For thin paper, look at the document against a bright window or light. If you can see ink through the back, expect some bleed-through. You can reduce it by placing a sheet of black paper or a dark folder behind the document during scanning, which blocks light from passing through and reduces the visibility of the back-side ink.
If re-scanning is not possible, you can clean up the existing scan in an image editor or PDF tool.
Open the image in an editor that supports levels or curves. Raise the black point so that the darkest background pixels become white or near-white. Then, fine-tune the midtones so the text stays dark and readable. For grey backgrounds, this step requires care: if the background is only light grey, pushing the black point too far can erase faint handwriting or pencil marks.
Thresholding converts an image to pure black and white. For crisp black text on a white page, this is a very effective cleanup method. In most editors, you can set a threshold value around 50 percent and adjust until the background disappears. However, thresholding is destructive. It is best used on typed documents or dark handwriting, not on photos, light pencil marks, or forms with grey checkboxes.
Many phone scanner apps include a "white background" or "document mode" filter that automatically removes background color and enhances text. These filters usually combine levels, contrast, and edge detection. They work well for simple cases, but they can over-sharpen or erase details if the original scan is already poor.
If you have a multi-page PDF, do not fix only the first page. Most editors and PDF tools let you apply the same adjustment to every page at once. In image editors, use batch processing to run the same levels, curves, or threshold step on a folder of page images. In PDF tools, look for a "flatten" or "cleanup" option that can be applied to the entire document. This saves time and keeps every page consistent.
It is tempting to crank up the contrast until the background looks pure white. But when you do this on a scan that contains light-grey handwriting, faded pencil, or older printed text, those details can disappear. Always check the final result with the original open so you can confirm that no meaningful content has been lost.
If the scan contains a photograph, or if the text is not solid black, thresholding can create dithering artifacts. These appear as small black-and-white dots or patches instead of smooth tones. In that case, avoid full thresholding. Use gentle levels adjustment instead, or save the file as a grey-scale PDF if you need to preserve subtle tones.
A common oversight is fixing the first page and assuming the rest will follow. Each page in a PDF may have its own background tone, especially if the original scans were taken at different times or lighting conditions. Apply the same correction to every page, or use a batch tool to make sure no page is left behind.
Sometimes the original scan is too damaged to rescue with software. If the background is very dark, the corners are shadowed because the phone was held at an angle, or the paper had strong bleed-through, re-scanning will usually give a better result than trying to clean up the file. Shadows are especially difficult to fix in post-processing because they are not a flat color. They have gradients that interact with nearby text, and removing them without distorting the ink is hard. If you notice uneven dark corners, re-scan the page with the phone held flat and with even lighting.
Most often, the scanner is underexposed or the glass is dirty. Try running a white paper calibration, cleaning the scanner glass, and enabling auto-exposure. If the issue persists with different papers, the scanner's light source may be failing and might need servicing.
Yes. Convert the PDF pages to images, adjust levels or curves to make the background white, then re-assemble the images into a new PDF. This works well for typed documents. For photos or faint pencil, use gentler adjustments to avoid losing detail.
Scan in even, bright lighting. Use a white sheet of paper for calibration when available. Keep the scanner glass clean. For phone scans, hold the phone flat over the document rather than at an angle to avoid corner shadows. Check the preview before saving and make small lighting or exposure adjustments if the background looks dark.
A black or grey background in a scanned document is usually caused by exposure, lighting, scanner settings, or paper bleed-through. The best fix depends on the cause: re-scanning with correct settings is ideal for very dark or shadowed scans, while post-processing with levels, curves, thresholding, or white-background filters works well for less severe cases. Watch out for common mistakes such as over-correcting contrast, applying threshold to photos, or cleaning only one page of a multi-page PDF. With the right combination of careful scanning and targeted cleanup, you can turn a black-background scan into a clean, readable white document every time.