Count transparency in four pixels
Input and settings
Synthetic 2×2 PNG / A=0,128,255,255 / Alpha view
Expected result
Transparent 1 (25%), translucent 1 (25%), opaque 2 (50%).
Switch backgrounds and inspect transparent, translucent, and opaque pixels.
You can also drop or paste images. Pasted images may not retain the original file metadata.
File contents and names are not stored or uploaded.
Up to about 134.2 MB and 70 MP per image, 268.4 MB of input in total, and 100.7 MB of output. Devices with limited memory may require smaller images.
Share only the tool name and public URL. Your input and results are not included.
Inspect logo and cutout edges against white, black, or a custom background.
Three pixels with alpha values of 0, 128, and 255 count as one transparent, one translucent, and one opaque pixel.
In alpha view, black is transparent, white is opaque, and gray is translucent. Percentages use the image’s total pixel count.
JPEG normally has no alpha, so every pixel is opaque. Changing the preview background does not alter the source.
Use Texture Channel Pack & Unpack to work with alpha as a separate channel map.
Distinguish the preview background from alpha values stored in the image.
Example buttons replace the inputs and settings above and calculate. Restore previous input steps back one example at a time. After trying multiple examples, repeat restore to return to your original input. This history is lost when the page closes.
Synthetic 2×2 PNG / A=0,128,255,255 / Alpha view
Transparent 1 (25%), translucent 1 (25%), opaque 2 (50%).
Synthetic 2×2 PNG / All A=255 / Normal view, black background
Transparent 0, translucent 0, opaque 4 (100%). Background choice does not change the counts.
A=0 is transparent, 1–254 translucent and 255 opaque. Alpha view visualizes A as grayscale. Black, white and checkerboard backgrounds affect only the preview, not the source image.
Counts cover all browser-decoded pixels. JPEG is normally fully opaque. One JPEG/PNG/WebP, up to 128 MiB, 70 megapixels and 16,384 pixels per edge; low-memory devices may need smaller images. Restore returns the original file/view settings; run again.
Independently count known alpha values as 1/1/2 and 0/0/4; check localized display, backgrounds and original-file restoration.
No. Downloads are separate files. Closing the page discards the loaded content and results.
Black is transparent, white is opaque and gray is translucent. Percentages use the image’s total pixel count.
JPEG normally has no alpha channel. Without transparency information, every pixel is counted as opaque.
Keep any content you need before clearing. This tool does not autosave inputs or results. Reloading or closing the page, clearing inputs or resetting may discard your work.
Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.