Grayscale Image

Convert a JPEG, PNG, WebP, AVIF, GIF, BMP, ICO, or HEIC image to grayscale with a luminance formula. JPEG, PNG, and WebP stay in that format.

Use this tool

Drop a file here, or use the picker. The file type is checked from its contents.

Result

The result appears in this panel after you run the tool.

About this tool

The page draws the image, reads the pixels, and replaces red, green, and blue with one lightness value: 0.2126 red + 0.7152 green + 0.0722 blue, rounded to a whole number. That is the Rec. 709 luminance mix. Alpha is not changed, so a transparent PNG stays transparent where it was.

This is not a desaturation slider and it does not offer a color filter. Running it twice does not change the pixels again in a useful way, and the chain will not suggest this tool again after it has been used.

Large images use a lot of memory because every pixel is read on the page. The 250 MB and 40 million pixel limits are the same guards as the converter. The page will not shrink the image to get under them.

You can compress, crop, or resize the grayscale result next. A WebP conversion stays in the other-format list when the current file is a JPEG or PNG.

How to use it

  1. Choose a JPEG, PNG, WebP, AVIF, GIF, BMP, ICO, or HEIC image.
  2. Make it grayscale. Each pixel's lightness follows the Rec. 709 weights.
  3. Download the image. JPEG, PNG, and WebP match the input. AVIF matches only when this browser can encode it.

Limitations

Rec. 709 weights, alpha left as it was

One lightness for three channels

Each pixel’s red, green, and blue are replaced by a single rounded lightness: 0.2126 times red, plus 0.7152 times green, plus 0.0722 times blue. That is Rec. 709 luma, so green dominates and blue contributes little. It is not the average of the three channels, and it is not a saturation slider parked at zero. Alpha is copied through unchanged. The canvas size does not change. There is no amount field, because the mapping is total: after it runs, red, green, and blue are equal on every pixel. A later saturation tool has nothing colorful left to push, apart from whatever a lossy encode perturbs.

The source bitmap is one frame. Animated GIF and animated WebP do not become grayscale animations. ICO input is the largest decodable image, and the output ICO wraps that one grayscale image. HEIC input is the decoded primary bitmap.

How the gray pixels are stored

The gray samples are the edit. The container is a preserve-intent encode of whatever MIME arrived. The quality range opens at 0.92. It applies when the written file is JPEG or WebP. It applies to AVIF only after a check that two AVIF qualities change the encoded size. Gray output skips it for PNG luma, GIF luma, BMP luma, ICO luma, and HEIC luma written as PNG. Those controls stay disabled. A browser that strictly cannot emit AVIF stores the gray picture as PNG instead of claiming an AVIF download.

JPEG gray is still a color JPEG with three equal channels, not a single-channel grayscale JPEG marker. BMP gray is 24-bit with the same triple, and any partial alpha was blended onto white first. GIF gray is a palette that happens to hold grays, capped at 256 colors, which is plenty for 256 gray levels but still a new palette.

Lossy gray, then another save

Turning a JPEG gray and then saving it again at 0.92 adds a second quantization on top of the luma rounding. Fine color noise disappears in the luma step. Block edges can still worsen on the next JPEG write. If you might want the color photo later, keep the original and treat this download as the gray derivative. A PNG grayscale result holds the rounded luma values without a quality argument, so a second PNG save does not compound DCT loss.

Privacy

Your file is processed in your browser and is not uploaded to UtilChain. The file name and pixel values are not sent to analytics.