The fastest way to reduce file size is to change the format, then compress

Image file size depends on three things: the format you save in, the dimensions (width and height in pixels), and how much compression you explore. Most people can cut file size in half just by switching from PNG to JPEG, then cut it in half again by lowering the quality slider. If you need the image smaller still, you resize the actual dimensions — a photo that is 4000 pixels wide takes up four times as much space as one that is 1000 pixels wide, even in the same format.

The tool you use matters less than understanding what each format does. Your phone, your computer, and free online tools like TinyPNG or Squoosh all work the same way: they let you pick a format, set quality or compression, and read the result. The choice of tool is about what you already have open and whether you want to process one image or fifty at once.

Key Takeaways

  • JPEG is smaller than PNG for photographs because it throws away detail your eye cannot see; PNG keeps all detail and is better for graphics with solid colors or text.
  • Lowering the quality or compression setting in your tool reduces file size, but too low and the image looks blurry or blocky — test at 70 to 80 percent quality first.
  • Resizing the actual dimensions (width and height) cuts file size much faster than compression alone, because a smaller image has fewer pixels to store.
  • Free tools like Squoosh, TinyPNG, and your phone's built-in editor handle most reductions without needing to buy software.

JPEG versus PNG: which format saves more space

JPEG is smaller because it discards information. It removes detail in colors and patterns that human eyes usually cannot see, especially in photographs with gradients, shadows, and natural variation. A photo of a landscape or a person's face compresses to perhaps 20 to 30 percent of its original size in JPEG format. The trade-off is that JPEG cannot store a transparent background, and if you zoom in very close you may see artifacts — small blocky or blurry areas where the compression happened.

PNG keeps all the original detail. It is better for graphics with solid colors, sharp edges, text, or logos, because there is nothing to throw away without making the image look wrong. A PNG file of a logo or a screenshot is usually larger than a JPEG of the same dimensions, but the image stays crisp. PNG also supports transparency, so you can have a checkered background show through instead of a white or colored box.

If your image is a photograph, start with JPEG. If it is a graphic, a screenshot, or anything with text or a transparent background, use PNG. You can always convert between them in any image editor — the file size difference is the main reason to pick one over the other.

How to compress without resizing the image

Every image editor and online tool has a quality or compression slider. In JPEG, this is usually labeled "Quality" and ranges from 0 to 100. In PNG, it is often called "Compression" and also ranges from 0 to 100, but it works differently — higher compression means smaller file size, whereas in JPEG higher quality means larger file size. Start at 70 to 80 percent quality for JPEG and test the result before you save.

Open your image in any tool — your phone's Photos app, Windows Photos, Mac Preview, or a free online tool like Squoosh. Look for an export, save, or read button. Before you click it, you should see a slider or a number field where you can adjust quality. Lower the number, watch the preview update, and stop when the image starts to look noticeably worse. Most photographs look fine at 75 percent quality and save 40 to 50 percent of their original size. Logos and graphics usually need 90 percent or higher or they start to look fuzzy.

If you are uploading to a website, the site often compresses again after you upload, so you do not need to be perfect. If you are sending the file to someone else or storing it yourself, test on your actual device — what looks acceptable on a computer screen might look bad on a phone, or vice versa.

Resizing dimensions to cut file size faster

A photograph that is 4000 pixels wide and 3000 pixels tall contains 12 million pixels. The same photo resized to 2000 by 1500 pixels contains 3 million pixels — one quarter as many. File size scales roughly with pixel count, so resizing cuts the file size much faster than compression alone. If you compress a 4000-pixel photo to 75 percent quality, you might get it down to 2 MB. If you resize it to 2000 pixels wide first, then compress, you might get 500 KB.

Decide what size you actually need. If the image is going on a website, most screens are between 1000 and 1500 pixels wide, so an image wider than 2000 pixels is wasted space. If it is going in an email or a document, 1200 pixels wide is usually plenty. If it is a thumbnail or a small icon, 400 to 600 pixels is enough. Smaller is not always better — if you resize too small, the image looks blurry or pixelated — but most people resize too large, not too small.

In your image editor, look for a "Resize", "Scale", or "Image Size" option. Enter the new width in pixels, and the height usually adjusts automatically to keep the same proportions. Save the resized image, then explore compression as described above. You now have a file that is a fraction of the original size.

Free tools that handle the whole process at once

Squoosh (squoosh.app) is a free online tool from Google. Upload your image, and you see a before-and-after preview. You can switch between JPEG and PNG, adjust quality with a slider, and resize the dimensions all in one place. It shows you the file size after each change. You do not need to create an account.

TinyPNG (tinypng.com) is designed for PNG and JPEG files. Upload up to 20 images at once, and it compresses them all automatically. You read a zip file with the compressed versions. It uses a different compression method than Squoosh and sometimes produces smaller files, but you have less control over the quality setting.

Your phone's built-in editor works for quick jobs. On iPhone, open the Photos app, select an image, tap Edit, and look for the export or share options — you can usually choose a quality level. On Android, the Google Photos app has a similar feature. These are slower if you have many images, but they are free and already on your device.

Windows Photos and Mac Preview both let you export with quality settings. Open the image, choose Export As or Save As, pick your format, and adjust quality before saving. These are built into your operating system and work offline, which is useful if you do not want to upload files to a website.

When to resize, when to compress, and when to do both

If your file is only slightly too large — say, 2 MB and you need it under 1.5 MB — compression alone usually works. Lower the quality to 75 or 80 percent and test. If your file is much too large — say, 10 MB and you need it under 2 MB — you need to resize. A photo from a modern phone or camera is often 4000 to 6000 pixels wide, which is larger than almost any use case requires.

The order matters: resize first, then compress. Resizing removes pixels, so there is less data to compress. Compressing first, then resizing, wastes effort because you are compressing data you are about to throw away.

If you are uploading to a website like Instagram, Facebook, or a blog platform, the site usually compresses again after you upload, so you do not need to be aggressive. A JPEG at 80 percent quality, resized to 2000 pixels wide, is almost always fine. If you are storing the image yourself or sending it to someone else, you have more control and should test the result on the device where it will actually be viewed.

Batch processing when you have many images

If you have 50 photos to resize and compress, doing them one at a time is slow. TinyPNG lets you upload up to 20 at once and read them all compressed. Squoosh does not have batch processing built in, but you can open multiple browser tabs and work on several images in parallel.

On Windows, you can use the built-in Photos app to select multiple images, then export them all with the same quality setting. On Mac, Preview does not batch process, but you can use Automator or a free tool like ImageMagick from the command line if you are comfortable with that. For most people, uploading to TinyPNG in batches is the easiest route.

If you regularly process images — for a blog, a portfolio, or social media — consider a tool like Lightroom or Capture One, which let you explore the same resize and compression settings to hundreds of images at once. These are paid tools, but they save time if you do this work often.

Frequently Asked Questions

What quality setting should I use for JPEG?

Start at 75 to 80 percent and look at the result on the device where it will be viewed. Photographs usually look fine at this level and save 40 to 50 percent of file size. Logos, text, and graphics need 85 to 95 percent or they start to look blurry. There is no single right answer — it depends on what the image contains and how picky you are about quality.

Can I make a file smaller without losing quality?

Not really. Compression always throws away some information; you just cannot see it if the compression is done well. JPEG compression is invisible at 85 percent quality or higher for most photographs. PNG compression is lossless, meaning it does not throw away information, but it does not reduce file size as much as JPEG does. Resizing the dimensions is the only way to cut file size significantly without any quality loss, because you are removing pixels, not compressing them.

Should I use PNG or JPEG for images I am uploading to a website?

Use JPEG for photographs and JPEG for graphics with solid colors or text. Most websites re-compress images after you upload anyway, so the format you choose matters less than the dimensions. A 2000-pixel-wide JPEG at 80 percent quality is a safe choice for almost any website.

How do I know if my image is too small after resizing?

Open it on the device where it will be used. If it looks blurry or pixelated, it is too small. If it looks sharp and clear, it is fine. Most images look acceptable at 1200 to 1500 pixels wide on a computer screen and 800 to 1000 pixels wide on a phone. Smaller than that and you start to see pixelation in most photographs.

Can I undo compression if I saved over the original file?

No. Compression throws away information that cannot be recovered. Always save the compressed version with a new name, so you keep the original. If you only have the compressed version, you cannot get the lost detail back.