Choosing the right format for smaller web files

A practical guide to image formats, audio bitrate, video codecs and the limits of PDF optimization.

Photographic, transparent and compact file sculptures beside a browser doorway.

Start with what your file needs to do: display a photograph, preserve a transparent logo, play a clip or keep a document readable. A smaller file is useful only when its format and quality still suit that job.

JPG, PNG or WebP?

Choose a format for the job, then compare the actual output.

Audio: estimate size from bitrate

For constant-bitrate audio, approximate payload size is bitrate multiplied by duration, divided by eight. For example, 60 seconds at 128 kbps is about 960,000 bytes before container and tag overhead. This is arithmetic, not a FileCompresser benchmark. Actual encoded size can differ.

WAV-to-MP3 conversion can reduce uncompressed PCM audio substantially. Re-encoding an existing MP3 at a lower bitrate may save space but adds another lossy generation. Increasing bitrate cannot recover detail lost earlier.

Video: distinguish the container from the codec

For a WebM recording that needs MP4 compatibility, use the WebM-to-MP4 converter. It keeps source display dimensions and creates H.264 MP4 with AAC audio when present. Compatibility is its goal; the converted copy can be larger. For supported MP4/MOV compression settings, use the separate video compressor.

MP4 and MOV describe containers, not a single video codec. FileCompresser accepts supported MP4/MOV inputs and re-encodes to H.264 video with AAC audio when an audio track is present. A smaller resolution cap can help, but high-motion scenes and long clips still take time and memory. Unsupported codecs fail rather than becoming playable just by changing the extension.

PDF: structural optimization has limits

The PDF tool tries a structure rewrite with selected document metadata removed. It does not downsample scanned pages or recompress embedded photos. If the candidate is not smaller, the unchanged original is retained with its metadata. Detected digitally signed and encrypted documents are refused rather than silently rewritten.

Keep the result that suits your task

Check dimensions, transparency, text readability, playback and the reported output size. Ordinary compression retains the original if no smaller candidate is found. An explicit format conversion can increase bytes, but growth is never described as a saving. Keep your source until you have verified the download.

Test the real delivery size

Inspect a file at the scale where people will use it. For a transparent logo, compare edges on light and dark backgrounds using the PNG compressor. For a photograph, compare the JPG or WebP output. Use a separate image editor when you need different pixel dimensions; the image tools here keep the original display dimensions.

Further reading