Compress images, not quality
Make JPG, PNG and WebP files smaller by lowering the quality, cutting a PNG down to fewer colours, or typing the size in kilobytes you need to get under. Your original file is left as it was.
Tip: your phone's file picker also lists Dropbox and Google Drive when their apps are installed.
Using the compressor
- 1
Add the photos
Up to 50 at once. New files are compressed as soon as you add them, and adding more later compresses only the new ones. With four files or fewer (40 MB together at most), every change you make re-runs straight away; in a larger batch the rows made with the old setting are marked and wait for the Apply button.
- 2
Pick a strategy
Keep the format and lower Quality, which starts at 80, or switch the format to WebP. Tick Aim for a file size to type a limit in KB instead.
- 3
PNG colours
For PNG output the PNG colors menu builds a smaller palette of 256, 128, 64 or 32 colours, the same idea TinyPNG uses. All keeps every colour, losslessly. Either way the PNG is then repacked by OxiPNG, which saves bytes without changing a pixel.
- 4
Check and save
The before/after slider shows both versions, with the saving in KB and percent. Files are saved as
name-compressed.jpg, or all together as a ZIP.
Measured: one photo and two PNGs
We ran the compressor on three test files in Chrome. The numbers below are what the tool reported, not estimates.
| Input | Setting | Result |
|---|---|---|
| Landscape JPG, 1200 × 800, 86 KB | Defaults (same format, quality 80) | 81 KB (−6%) |
| Same photo | Quality 60 | 27 KB (−69%) |
| Same photo | Format WebP, quality 80 | 26 KB (−70%) |
| Same photo | Aim for 50 KB | 44 KB, “Quality 69 fits under 50 KB” |
| Same photo | Aim for 10 KB | 10 KB at quality 20 |
| Same photo | Shrink large images, 800 px max | 800 × 533, 26 KB (−70%) |
| The same picture saved as PNG, 1.14 MB | PNG, 256 colors | 285 KB (−76%) |
| Same PNG | PNG, 64 colors | 182 KB (−84%) |
| Same PNG | PNG, All (lossless) | 614 KB (−47%), every pixel unchanged |
| Screenshot PNG, 1280 × 800, 101 KB | PNG, 256 colors | 29 KB (−71%) |
| Same screenshot | PNG, All (lossless) | 55 KB (−45%) |
The first row surprises people. That JPG had already been saved at roughly quality 80, so saving it again at 80 gains only a little, and that little comes from the more careful encoder, not from lost detail. The real savings came from a lower quality, a newer format or fewer pixels. Quality 20 does reach 10 KB, but at that level skies turn into visible blocks; it is there for hard upload limits, not for photos you care about. The two lossless rows are PNGs written by a browser, which favours speed over size; a PNG that was already optimised elsewhere shrinks much less.
Every trial encode runs on your processor
A file-size target means encoding your photo several times while the tool narrows in on a quality. Those attempts all happen in this browser tab; no copy of the image goes to a server.
Questions & answers
Why did my file barely shrink, or come back unchanged?
It was probably compressed at a similar setting already. When the new version would be the same size or larger in the same format, Photoyam keeps your original and tells you so. Try WebP, a lower quality or the Shrink large images option.
How does “Aim for a file size” choose the quality?
It encodes the image at qualities between 1 and 95 and homes in on the highest one that fits under your limit, then reports it, for example “Quality 69 fits under 50 KB.” While a target is on, the Quality slider is greyed out and shows the quality it picked. Targets work for JPG, WebP and AVIF; PNG output uses the colour setting instead.
What happens if the target is too small to reach?
If only quality 15 or lower would fit, which looks blocky, the tool makes the photo smaller instead and says so, for example “Made it 919 × 613 px to reach 50 KB.” If even a much smaller photo cannot reach it at a usable quality, you get the smallest full-size version with a note that the limit was missed.
Do transparent PNGs keep their soft edges?
Yes. Cut-outs and logos with soft, semi-transparent edges get a palette whose colours carry their own transparency, so the edges stay smooth. In our test an 867 KB product cut-out came out at 179 KB with 256 colors (−79%) and 120 KB with 64. Pick “All (lossless)” for an exact copy.
Is the GPS location removed from my photo?
Yes. The new file is written from the pixels, so EXIF camera details and GPS coordinates are not copied. The photo is turned upright first, so a portrait shot stays portrait. In our test a 108 KB phone-style JPG with a GPS tag came out at 80 KB with no EXIF left.
How large a file can I compress?
Each image may be up to 200 MB and 100 megapixels, and one batch can hold 50 images. Very large photos simply take longer to encode.
Which encoders write the files?
JPG files are written by MozJPEG, PNG files are repacked by OxiPNG, WebP by libwebp and AVIF by libavif when your browser has no AVIF encoder of its own. They are compiled to WebAssembly and run in a background thread of this tab. Each one is downloaded the first time you save that format (about 0.2 to 0.4 MB, AVIF about 3.5 MB) and kept by the browser after that. If your browser cannot run them, its built-in encoder takes over, so you still get a file, just a slightly larger one.
Quality, format, colours or pixels: which lever to pull
Lower the quality when the file has to stay a JPG, say for a form that only accepts JPG. Somewhere between 60 and 80 most photos still look clean. Look at smooth areas such as sky and skin first; that is where blocky patches show up.
Switch to WebP when the place you are sending it accepts WebP. All current major browsers display it, and in the table above the WebP at quality 80 was about the size of the JPG at quality 60 (26 KB against 27 KB).
Reduce PNG colours for screenshots, diagrams and flat artwork. Interface screenshots rarely use more than a few hundred distinct colours, so 256 is usually invisible. A photo stored as PNG can band at 64 colours or fewer; turning it into a JPG or WebP is the better fix (see PNG to JPG).
Shrink the pixels when the image is bigger than it will ever be shown. A 4000-pixel camera photo displayed 1200 pixels wide wastes most of its bytes. The Shrink large images option caps width and height (1920 by default) before encoding, and the resizer gives exact control.
For the theory behind lossy and lossless compression, read how to compress images without losing quality.
Learn more