Smaller files mean faster uploads, less storage used, and pages that load quicker for people viewing them

Photo file size comes down to three things: the dimensions (width and height in pixels), the format you save in, and how much compression you explore. You can shrink a photo to one-tenth its original size by changing just one of these, or combine all three for even smaller files. The trade-off is always quality — compress too much and the image looks blurry or blocky. The goal is finding the point where the file is small enough to matter but still looks good for what you're actually doing with it.

What "small enough" means depends on your use case. A thumbnail for a website can be tiny. A photo someone will print at 8x10 inches needs more pixels and less compression. A social media post sits somewhere in between. Once you know what you're making, the steps are straightforward: resize the image to the dimensions you need, pick the right file format, and adjust compression until the file size and quality balance the way you want.

Key Takeaways

  • Resizing an image to the exact dimensions you need (width and height in pixels) is the single biggest way to reduce file size, often cutting it in half or more.
  • JPEG format works best for photographs and complex images; PNG works best for images with solid colors or text; WebP is smaller than both but not supported everywhere yet.
  • Compression quality settings (usually a slider from 1 to 100) let you trade image sharpness for smaller files — most photos look fine at 75 to 85 quality.
  • Free tools like Squoosh, TinyPNG, and your operating system's built-in image editor can resize and compress without installing software.

Resize the image to match what you actually need

Before you touch compression, resize the image to the exact dimensions you'll use. If you need a photo that's 800 pixels wide for a website, don't start with a 4000-pixel original and let the browser shrink it — resize it down to 800 pixels first. This removes the extra data you don't need and is usually the biggest file-size win you'll get.

To find the dimensions you need: measure the space where the image will go. For a website, open the page in your browser, right-click the space, and select "Inspect" — the developer tools will show you the pixel width and height. For a social media post, each platform publishes recommended sizes (Instagram Stories are 1080 × 1920 pixels, for example). For print, multiply the inches you want by 300 — an 8×10 print needs 2400 × 3000 pixels.

Most image editors let you resize by going to Image > Scale Image or Image > Resize. Enter the width you need, make sure the chain link icon is locked (so height scales proportionally), and click explore. If you're resizing down significantly — say from 4000 pixels to 800 — the file will shrink dramatically even before you compress.

Choose the right file format for what you're saving

JPEG is the standard for photographs and any image with lots of colors and detail. It compresses by throwing away some color information your eye won't notice, which is why it gets so small. A typical photo as JPEG is 200 to 500 KB. The downside: JPEG doesn't support transparency, and if you compress it too much it gets visibly blurry.

PNG is better for images with solid colors, text, or areas that need to be transparent. It compresses without losing any data, so the image stays sharp — but the file is usually larger than JPEG for the same photo. Use PNG when sharpness matters more than file size, or when you need transparency (a logo on a colored background, for example).

WebP is newer and smaller than both JPEG and PNG for the same quality level. Chrome, Firefox, Edge, and Safari all support it now, but some older browsers and some email clients don't. If your audience is mostly on modern browsers and you control the website, WebP is worth using. If you're emailing the image or posting somewhere you don't control, stick with JPEG or PNG.

To change formats: open the image in your editor, go to File > Export As (or Save As), and pick the format from the dropdown. Most editors will show you a preview and file size as you adjust compression, so you can see the trade-off in real time.

Adjust compression to balance quality and file size

When you export as JPEG or WebP, you'll see a quality slider, usually numbered 0 to 100 or labeled Low to High. This controls how much data gets thrown away. A setting of 90 to 100 looks nearly identical to the original but keeps the file large. A setting of 50 looks noticeably softer and blurry. Most photos look good at 75 to 85 — sharp enough that you won't see the compression, but small enough to matter.

The right setting depends on what the image is for. A thumbnail or social media post can go lower (70 to 75). A photo someone might zoom in on or print should be higher (80 to 90). The only way to know is to export at a setting, look at the result, and adjust. Most editors show you the file size as you move the slider, so you can see exactly what you're trading.

For PNG, compression works differently — it doesn't throw away data, but it does reduce file size by using more efficient encoding. PNG compression is lossless, meaning the image quality doesn't change no matter what setting you pick. The slider just controls how much time the computer spends trying to make the file smaller. For PNG, you can usually max out compression without any downside.

Use free online tools if you don't have an image editor

Squoosh (squoosh.app) is a free browser-based tool from Google. Upload your image, and you can resize it, change the format, and adjust compression all in one place. It shows you a before-and-after preview side by side, so you can see exactly what compression does to your image. It works in any browser and doesn't require an account.

TinyPNG (tinypng.com) specializes in compressing PNG and JPEG files. Upload up to 20 images at once, and it compresses them using algorithms designed to keep quality high while cutting file size. It's free for up to 20 images per month. The downside is it doesn't let you resize — you have to resize first in another tool, then compress here.

Your operating system also has a built-in image tool. On Windows, right-click a photo, select "Open with" > "Photos", then go to the menu (three dots) and look for "Resize" or "Crop". On Mac, open the image in Preview, go to Tools > Adjust Size, and enter your new dimensions. Both are free and don't require learning new software.

Batch resize multiple images at once

If you have dozens of photos to resize — for a website gallery or a folder you're uploading — doing them one at a time is slow. Most image editors have a batch or automation feature that resizes all of them in one go.

In Windows, use the built-in Photos app: select all the images you want to resize, right-click, and look for a "Resize" option. On Mac, open Image Capture (in Applications > Utilities), select your images, and look for an "Automate" or "Edit" menu. In free editors like GIMP, go to File > Batch Process or look for a Script-Fu option in the Filters menu.

For a folder of images you want to compress without resizing, TinyPNG's batch upload is the fastest route — upload 20 at a time, read them all compressed, then repeat if you have more. Squoosh doesn't batch, but it's fast enough for a handful of images.

Check file size before uploading or sharing

After you resize and compress, right-click the file and select "Properties" (Windows) or "Get Info" (Mac) to see the final size. If it's still larger than you want, go back and either resize smaller, compress more, or switch formats. Most websites and email services have file-size limits — knowing your final size before you upload saves time and frustration.

For reference: a typical photo resized to 800 pixels wide and compressed as JPEG at quality 80 is usually 100 to 200 KB. A full-screen website image (1200 pixels wide) at the same settings is 300 to 500 KB. A thumbnail (200 pixels) is 10 to 30 KB. If your file is much larger than these ranges, you probably need to resize smaller or compress more.

Frequently Asked Questions

What's the smallest file size I can get without the image looking bad?

It depends on the image and what you're using it for. A photo with lots of detail and color can go to JPEG quality 75 to 80 and still look sharp on a screen. A simpler image with fewer colors can go lower. The only way to know is to export at a setting, look at it, and adjust. Most people can't see the difference between quality 80 and quality 95, but the file size difference is significant.

Should I use WebP or stick with JPEG?

WebP is about 25 to 35 percent smaller than JPEG for the same quality, so if your audience uses modern browsers (Chrome, Firefox, Edge, Safari from the last few years), WebP is worth using. If you're emailing images or posting to a platform you don't control, JPEG is safer because it works everywhere. Many websites now serve both — the browser automatically picks WebP if it supports it, and JPEG as a fallback.

Can I resize an image larger without losing quality?

Not really. Resizing larger (upscaling) requires the software to guess what pixels should go in the new space, and the result is always blurry or blocky. If you need a larger image, start with the largest original you have. If you only have a small version, it's usually better to reshoot or find a higher-resolution source than to enlarge what you have.

Does compression look different on phones versus computers?

Slightly. Phone screens are usually sharper (higher pixel density), so compression artifacts can be more visible. If your image will be viewed mostly on phones, test it on an actual phone before finalizing. A quality setting of 80 to 85 usually looks good on both, but 70 might look noticeably soft on a phone even if it looks fine on a computer monitor.

What if I need to edit the image after I compress it?

Always keep the original uncompressed version. Once you compress a JPEG, you lose data that can't be recovered — editing a compressed JPEG and re-compressing it degrades it further. Save your work in a lossless format like PNG or your editor's native format (PSD for Photoshop, XCF for GIMP), then export to JPEG only when you're done and ready to share.