To compress images online without an obvious drop in quality, first resize them to the dimensions you actually need, then save photos as JPEG or WebP at a quality setting of about 70–85%. Compare the result with the original at full size before you use it. Graphics with sharp edges, text or transparency usually belong in PNG or WebP instead.
This guide explains why those steps work, so you can make good choices for any image, whether it’s a photo for an email, a picture for a website or a scan for an upload form with a size limit.
What image compression is
A digital image is a grid of pixels, and each pixel stores a color. Saved without any compression, a 12-megapixel photo (4000 × 3000 pixels) would need about 36 MB: three bytes of color for each of its 12 million pixels. Image formats use compression to store the same picture in far less space.
Compression works by finding patterns and redundancy. A clear blue sky contains thousands of nearly identical pixels, so a format can describe that area much more efficiently than by listing every pixel. Some formats also discard detail that people are unlikely to notice, which saves even more space.
Why image file size matters
- Upload limits. Job applications, government forms and support tickets often reject files above a fixed size.
- Email attachments. Many email services cap the total size of a message, and large attachments are slow to send and receive.
- Website speed. Images are often the largest files on a web page. Smaller images load faster, especially on mobile connections, and use less of your visitors’ data.
- Storage. Smaller files take up less space on your phone, computer or cloud storage.
JPEG, PNG and WebP compared
The format you choose often matters more than any other setting. These three are the most common for everyday use, and all modern browsers can display them.
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| JPEG | Lossy | No | Photos, where it is supported almost everywhere |
| PNG | Lossless | Yes | Screenshots, logos, diagrams and images with text |
| WebP | Lossy or lossless | Yes | Photos and graphics on the web, usually smaller than JPEG or PNG |
WebP often produces a smaller file than JPEG at similar visual quality, and it supports transparency. The catch is compatibility outside the browser: some older software and some upload forms still only accept JPEG or PNG. If you are not sure what the recipient accepts, JPEG is the safest choice for photos.
For a deeper technical comparison, see the image file type guide on MDN and web.dev’s article on choosing the right image format.
Lossy versus lossless compression
Lossless compression shrinks a file without changing a single pixel. When you open the image again, it is identical to the original. PNG works this way. The savings are limited, especially for photos, because natural images contain a lot of fine, unpredictable detail.
Lossy compression permanently throws away some information to save much more space. JPEG and lossy WebP simplify fine detail and subtle color changes in ways the eye tends not to notice. A quality setting controls the trade-off: lower quality means a smaller file and more visible artifacts, such as blockiness, smudged textures or halos around sharp edges.
There is no setting that guarantees “no quality loss” for lossy formats. The realistic goal is a file where the difference is too small to matter for how you will use the image. For most photos, a quality between 70% and 85% is a good starting point.
How image dimensions affect file size
File size grows with the number of pixels. Halving an image’s width and height leaves a quarter of the pixels, so a 4000 × 3000 photo resized to 2000 × 1500 has 25% of the original pixel count. That alone often makes a bigger difference than any quality setting.
Think about where the image will be shown. A photo in an email or on a blog rarely needs to be more than about 1920 pixels wide, and a profile picture needs far less. Phone cameras routinely produce images of 4000 pixels or more, which is far larger than most screens can display.
Resize first, then compress. Reducing the dimensions to what you need is usually the single biggest saving.
How to compress an image step by step
Here is how to do it with the free Image Compressor. Everything happens inside your browser, so the image is never sent to a server.
- Open the Image Compressor and drag your image onto the upload area, or select Choose an image. JPEG, PNG and WebP files up to 25 MB are supported.
- Choose an output format. Use JPEG for photos that must work everywhere, WebP for the smallest files, or PNG when you need lossless quality.
- Adjust the Quality slider for JPEG or WebP. The default of 75% suits most photos. PNG output is always lossless, so the slider is disabled for it.
- If the image is larger than you need, pick a size under Resize, such as “Longest side 1920 px (Full HD)”. Choose “Keep original size” to leave the dimensions unchanged.
- Check the original size, compressed size and percentage change, and use the before-and-after slider to inspect the result.
- Select the download button to save the compressed file. If the new file is not smaller, the tool tells you and offers to keep the original instead.
The tool re-encodes your image, so camera metadata such as the date taken, camera model and GPS location is not copied into the new file. Photos are rotated the right way up before they are saved, so they look the same as the original.
How to compress JPG, PNG and WebP files
Each format compresses differently, so the best approach depends on what you start with and where the file is going.
Compress a JPG (JPEG) image
JPEG is the easiest format to shrink. Keep the output as JPEG, lower the quality to around 70–85%, and resize if the photo is larger than you need. Start from the original camera photo rather than a copy that has already been compressed, because every lossy save removes a little more detail.
Compress a PNG image
PNG is lossless, so there is no quality setting to lower. Saving a PNG again as PNG keeps every pixel, which means the file often shrinks only a little and can even grow. You have three practical options:
- Convert it to WebP to keep transparency with a much smaller file. When you open a PNG in the Image Compressor, it chooses WebP output automatically if your browser can save WebP.
- Convert it to JPEG if it is a photo without transparency. Any transparent areas become white, and the tool warns you about this.
- Keep PNG but reduce the dimensions when you need a PNG file, for example for a logo or a screenshot with sharp text.
Compress a WebP image
WebP files are often compressed already, so expect smaller savings. Lower the quality a little or reduce the dimensions. If a website or form doesn’t accept WebP, convert it to JPEG instead. Saving WebP depends on your browser: if yours can’t create WebP files, the option is shown as unavailable.
How to compress an image to 100 KB or another size limit
Online forms for jobs, admissions, exams and government services often set a hard limit, such as 20 KB, 50 KB, 100 KB or 200 KB. Guessing a quality setting and trying again is slow. Instead, set Target size in the Image Compressor to the limit you need:
- Choose your image and select JPEG output, the format most forms accept.
- Set Target size to the limit, for example “Under 100 KB”.
- The tool searches for the highest quality that fits. If even a low quality is too large, it reduces the dimensions and tells you the new size in pixels.
- Check the preview, then download. The result shows the exact size in bytes.
Two details help avoid rejected uploads. First, targets use 1 KB = 1,000 bytes, so a file “under 100 KB” also passes forms that count 1 KB as 1,024 bytes. Second, many forms also require specific pixel dimensions, such as a passport-style photo, so resize to those first, then apply the target size. The smaller the target, the smaller the image needs to be: 20 KB suits a small photo or signature, but not a detailed full-size picture.
How to reduce photo size on a phone
Phone cameras save large, detailed photos that are often several megabytes each. You don’t need an app to shrink them:
- Open the Image Compressor in your phone’s browser.
- Tap Choose an image and pick the photo from your gallery or camera roll.
- Choose JPEG output, and select a resize option such as “Longest side 1920 px (Full HD)” or a Target size if you have a limit.
- Check the new size, then download. Your browser saves the file to its usual downloads location.
iPhones often save photos in the HEIC format, which the tool can’t read directly. Because the tool asks for JPEG, PNG or WebP files, iOS usually converts a HEIC photo to JPEG automatically when you choose it. If you still see an unsupported-file message, you can make future photos JPEG by choosing Settings → Camera → Formats → Most Compatible.
Why results vary between images
Two images with the same dimensions can compress very differently. A photo of a calm sky or a plain wall has large smooth areas that compress well. A photo of grass, gravel or a busy crowd is full of fine detail, so it stays larger at the same quality. Digital noise from low-light photos also takes up space, because the encoder tries to preserve it.
The starting point matters too. A JPEG that has already been heavily compressed has little left to remove, so saving it again may barely shrink it, or may even make it larger. Different browsers also use different encoders, so the same settings can produce slightly different sizes in Chrome, Firefox and Safari.
Our test: a screenshot and a graphic, six settings each
Advice such as “WebP is smaller” or “use quality 80” depends on the image, so we measured it. We put two of our own images through the Image Compressor in Chrome on November 29, 2026, downloaded every result and checked that each downloaded file was exactly the size the tool displayed (all twelve were):
- A screenshot: one of our guide pages captured on a high-density laptop screen, saved as a 2880 × 1800 PNG of 432.2 KB. Mostly flat background and sharp text.
- A graphic: the original artwork for our logo, a 1536 × 1024 PNG of 1.09 MB with smooth gradients and hard white edges.
We had no camera photo of our own to publish, so this test doesn’t cover photographs; the earlier sections explain how photos behave.
| Setting | Screenshot (432 KB) | Dimensions | Graphic (1.09 MB) | Dimensions |
|---|---|---|---|---|
| JPEG, quality 80 | 346.0 KB (−20%) | 2880 × 1800 | 49.3 KB (−96%) | 1536 × 1024 |
| WebP, quality 80 | 196.6 KB (−55%) | 2880 × 1800 | 52.3 KB (−95%) | 1536 × 1024 |
| JPEG, quality 60 | 255.1 KB (−41%) | 2880 × 1800 | 34.7 KB (−97%) | 1536 × 1024 |
| PNG (lossless) | 603.4 KB (+40%) | 2880 × 1800 | 674.7 KB (−40%) | 1536 × 1024 |
| JPEG, target under 200 KB | 194.5 KB (−55%) | 2592 × 1620 | 78.6 KB (−93%) | 1536 × 1024 |
| WebP, quality 80, longest side 1280 px | 65.5 KB (−85%) | 1280 × 800 | 41.2 KB (−96%) | 1280 × 853 |


What the numbers show:
- For screenshots, WebP won clearly. At the same quality setting, WebP was 43% smaller than JPEG (196.6 KB against 346.0 KB) and looked cleaner around text. JPEG was designed for photos and handles sharp edges on flat colour poorly.
- For the smooth graphic, JPEG was slightly smaller than WebP at quality 80 (49.3 KB against 52.3 KB). There is no format that always wins, which is why the tool lets you switch and compare.
- Saving a PNG as PNG again made the screenshot 40% bigger. The browser’s built-in PNG encoder compresses less tightly than the program that created the original. The tool warns you when this happens and offers to download the original instead. For the artwork, the same setting saved 40%, because the original file had been stored with little compression.
- Dimensions mattered more than quality. Resizing the screenshot to 1280 px wide cut it to 65.5 KB, a third of the size of the full-resolution WebP. If an image will be shown at 1280 px, there is no benefit in keeping 2880.
- Target sizes may shrink the image. To get the screenshot under 200 KB as a JPEG, the tool had to reduce it to 2592 × 1620, because even its lowest target quality (40%) wasn’t enough at full size. It said so in a message. The graphic fitted easily at the highest quality the target mode uses (92%): 78.6 KB.
How to check the file size and quality of the result
First, check the numbers. The Image Compressor shows the original size, the compressed size and the percentage saved, and when you use a target size it also shows the exact size in bytes. After downloading, you can confirm the size in your file manager: Get Info on a Mac, Properties on Windows, or the file details on your phone.
Then check the quality. Use the before-and-after slider, and don’t judge from a small thumbnail. Look at the image at the size it will actually be used, and zoom in on areas that reveal problems:
- Faces and skin, where blotchy patches are easy to spot.
- Sharp edges and text, which can develop fuzzy halos.
- Smooth gradients such as skies, where banding (visible steps between shades) can appear.
- Fine textures such as hair, fabric or foliage, which can look smeared.
If you see artifacts, raise the quality a little and compare again. Small increases near the top of the scale can add a lot of file size, so look for the lowest setting that still looks right to you.
When PNG is the better choice
PNG is often the right choice even though its files can be larger:
- Screenshots of apps, documents or websites, where text must stay crisp.
- Logos, icons, charts and diagrams with flat colors and hard edges.
- Images that need a transparent background (WebP can also do this).
- Images you plan to edit again, where repeated lossy saves would add damage each time.
For a photograph, however, PNG usually produces a much larger file than JPEG or WebP with no visible benefit. If you have a photo saved as PNG, converting it to JPEG or WebP is often the easiest saving you can make.
Image sizes and optimization for websites
Images are often the largest files on a web page, so they have a big effect on how fast it loads. The goal is to send each visitor an image no larger than it will be displayed, in an efficient format.
How wide should website images be?
A useful rule is to make an image about twice as wide as the largest space it fills on the page, so it stays sharp on high-resolution phone and laptop screens, and no wider. These widths are common starting points, not fixed rules. Your website theme or platform may recommend its own sizes.
| Image type | Typical width |
|---|---|
| Full-width hero or banner | 1920–2560 px |
| Image inside a blog post or article | 1200–1600 px |
| Product photo that visitors can zoom | 1500–2000 px |
| Thumbnail or card image | 400–800 px |
Website image checklist
- Resize and compress before uploading. Some platforms resize images for you, but starting from a sensibly sized file saves storage and upload time either way.
- Use WebP or a well-compressed JPEG for photos, and PNG or WebP for graphics with text or transparency.
- Set the width and height on images in your HTML, or let your platform do it, so the page doesn’t jump around as images load.
- Serve smaller versions to smaller screens with responsive images (
srcsetandsizes), which many content management systems create automatically. - Lazy-load images further down the page, but not the main image at the top. Google’s web.dev guide to optimizing Largest Contentful Paint explains why the most important image should load as early as possible.
- Write useful alt text describing each meaningful image, for people using screen readers and for search engines.
Common image compression mistakes
- Compressing the only copy. Keep your original file. Lossy compression cannot be undone.
- Compressing the same JPEG again and again. Each save loses a little more detail. Start from the original whenever you can.
- Ignoring dimensions. A huge image at low quality often looks worse, and is larger, than a properly resized image at good quality.
- Using JPEG for screenshots and text. JPEG blurs sharp edges. Use PNG or WebP instead.
- Turning quality right down. Very low settings save a little more space but can make photos look obviously damaged.
- Forgetting where the file is going. Check that the destination accepts the format, especially before sending WebP.
Frequently asked questions
Can I compress an image without losing any quality?
Yes, with lossless compression such as PNG, but the savings are usually modest, especially for photos. Lossy formats like JPEG and WebP save far more space and always remove some detail, although at sensible settings the change is often hard to see.
What size should images be for a website?
Make each image about twice as wide as the largest space it fills on the page, and no wider. As a starting point, that is roughly 1920–2560 pixels for a full-width banner, 1200–1600 pixels for an image inside an article, and 400–800 pixels for thumbnails. Then compress it as JPEG or WebP.
How do I reduce the file size of a photo on my phone?
Open the Image Compressor in your phone’s browser, choose the photo from your gallery, pick JPEG output and a smaller size such as “Longest side 1920 px”, then download the result. No app is needed, and the photo is processed on your phone.
Does resizing an image reduce its file size?
Yes, often more than lowering the quality does. Halving both the width and the height leaves a quarter of the pixels, so the file usually shrinks a lot. Resize to the largest size the image will actually be shown at, then adjust the quality if the file is still too big.
Is WebP better than JPEG or PNG?
For websites, usually. WebP files are typically smaller than JPEGs at similar visual quality, and unlike JPEG it supports transparency. All current major browsers display WebP, but some older programs and upload forms still don’t accept it, so use JPEG when you’re not sure a WebP file will be accepted.
Is it safe to compress private photos online?
It depends on the tool. Many online compressors upload your file to their servers. The QuickToolsWorld Image Compressor processes images inside your browser, so the file is not sent anywhere.