Grayscale Image Converter
Convert color photos and graphics to black and white grayscale online using ITU-R BT.601 luma weighting. Adjust intensity from 0% to 100% and export PNG, JPEG, or WebP.
ITU-R BT.601 Perceptual Luminance Formula & Linear Interpolation
The conversion engine accesses the underlying 32-bit RGBA pixel array via `ctx.getImageData`. For each 4-byte pixel (R, G, B, A), the perceptual luma Y is calculated using the official ITU-R BT.601 recommendation: Y = round(0.299 * R + 0.587 * G + 0.114 * B). When an intensity weight w in [0, 1] is applied, the output channels are linearly interpolated between original chromaticity and target luma: R' = round(R * (1 - w) + Y * w), G' = round(G * (1 - w) + Y * w), and B' = round(B * (1 - w) + Y * w). The alpha channel is preserved without modification. The modified pixel buffer is written directly back to the canvas via `putImageData` for near-instant rendering.
- Perceptual accuracy: ITU-R BT.601 luma weighting (0.299R + 0.587G + 0.114B) matches true human vision.
- Variable intensity: Smooth slider from 0% (vibrant color) to 100% (pure monochrome) for creative flexibility.
- Interactive split preview: Compare original color and monochrome output side-by-side in real time.
- Alpha transparency preservation: PNG transparent backgrounds remain 100% intact without color bleeding.
- Multi-format export: Download as high-quality JPEG, lossless PNG, or lightweight WebP.
All pixel processing, color space conversions, and image compression execute entirely inside your local web browser. No files, pixels, or document metadata are ever uploaded to any external server or saved in cloud storage.
Why is ITU-R BT.601 luma weighting better than simple RGB averaging?
The human eye has far more green-sensitive (M-cone) and red-sensitive (L-cone) photoreceptors than blue-sensitive (S-cone) receptors. A naive average of (R + G + B) / 3 treats blue equally, making bright blues look blindingly white and vivid greens look dark. BT.601 assigns 58.7% weight to green, 29.9% to red, and only 11.4% to blue, producing natural, film-like tonal depth.
What is the difference between 8-bit/24-bit grayscale and 1-bit monochrome dithering?
Grayscale uses 256 levels of gray (ranging from 0 = pure black to 255 = pure white), allowing smooth photographic gradients and subtle shadow transitions. In contrast, 1-bit monochrome dithering (like newspaper halftoning or Floyd-Steinberg error diffusion) uses only pure black and pure white dots without any mid-gray tones.
Does converting to grayscale reduce the file size of my image?
When exporting to JPEG, grayscale images are typically 15% to 30% smaller than full-color equivalents because the chroma color channels (Cb and Cr) are flattened, allowing the compression algorithm to focus exclusively on luminance (Y).
Are transparent areas in PNG images preserved during conversion?
Yes. The alpha channel (A) is completely untouched during pixel processing. If you upload a transparent PNG logo or cut-out subject, the transparent background remains 100% transparent in the exported PNG or WebP.
Can I reverse the grayscale conversion back to the original color later?
No. Converting to grayscale is an irreversible lossy process regarding chrominance data: color wavelength information is mathematically discarded when mapping to luminance. Always retain your original color files before saving.