When an upload has a strict byte limit, try reducing the PNG first. This offline tool recompresses supported files, then verifies that the decoded pixel bytes match exactly, including alpha. It preserves the original dimensions and keeps PNG chunks outside the compressed image data.

In one local 2,400 × 1,200 test, a 6,192,749-byte PNG shrank to 3,329,161 bytes. Results depend on the image and its existing compression. If a supplied cap still cannot be met, the tool reports the smallest result it produced and writes no output.

Requires Node.js 22 or newer and no packages. Supports non-interlaced single-frame 8-bit RGB and RGBA PNGs up to 64 MiB and 33,554,432 pixels. The ZIP contains the script, usage guide and five tests with generated fixtures.