Image Threshold Tips: Settings and Mistakes
The biggest thresholding mistakes are trying to binarize an unevenly lit image, pushing the cutoff so far that text breaks up or fills in, and expecting threshold to preserve fine detail it simply cannot keep. Even out the lighting first, tune the slider to keep strokes solid, and accept that thresholding is about bold two-tone results, not subtle gradation.
A good threshold conversion looks clean and deliberate. These tips help you get there and avoid the traps that produce muddy, patchy output.
Best practices
- Fix lighting before thresholding. A single global cutoff cannot cope with a scan that is bright on one side and dark on the other. Adjust brightness and contrast first so the whole image sits in a similar tonal range.
- Tune for stroke integrity. When cleaning text, find the cutoff where letters are fully solid but not bleeding into each other. A slight move either way is the difference between crisp and broken.
- Increase contrast first for photos. Boosting contrast before thresholding gives the slider cleaner edges to split on, producing a more graphic, poster-like result.
- Use the live preview actively. Sweep the slider across its range and watch where detail appears and disappears; the sweet spot is usually obvious once you have seen both extremes.
- Know when to stop. Threshold discards all grays. If you need shading, threshold is the wrong tool — reach for grayscale or posterize instead.
Common mistakes and fixes
| Mistake | Result | Fix |
|---|---|---|
| Uneven lighting | One area all black, another all white | Balance brightness/contrast first |
| Cutoff too high | Text fills in and blobs together | Lower the threshold |
| Cutoff too low | Thin strokes vanish | Raise the threshold |
| Expecting shading | Flat, detail-free result | Use grayscale or posterize instead |
| Low-contrast source | Mushy, ambiguous split | Increase contrast before thresholding |
Settings guidance by goal
Document scans: aim for a cutoff that leaves paper pure white and ink solid black. Slightly favor keeping thin strokes over whitening the background, since faint text is harder to recover than a bit of speckle.
Line art and stencils: push contrast up first, then threshold to get clean, cuttable shapes with unbroken outlines. Test both a slightly lower and slightly higher cutoff and compare the edges.
Graphic photo effect: there is no wrong answer — slide until the composition reads well as pure black and white. This is a creative choice rather than a correctness one.
Troubleshooting patchy output
If parts of the image are entirely black or white no matter where you set the slider, the source lighting is uneven. No single threshold can fix that; return to a brightness and contrast pass to flatten the lighting, then threshold again.
Try the Image Threshold — free and 100% in your browser.
FAQ
Why is half my scan black and the other half white?
The scan is unevenly lit, so a single global threshold pushes each side to a different extreme. Even out the lighting with a brightness and contrast adjustment before thresholding, and the split becomes consistent.
How do I keep thin text from disappearing?
Raise the threshold slightly so more pixels count as black, which thickens thin strokes. Balance it against the background staying clean; nudge in small steps and watch the preview.
Should I increase contrast before thresholding a photo?
Yes. Higher contrast gives the threshold cleaner edges to divide on, so the two-tone result looks crisper and more intentional rather than mushy.
Can thresholding preserve any shading?
No. By definition it removes all grays and leaves only black and white. If you need to keep shading, use a grayscale or posterize tool instead.
Related free tools
- Brightness & Contrast Editor — prep uneven lighting before thresholding.
- Grayscale Image Filter — keep gray tones when threshold is too harsh.
- Posterize Image — reduce to a few tones instead of two.
- Photo to Sketch — turn a photo into line work.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS and custom software. If your team needs bespoke tooling or a finished product, see what ByteVancer offers.
Recommended reading
Image Threshold Use Cases and Real Examples
Real image threshold use cases with examples: cleaning document scans, making stencils, prepping line art, laser-cut files and bold graphic art.
How to Convert an Image to Pure Black and White
Learn how to convert an image to pure black and white online using an adjustable threshold slider, free and 100% in your browser with no uploads.
How to Convert an Image to Black and White Online
Convert any photo to grayscale online with an adjustable intensity slider. Make images black and white or partially desaturated, free and private in-browser.
Yes or No Generator: Real Use Cases and Examples
From beating decision paralysis to games and classrooms, see real use cases and examples for a random yes or no generator.