User Rating 0.0 β˜…β˜…β˜…β˜…β˜…
Total Usage 0 times
Drop image here or click to browse PNG, JPG, BMP, WebP, GIF β€’ Max 50 MB
Is this tool helpful?

Your feedback helps us improve.

β˜… β˜… β˜… β˜… β˜…

About

Grayscale conversion is not a single operation. At least six distinct algorithms exist, each producing visibly different results from the same source bitmap. The naΓ―ve approach - averaging R, G, and B channels - ignores the human eye's non-uniform spectral sensitivity, which peaks near 555 nm (green). The ITU-R BT.709 luminosity formula compensates for this by weighting green at 0.7152, producing perceptually accurate tonal mapping. Choosing the wrong method can flatten contrast in skin tones, destroy shadow detail in landscape photography, or produce banding artifacts in medical imaging.

This tool applies the selected algorithm directly to raw pixel data via the Canvas API. No server upload occurs. Processing is local, lossless until final export, and supports images up to 50 MB. Note: conversion assumes sRGB input. Images in Adobe RGB or ProPhoto RGB will exhibit slight tonal shifts because no color profile transformation is applied. For print workflows requiring ICC profile fidelity, a desktop application remains the correct choice.

bitmap to grayscale image grayscale converter convert image to black and white grayscale filter desaturate image online luminosity converter

Formulas

The general weighted grayscale conversion maps each pixel's RGB triplet to a single luminance value Y:

Y = wr β‹… R + wg β‹… G + wb β‹… B

where R, G, B ∈ [0, 255] are the source channel values, and wr + wg + wb = 1. The output pixel becomes (Y, Y, Y, A) where A is the original alpha value preserved unchanged.

For the ITU-R BT.709 standard (used in sRGB and HDTV):

Y709 = 0.2126 β‹… R + 0.7152 β‹… G + 0.0722 β‹… B

For the desaturation method, the lightness channel from the HSL color model is extracted:

Ydesat = max(R, G, B) + min(R, G, B)2

Variable legend: Y = output grayscale intensity. R, G, B = red, green, blue channel values (0 - 255). wr, wg, wb = channel weight coefficients. A = alpha (transparency) channel, unmodified.

Reference Data

AlgorithmFormulaBest ForPerceptual AccuracySpeed
Luminosity (BT.709)0.2126R + 0.7152G + 0.0722BPhotography, UI designHighFast
Average(R + G + B) Γ· 3Quick preview, pixel artLowFast
Desaturation (Lightness)(max(R,G,B) + min(R,G,B)) Γ· 2Artistic effects, illustrationMediumFast
BT.601 (NTSC/PAL)0.299R + 0.587G + 0.114BVideo, legacy broadcastMedium-HighFast
Red ChannelREmphasizing warm tones, skinLowFastest
Green ChannelGLandscapes, foliage detailMediumFastest
Blue ChannelBSky, water, atmospheric hazeLowFastest
Custom WeightswrR + wgG + wbBFine-tuned creative controlUser-definedFast
Gamma-Corrected LuminosityLinear: (cΓ·255)2.2Physically accurate renderingHighestSlower
RMS (Root Mean Square)√(R2 + G2 + B2) ÷ 3Signal processingMediumMedium
sRGB LuminanceBT.709 with linearizationWeb-standard workflowsHighMedium
Human Eye Peak (Ξ»)555 nm (photopic)Reference wavelength - -
HDTV Rec. 20200.2627R + 0.6780G + 0.0593BUltra HD / HDR contentHighFast

Frequently Asked Questions

The human eye contains roughly 64% long-wavelength (red-sensitive) cones, 32% medium-wavelength (green-sensitive) cones, and 2% short-wavelength (blue-sensitive) cones. However, the green cones contribute disproportionately to perceived brightness due to the photopic luminosity function peaking at 555 nm. BT.709 weights green at 0.7152 to match this biological reality. Simple averaging assigns equal weight (0.333 each), which overvalues blue and undervalues green, producing images that appear darker in foliage areas and unnaturally bright in sky regions.
BT.601 (weights: 0.299R + 0.587G + 0.114B) was developed for NTSC and PAL television systems and is still the standard in SD video workflows. Use BT.601 when processing video footage captured or intended for standard-definition broadcast. For HD and modern web content, BT.709 is the correct standard. The visible difference is subtle: BT.601 produces slightly brighter reds and warmer skin tones compared to BT.709.
The mathematical operations are identical. Photoshop's Image > Adjustments > Desaturate uses the same per-pixel channel arithmetic. The difference lies in color profile handling: Photoshop can linearize sRGB gamma before conversion (resulting in physically accurate luminance), while this tool operates on gamma-encoded values directly. For web-resolution images the difference is negligible. For prepress or HDR workflows, linearization matters.
The alpha channel is preserved exactly as-is. Only the R, G, and B channels are modified. If your source PNG has transparent regions, they remain transparent in the output. The grayscale value is computed from the visible color channels only. This is important for icons, logos, and UI assets where transparency must be maintained.
Human skin, regardless of ethnicity, reflects significantly more red light than green or blue. When you extract only the red channel, skin areas map to high grayscale values (bright), while blue sky or green foliage maps to low values (dark). Portrait photographers in the film era used red filters on black-and-white film for exactly this effect. Conversely, the Blue Channel method darkens skin and emphasizes atmospheric perspective.
No. Grayscale conversion is a lossy, irreversible operation. Three channels of information (R, G, B) are collapsed into one (Y). The original color data is permanently discarded. Colorization of grayscale images requires machine learning inference or manual painting. Always keep your original color file.
The tool accepts files up to 50 MB. Processing time depends on pixel count rather than file size. A 4000Γ—3000 image (12 megapixels) processes in under 2 seconds on modern hardware. Images above 2 megapixels use chunked processing with a progress bar to prevent browser tab freezes. Canvas memory limits vary by browser: Chrome supports approximately 268 megapixels, Firefox around 124 megapixels.