FoxPNG

FoxPNG image compression & conversion guide

FoxPNG is a free browser-based image compressor and converter. It compresses supported JPEG, PNG, WebP, GIF, AVIF and JXL inputs locally, and can create additional AVIF, JXL, WebP, JPEG and PNG files from supported static images. Image contents and filenames are not uploaded for processing.

Open FoxPNG compressorRead the privacy policy

What FoxPNG supports

InputOriginal-format behaviorConversion and restrictions
JPEG / JPGLossy re-encoding using the selected quality. A smaller original is retained.Supported static images can produce extra AVIF, JXL, WebP, JPEG and PNG outputs. JPEG cannot retain transparency; conversion uses the selected solid background.
PNGSmart color reduction by default, with a separate lossless mode. Alpha and color-error guards can cause a lossless fallback.APNG is retained unchanged. Precision/profile restrictions can block conversion. PNG transparency is supported.
WebPStatic WebP is re-encoded with lossy quality and transparency support.Animated WebP is retained byte-for-byte in its own format; animation conversion is blocked.
GIFGifsicle optimizes the complete animation. Dimensions, frame count, delays and loop metadata are checked; the original is kept if those checks fail or output is larger.GIF is not an extra output format. Animated inputs are not flattened into a single frame for conversion.
AVIF / JXLLocal WASM decoders accept supported static 8-bit sRGB inputs. Encoding follows quality settings for opaque images.Up to 4 million pixels. Animation, unsupported precision/profile/orientation/container cases are protected. Transparent JXL uses lossless encoding; its quality slider has no effect.

Conversion adds files alongside the compressed original format. Larger converted files remain downloadable. Same-format compression keeps the smaller original when re-encoding does not save space. JPEG/WebP re-encoding and cross-format conversion remove metadata; retained originals keep theirs. PNG/GIF may retain metadata, so this is not a certified metadata-removal tool.

Choose a quality level and PNG mode

Lower quality usually trades visual detail for smaller JPEG, WebP and opaque AVIF/JXL files. Quality 100 is not a universal lossless setting. Compare the actual downloaded image at its intended display size.

PNG Smart uses color quantization and OxiPNG. It can change colors, while preserving alpha and checking displayed-color error limits. Larger or unsuitable candidates fall back to lossless processing.

PNG Lossless preserves decoded RGBA pixels, including hidden RGB under transparent pixels. Inputs above 1.5 million pixels bypass smart quantization. Sixteen-bit and certain ICC/cICP/chromaticity/gamma PNGs also bypass quantization; cross-format conversion may be protected.

Animated WebP, APNG, AVIF and JXL are preserved in their own format instead of being flattened. GIF optimization is lossless, but the test cases below do not cover every possible disposal/compositing edge case.

Practical limits

Local image processing and offline use

Image bytes and filenames stay in browser memory and local Workers. This does not mean the entire website makes no network requests: the first visit loads the page, artwork and codec assets, and website visit analytics is separate from image processing.

After the production page and engines finish caching, the same browser can reload and compress offline. Development mode does not install this cache. Private browsing, disabled storage, cache eviction or clearing cached data can prevent offline use.

The queue is held in the current tab. Reloading or leaving the tool clears it. The guide link in the tool opens separately so it does not interrupt the current queue.

A small, reproducible sample run

These are actual local-browser downloads from six self-generated synthetic images. Gradients, transparency and moving rectangles are diagnostic examples, not a representative photo benchmark. Source encoder settings, including an intentionally unoptimized GIF, strongly affect savings. No typical savings percentage, speed claim or competitor comparison is inferred.

Measured: · Browser: Edge 156.0.4314.42

Case and settingsDimensionsInput → output bytesSavedIndependent check
Synthetic JPEGquality 80Source · Output320 × 24050,054 → 5,17289.67%Decoded format & dimensions checked
Same JPEG, lower qualityquality 45Source · Output320 × 24050,054 → 1,70196.6%Decoded format & dimensions checked
Transparent PNG, smartPNG Smart (lossless fallback)Source · Output128 × 96550 → 33139.82%Alpha exact
Same PNG, losslessPNG LosslessSource · Output128 × 96550 → 33139.82%RGBA exact
Synthetic static WebPquality 80Source · Output320 × 24023,852 → 2,12291.1%Decoded format & dimensions checked
Four-frame GIFFull-animation lossless optimizationSource · Output96 × 64997 → 56043.83%Frames, timing & pixels exact
Already compact PNGPNG Smart (lossless fallback)Source · Output8 × 879 → 746.33%Alpha exact
Protected animated WebPRetained; not re-encodedSource · Output96 × 64378 → 3780%Original bytes retained

These results apply only to the samples shown. Lossy compression can change picture detail, so compare the downloaded image as well as its size. The GIF check covers all four sample frames. The unchanged animated WebP is kept as-is, not compressed.

Download detailed sample results · Sample source details

Try a sample yourself

  1. Download a Source image from a row in the sample table.
  2. Open FoxPNG and keep format conversion turned off.
  3. Use the quality and PNG mode shown in that row. If no quality is shown, keep the default of 80.
  4. Compress and download the result. Compare its file size and picture detail; you can also download the row’s Output image as a reference.

Settings and browser versions can change the file size and picture quality. These sample results do not promise the same savings for other images.

Open FoxPNG compressor