Convert Png To Two Colors Online
Convert Png To Two Colors online. All processing happens in your browser.
Drop image here or click to upload
Max 50MB • 100% Private
Drop in a PNG and crush it down to just two colors — pick your foreground, pick your background, set the threshold, done. Works for screen print prep, vinyl cuts, duotone graphics, or cleaning up a blurry QR code photo. And everything runs in your browser. Nothing gets uploaded.
How It Works
Each pixel gets converted to grayscale first. Then the tool compares that gray value against your threshold — pixels above it become one color, pixels below become the other. You control the cutoff point, so you can fine-tune how much detail survives the conversion. The result is a clean two-tone image with no gradients or antialiasing artifacts.
Examples
Logo Prep for Single-Color Printing
A client sends a full-color PNG logo that needs to go on a one-color stamp. You need solid black on white — nothing in between.
Full-color logo PNG
(gradients, shadows, multiple hues)
Black (#000000) + White (#FFFFFF)
Threshold: 128 — clean edges
T-Shirt Screen Print with Brand Colors
You're preparing artwork for a two-color screen print. The design needs to be navy blue on cream — no halftones, no gradients.
Photographic artwork PNG
Colors: navy (#1B2A4A), cream (#F5F0E1)
Two-tone image: navy + cream
Threshold: 100 — preserves more detail in dark areas
QR Code Cleanup from a Photo
Somebody photographed a QR code off a poster. The image has uneven lighting and gray tones that confuse scanners. Converting to strict black and white fixes scannability.
QR code photo (uneven lighting,
gray shadows, 1200×1200px)
Clean black + white QR code
Threshold: 140 — scanner reads it first try
Who Uses This
Prepping artwork for screen printing, laser engraving, or vinyl cutting where only two ink colors are available.
Converting photos into bold two-tone designs for t-shirts, stickers, and posters.
Generating 1-bit sprites, favicon fallbacks, or high-contrast UI icons from full-color source files.
Making eye-catching duotone social media graphics without needing Photoshop.
Common Mistakes
If the threshold is at 200, nearly everything becomes the background color and you lose most of the image. Too low, and the foreground floods the entire frame. Start around 128 (the midpoint) and adjust from there.
Two-color conversion amplifies every flaw. A blurry 200×200 photo turns into a blocky mess — jagged edges, lost detail, unrecognizable shapes. Use the highest resolution source you can find.
Choosing dark gray and black as your two colors? The result will look like a single muddy tone. Two-color images need strong contrast between the foreground and background to read clearly.
Technical Details
- Processing: 100% client-side — images never leave your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Input Formats: PNG, JPG, GIF, WebP, BMP
- Output Format: PNG (lossless)
- Max Resolution: Limited by browser memory — most machines handle up to 8000×8000px
Frequently Asked Questions
How do I convert a PNG to only two colors?
Upload your PNG, choose the two colors you want, and set a threshold value. The tool converts each pixel to grayscale and maps it to whichever of your two colors is closer based on that threshold. Click Process and download the result.
What threshold value should I use?
128 is a solid starting point — it splits the grayscale range right down the middle. If your image is mostly dark, try a lower threshold like 80–100 to keep more detail. For bright images, bump it up to 150–180. There is no single right answer; it depends on your source image.
Can I pick custom colors instead of black and white?
Yes. You can set any two colors using the color pickers — hex values, brand colors, whatever you need. The tool doesn't limit you to black and white.
Does converting to two colors reduce file size?
Usually, yes. A two-color PNG compresses much better than a full-color one because there are only two unique pixel values. A 2MB photo might drop to 200KB or less after conversion. The exact savings depend on image dimensions and how the two colors are distributed.
Is my image uploaded to a server?
No. The entire conversion happens in your browser using the HTML5 Canvas API. Your image stays on your device the whole time. Nothing is sent over the network — you could even run this tool offline once the page loads.