Change Image To Binary Art
Upload an image and convert it to black and white binary art. Adjust the brightness threshold to control the result.
Threshold
Options
Original
Binary Art
Drop an image, drag the threshold slider, and every pixel flips to either pure black or pure white based on where you set the cutoff. Add the invert toggle if the contrast lands the wrong way, then download the PNG.
And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool reads each pixel’s brightness (a value from 0 to 255). If a pixel’s brightness is above your threshold, it becomes white. Below it, black. That single comparison across every pixel is what creates the binary look. The Canvas API handles this in milliseconds, even for large photos.
Examples
Portrait turned into a stencil
You want a bold stencil-style version of a headshot for a poster or t-shirt design.
Color headshot photo (1200×1600 JPEG)
Black-and-white stencil PNG at threshold 128 — facial features pop, background drops to solid white
QR code cleanup
A scanned QR code has gray smudges that stop it from reading properly. Binary conversion cleans it up fast.
Scanned QR code with gray artifacts (PNG, 400×400)
Clean black-and-white QR code — every module is crisp, no gray noise
Architectural sketch from a photo
You shot a building exterior and want it to look like an ink drawing for a presentation. Setting a higher threshold pulls out just the structural edges and shadows.
Exterior building photo (3000×2000 JPEG, overcast lighting)
High-contrast binary image at threshold 170 — window frames, roof lines, and doorways rendered as solid black shapes on white
Who Uses This
Creating stencil art, silhouettes, or high-contrast graphics for prints and merch.
Generating dramatic black-and-white versions of portraits or street photography.
Preprocessing images for OCR, barcode scanning, or machine vision pipelines.
Quick visual for a computer science or digital media assignment on image thresholding.
Common Mistakes
A threshold under 50 means almost every pixel is "brighter" than the cutoff, so the entire image goes white. Start around 128 (the midpoint) and adjust from there.
Sometimes the subject ends up white-on-black when you wanted black-on-white. Hit the invert toggle instead of trying to recalculate the threshold — it is literally one click.
If your original photo is flat and washed out, no threshold value will produce clean binary art. Bump the contrast in another tool first, then convert here. The sharper the source, the better the output.
Technical Details
- Processing: 100% client-side via HTML5 Canvas API
- Browser Support: Chrome, Firefox, Safari, Edge
- Max File Size: Limited only by your device’s memory
- Supported Formats: JPEG, PNG, WebP, BMP, GIF (first frame)
- Output Format: PNG
Frequently Asked Questions
What is binary art?
Binary art is an image made up of only two colors — usually black and white. Every pixel is one or the other, with no shades of gray. It gives photos a bold, graphic, almost woodcut-style look.
What threshold value should I use?
128 is a good starting point — it is the exact midpoint of the 0-255 brightness range. For darker, moodier results, push it higher (150-200). For lighter results with more white space, pull it lower (80-110). There’s no single right answer; it depends on your photo.
Does the invert button change the threshold?
No. Invert just swaps the colors after thresholding. Pixels that were black become white and vice versa. The threshold cutoff stays exactly where you set it.
Can I convert a transparent PNG to binary?
Yes. Transparent areas are treated as white (maximum brightness) during thresholding. If you want them to go black instead, use the invert toggle after converting.
Is my image uploaded to any server?
No. Everything happens in your browser using the Canvas API. Your image is never sent anywhere. You can even disconnect from the internet after the page loads and the tool will still work.