Skip to content

Compress Image Online

xFormat.space compresses images to a file size you choose, directly in your browser, so photos are shrunk without ever being uploaded.

Runs in your browser — files never leave your device.

How it works

Hitting an upload limit or an email size cap? Tell the tool how small the file should be, pick a maximum dimension, and it shrinks the image to fit where it can. Your picture is processed on your device and never sent to a server.

  1. 1

    Drop an image onto the page.

  2. 2

    Set the target size (from 5% to 95% of the original) and the maximum width or height: 3840, 1920, 1280, 800 or 640 px.

  3. 3

    Click Compress Image, compare before and after, then download.

How the compression works

You don't pick a quality number to guess at. You set a target, a share of the original file size, and a maximum dimension. The tool then lowers quality and, if needed, scales the picture down until it gets under your target. The results panel shows the original and new sizes and the percentage saved.

Getting more out of it

Pixel dimensions matter as much as quality. A 4000-pixel-wide photo that will be shown at 1200 pixels carries far more data than it needs, so choosing 1280 or 1920 as the maximum often saves more than squeezing quality alone.

PNG is the stubborn case. It is lossless, so size comes down mostly by reducing dimensions, and a screenshot may not reach an aggressive target. If you only need a smaller file and don't need transparency, convert the PNG to JPG or WebP first.

Be aware that compression is lossy and can't promise an exact result. If the output comes out larger than the original, the tool tells you, and you should keep the original.

Frequently asked questions

How do I compress an image to a specific file size?

Set the target size as a percentage of the original, choose a maximum dimension, and click Compress Image. The tool reduces quality and size until it fits where possible, then shows the result.

Does image compression reduce quality?

Yes, to some degree, since it is lossy. Moderate targets are usually hard to notice, while aggressive ones introduce visible artifacts or lower resolution.

Are my images uploaded when I compress them?

No. Compression runs in your browser using your device. There is no upload, sign-up or watermark.

Why didn't my PNG shrink much?

PNG is lossless, so there is less to remove. Try a smaller maximum dimension, or convert it to JPG or WebP first if transparency isn't needed.

Can the compressed file be bigger than the original?

Occasionally, for files that were already well optimized. The tool shows the change, so you can keep the original in that case.

Guides