Images
Compress images without losing quality
Most “my images are too big” problems are really “my images are too large in pixels”. Fix the size first, then choose a format, then set quality. In that order, a 12 MB photo becomes 300 KB and still looks sharp.
Last updated 6 December 2026
On this page
Do these three things, in this order
1. Resize to the largest size you will actually display. A photo straight from a phone is around 4000 × 3000 pixels. A blog post shows it at 800 pixels wide; a slide deck at 1600; a full-width hero at 1920. Everything above that is data nobody sees. Cutting a 4000-pixel photo to 1600 pixels usually removes 80–90% of the file before any compression happens.
2. Pick the format for the content. Photographs go to WebP or JPG. Screenshots, charts, logos and anything with flat colour or sharp text go to PNG (or SVG if you have the original vector).
3. Set quality, then look at the result at 100%. For photos, 75–82 is the practical range. Below 65 you start to see blockiness in skies and skin; above 90 the file grows quickly for differences most screens cannot show.
What the quality slider actually does
JPEG and WebP are lossy: they throw away detail the eye is less likely to notice, mostly in colour and high-frequency texture. The quality number controls how aggressively that happens. It is not a percentage of “original quality”, and it is not comparable between formats or even between encoders — a WebP at 80 and a JPG at 80 are not the same amount of loss.
Two details matter more than the number:
- Chroma subsampling. JPEG stores colour at lower resolution than brightness. That is fine for landscapes and bad for saturated red text on white.
- Repeated encoding. Every save of a JPEG adds a generation of loss. Export once from the original, at the size you need. Do not open a compressed file, tweak it, and save again at 90.
PNG is lossless, so the quality slider does nothing for it. Re-encoding a photograph as PNG usually makes the file larger, because PNG is designed for flat colour and sharp edges, not continuous tone. If a tool shows your PNG growing, that is not a bug.
WebP, JPG or PNG?
| Content | Best choice | Why |
|---|---|---|
| Photos, product shots | WebP, then JPG | WebP is typically 25–35% smaller than JPG at similar quality and is supported by every current browser. |
| Screenshots, UI, charts | PNG or WebP (lossless) | Sharp edges and text stay crisp; lossy formats create fringes around letters. |
| Logos, icons | SVG | Vector stays sharp at any size and is usually a few KB. Convert to PNG only when a platform demands it. |
| Transparency | PNG or WebP | JPG has no alpha channel; transparent areas turn white or black. |
| TIFF or high-quality JPG | Keep 300 dpi at final print size; do not use web compression for a print master. |
One caveat: some older desktop apps and email clients still do not preview WebP. If the file is going into a document, a CMS that rejects WebP, or an email attachment, JPG is the safer export and the size difference is often small at 1600 pixels.
Check before you publish
- Compare at 100%. Open the compressed file and look at a face, a sky gradient and any text. Zoom to actual pixels, not “fit to window”.
- Look at the edges. Lossy compression shows first as a halo around high-contrast edges, or as colour noise in dark areas.
- Check the dimensions. A 300 KB file that is 4000 pixels wide is still wrong for a web page.
- Check the total. Ten images at 300 KB each is a 3 MB page. That is the number your visitor waits for, not the size of one file.
Five mistakes that undo the savings
- Compressing a screenshot as JPG. Text gets a coloured fringe and the file is often bigger than a clean PNG.
- Exporting a PNG at 4000 pixels “for quality”. Pixel count and file format are separate decisions.
- Setting quality to 40 to hit a number. Blockiness is permanent once saved. Resize instead.
- Compressing an already-compressed file. Go back to the original export every time.
- Uploading to a random converter. A client photo, an ID scan or an unreleased product shot does not belong on a server you cannot inspect. This is the reason PixKit processes images in the browser: the file is decoded and re-encoded by your own device, and nothing is sent anywhere.
Try it with your own file: open the image compressor and watch the before/after size for each image. If a format makes a file larger, the row says so instead of hiding it.
Everything runs in this tab. Nothing is uploaded.