Compress Image to a Target Size

Your selected files are processed locally in this browser. This tool does not upload the contents of your files to our servers.
Loading the local workspace…
How privacy works for this tool

Your selected files are processed locally in this browser. This tool does not upload the contents of your files to our servers.

Processing speed and practical file-size limits depend on your device and browser.

Security & Local Processing →

What you can do

Search for an efficient JPEG or WebP quality and, when permitted, reduce dimensions to approach a maximum file size.

Choose presets from 20 KB to 1 MB or enter a custom target.

Binary-search quality, then optionally reduce dimensions within minimum safeguards.

Compare previews, dimensions, format, quality, bytes, and percentage reduction.

How to use this tool

Choose a supported file or enter text, then review the available options. Keep the source file so you can compare it with the result.

Start the operation and wait for its result. Check the reported counts, preview, and warnings. Download the result and open it in the application where you plan to use it.

Your files stay in this browser

Your selected files are processed locally in this browser. This tool does not upload the contents of your files to our servers.

Processing speed and practical file-size limits depend on your device and browser.

Formats and limitations

Supported formats: JPEG, PNG, and WebP.

Exact byte targets are not guaranteed, especially for PNG.

Lossy formats change image data; targets may conflict with quality safeguards.

If a file cannot be processed

Confirm that the file contents match the extension and that the file is not encrypted, incomplete, or damaged. A complex file can exceed the browser’s available memory even when its byte size is small.

For an important workflow, try a representative smaller input first. If the tool reports an error, retain the original and correct the input or choose another compatible format before trying again.

Frequently asked questions

Is my selected file uploaded?

No. The selected contents and generated result stay in the active browser session. Ordinary page requests still reach the hosting provider.

Does this change my original file?

No. Downloading creates a separate result; it does not overwrite the selected source.

Should I check the downloaded result?

Yes. Open it in the destination application and compare the details that matter for your task before sharing it or deleting the source.

Related tools

Related guides