Batch PNG matte inverter
Pick several PNGs at once and invert the alpha channel of each — transparent ↔ solid — processed locally in the browser and downloaded one by one.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Pick several files at once — everything is processed locally and never uploaded.
Pick several PNGs at once; each alpha channel is inverted separately.
No result yet
Result
These are the real numbers from this run — copy them straight out.
Pick an image and the result shows up here.
What this tool does
- Batch invert a set of icons: pick a dozen at once and get transparent-background versions of each.
- Build knockout masks in bulk: invert the alpha of a group of solid shapes into a consistent outline mask.
- Rehearse with one file: confirm the threshold and soft-edge settings before running the whole set.
Example
Input
Two 2×2 PNGs with alpha [0, 128, 255, 255] and [255, 255, 255, 255], default threshold invert
Output
The first alpha becomes [255, 0, 0, 0] (4 pixels changed) and the second becomes all 0 (4 pixels changed); the result panel lists every file with its dimensions
Each file is processed independently and listed in selection order; exports download one by one with -2, -3 suffixes to avoid name clashes.
Frequently asked questions
Does batch alpha inversion change the colours too?
No — only the alpha channel is rewritten; the R, G and B channels are kept as they are. In the default threshold mode any pixel whose alpha is at least the threshold (1 by default) becomes fully transparent 0 and everything else becomes opaque 255; with "Keep soft edges (linear invert)" the alpha becomes 255 minus the original value. Note that a fully transparent region turns solid and then shows that pixel’s original RGB values, which for transparent pixels is often black.
How many files can I pick at once, and are they uploaded?
There is no hard limit on the number of files — a dozen or more at a time is fine. Each file is processed independently and the result panel lists the file name, mode, pixels changed and output size per file in selection order, with one download per file. Decoding and pixel work happen entirely in your browser on a canvas, so nothing is uploaded to a server.
What threshold should I use, and are there limits on file size or format?
The default threshold of 1 means "any alpha other than 0 counts as solid", which suits icons with clean edges; for anti-aliased artwork raise the threshold (0–255) so partially transparent pixels count as solid too. A single image may not exceed 16,000,000 pixels — above that you get the invalid-parameters message — and formats the browser cannot decode (HEIC, for instance) fail as well. If one file fails, no result is produced for the whole batch.
Keywords:batch invert alphabatch png mattingbatch transparency