Grayscale image converter
Create a grayscale PNG using a weighted RGB brightness approximation.
Input
Tip: press Ctrl + Enter to run
About this tool
Converting to grayscale is useful for printing on black-and-white printers, for a classic photo look, for checking contrast in a design, and for preparing scans and documents. Simply averaging red, green and blue gives a flat, unnatural result because the eye is much more sensitive to green than to blue.
This tool uses the standard luminance weights from the sRGB/Rec. 709 colour standard, so bright greens stay light and deep blues become dark, as they appear to the eye. The result is saved as a lossless PNG.
Grayscale versions are also a quick accessibility check: if two important colours in a chart or logo turn into the same gray, people with colour-vision deficiencies may struggle to tell them apart too.
How to use it
- Choose a colour image.
- Run it.
- Download the grayscale PNG.
How the calculation works
For each pixel, gray = 0.2126 × R + 0.7152 × G + 0.0722 × B (rounded), and red, green and blue are all set to that value. Transparency is kept.
gray = 0.2126R + 0.7152G + 0.0722BWorked example
A teacher wants a colour map to print clearly on the school’s black-and-white printer. Converted to grayscale, the green parks stay light and the blue lake becomes a darker gray, so areas remain distinguishable: a plain average would have made them almost the same shade.
Sample input and result
RGB → gray / gris / grau
Limitations
- Fixed luminance formula; no channel mixer or tint.
- Output is PNG only.
- Very large images are limited by device memory.
Last updated:
Frequently asked questions
Is grayscale the same as black and white?
Grayscale has 256 shades of gray; pure black-and-white (1-bit) has only two.
Can I adjust contrast?
Not here; use the photo enhancer first if the image is flat.
Is the original changed?
No. A new file is created and nothing is uploaded.
Troubleshooting
The result looks washed out.
The original had low contrast; enhance it before converting.
File size increased.
PNG is lossless; convert to JPG if size matters.
Transparent areas look black in a viewer.
They are still transparent; some viewers show black.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Image resizer
Fit an image inside maximum dimensions, preserving aspect ratio and preventing enlargement.
Image toolsImage compressor
Re-encode JPG or WebP at adjustable quality. Output can be larger; always compare sizes.
Image toolsJPG, PNG & WebP converter
Convert images to JPG, PNG or WebP. JPG replaces transparency with white.
Image tools