Tools

Home
Base64 Encode/DecodeString to HexHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Convert Png To Two Colors Online

Convert Png To Two Colors online. All processing happens in your browser.

Your files never leave your browser
No image loaded
INPUT
🖼

Drop image here or click to upload

Max 50MB • 100% Private

OUTPUT
Ready

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

Upload PNG
→
Threshold Analysis
→
Two-Color Output

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.

INPUT
Full-color logo PNG (gradients, shadows, multiple hues)
OUTPUT
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.

INPUT
Photographic artwork PNG Colors: navy (#1B2A4A), cream (#F5F0E1)
OUTPUT
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.

INPUT
QR code photo (uneven lighting, gray shadows, 1200×1200px)
OUTPUT
Clean black + white QR code Threshold: 140 — scanner reads it first try

Who Uses This

🎨 Graphic Designers

Prepping artwork for screen printing, laser engraving, or vinyl cutting where only two ink colors are available.

👕 Merch Creators

Converting photos into bold two-tone designs for t-shirts, stickers, and posters.

💻 Developers

Generating 1-bit sprites, favicon fallbacks, or high-contrast UI icons from full-color source files.

📱 Content Creators

Making eye-catching duotone social media graphics without needing Photoshop.

Common Mistakes

Setting the threshold too high or too low

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.

Using a low-resolution source image

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.

Picking two colors that are too similar

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

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.

Share: