Harden PNG Edges

Convert semi-transparent edge pixels to fully opaque or fully transparent.

Drop an image here

PNG, JPG, WebP, GIF or BMP. You can also paste an image.

No result yet

Options

How to use

  1. 1

    Upload a PNG with soft or anti-aliased edges.

  2. 2

    Adjust the Alpha Threshold slider. Pixels at or above this value become fully opaque.

  3. 3

    Pixels below the threshold become fully transparent.

  4. 4

    Download the hardened image.

Example

Before640 × 640

The example input

After640 × 640

The example result
Harden PNG Edges on a transparent logo, with the default settings.

Frequently asked questions

What threshold value should I use?

The default of 128 works well for most images. Lower values keep more pixels opaque; higher values remove more.

Will this affect the RGB color values?

No. Only the alpha channel is changed. All color data stays intact.

About this tool

Harden PNG Edges thresholds the alpha channel of a PNG. Every pixel with alpha at or above the threshold becomes fully opaque (255). Every pixel below the threshold becomes fully transparent (0). This removes anti-aliasing and produces crisp, hard edges. All processing runs locally in your browser.