Compress images
Adjust image quality and choose JPEG or WebP output for sharing and uploading.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Re-encode static JPG, PNG or WebP images as JPEG or WebP at your chosen quality. The result can lose detail or be larger than the source; quality 1 does not guarantee lossless output. Keep the originals for comparison and future edits.
How to use this tool
- Choose up to 20 saved JPEG, PNG or WebP files. The originals stay on your device.
- Choose JPEG (the default) or WebP and adjust quality. For JPEG, choose a background for transparent areas; the default is white. Select Compress images.
- Download the results and compare each image with its original: check detail, transparency, orientation and file size. If some files fail, successful images remain available. A ZIP is also provided when at least two images succeed.
Supported inputs and limits
Select up to 20 static JPG, PNG or WebP files. Each file must be no larger than 20 MiB and contain no more than 16 million pixels; all selected files together must fit within 80 MiB. Animated images and SVG are not supported. Generated images in a batch are limited to 100 MiB before ZIP packaging. File names are limited to 512 characters (some characters, such as emoji, count as two); settings have a 2 MiB UTF-8 size limit.
Worked example
Example input
pixels.png
Example options
{
"quality": 0.5,
"format": "jpeg"
}Example output
{
"items": [
{
"inputBytes": 804,
"outputBytes": 1702,
"width": 400,
"height": 200,
"inputMetadata": [],
"outputMetadata": [
"APP2/ICC"
]
}
]
}When something does not work
If a file cannot be read, try another copy or re-export it as a static JPG, PNG or WebP. For an animation, export a still image first; changing an extension does not convert the file. To meet a size or pixel limit, resize in another tool or split a large batch; shorten file names that exceed the name limit. If the download is still too large, lower quality or try WebP if the destination accepts it, then compare again. After cancelling, your selected files remain available for another attempt.
Frequently asked questions
Are my files uploaded?
No. Files are processed in your browser. Your files, settings and results can remain available while you switch tools, language or theme in the same tab. This temporary workspace has time and memory limits. Refreshing or closing the tab clears it, so keep your originals and download results you want to save.
Will the file always get smaller?
No. The result can be the same size or larger. Quality controls encoding, not a target size in bytes. Check each downloaded image's size and detail. In a batch, the input total includes failed files and the output total includes both the ZIP and individual images.
Which output should I choose for transparency?
This tool outputs JPEG or WebP. Choose WebP for transparency. JPEG has no alpha channel and uses the selected background color for transparent areas.
Documentation & further reading
Related tools
WebP to JPG
Convert static WebP to JPG with a background color for transparent areas, then download.
PNG to JPG
Choose a background for transparent areas and save as JPG.
Batch JPG to PNG
Convert one or more JPG images to PNG files.
Image to WebP
Convert one or more JPG or PNG images to WebP with adjustable quality.