ToolForge

Image Compression & Formats

Every image on a web page is a trade between how good it looks and how long it takes to arrive, and almost nobody gets to make that trade deliberately — you export at whatever the camera or the design tool offered, and find out later that the page takes six seconds to load on a phone.

These guides cover the trade itself. What lossy compression actually throws away and why you cannot see most of it. Which of JPG, PNG, WebP and AVIF suits which kind of picture, with the published figures rather than folklore. Why pixel dimensions matter more than the quality slider for most oversized files. And what to do when a file has been compressed twice and is still too large for the form that keeps rejecting it.

The practical claims here are checked against how ToolForge's own compressor behaves, which is occasionally less flattering than a marketing page would be — quality settings do nothing at all to a PNG that stays a PNG, and re-compressing an already-optimised file usually makes it bigger. Both are worth knowing before you blame the tool.

Start with the guide

Guide

How Image Compression Works

Why a photo can lose 80% of its bytes and look identical: what lossy compression discards, how quality settings behave, and why PNG ignores them entirely.

Tools for this

The tools these guides refer to, most relevant first.

Guides & tutorials

Explainers

Comparisons

Troubleshooting

Frequently asked questions

What is the best image format for a website?

WebP for almost everything, with JPG as the fallback for older browsers and PNG reserved for screenshots, line art and anything needing sharp edges. Google puts WebP at 25–34% smaller than JPEG at equivalent visual quality and 26% smaller than PNG losslessly, which is a large saving for a format every current browser reads.

How much can I compress an image before it looks bad?

For photographs, around 80% quality is where most people stop being able to tell — the artifacts exist but need a side-by-side comparison and a hard look to find. Below roughly 60% they become visible in skies, gradients and flat colour. Line art, text and screenshots behave completely differently and show damage almost immediately.

Does compressing an image reduce its dimensions?

Not unless you ask. Compression and resizing are separate operations: compressing re-encodes the same pixel grid more economically, while resizing removes pixels. Most oversized web images need the second one, which is why a 4000-pixel-wide photo displayed in a 800-pixel column is wasting most of its bytes regardless of quality setting.

Is compressing an image online safe for private photos?

Depends entirely on the site. Every image tool on ToolForge decodes and re-encodes in your browser — the files never leave your device, and even the background worker script is served from this domain rather than a third-party CDN. Before uploading personal photos anywhere else, check whether processing happens on their servers.

Keep looking

Buy Me a Coffee