Tips・Publishing your work

Make images lighter to speed up your page

Most of the time, the reason a page is slow is heavy images. Here are two free tools that compress right in the browser before you upload, along with a guide to "what number of KB to aim for in the first place."

The reason a page displays slowly is usually that the images are heavy. A photo taken on a phone is several MB as is, which is too big to put on the web. This article introduces two free compression tools you can use right in the browser, along with a guide to the file size to aim for. No installation or sign-up needed.

How light should you make it?

UseTarget
One photo (for articles / cards)200KB or less
A large hero photo500KB or less
Icon / logo50KB or less

Put a phone photo (3–5MB) up as is and it’s more than 10 times these targets. But don’t worry—just running it through a tool usually makes it 70–80% lighter while the look barely changes.

Why it gets lighter while “looking the same”

Most image compression uses a method called lossy compression, which makes files smaller by thinning out color changes and fine details that are hard for the human eye to tell apart. Photos have a lot of color information to begin with, so even thinning it out a little barely changes the impression of the look. That’s exactly why just running it through a compression tool can make it dramatically lighter.

TipsHow to choose an image format (JPG, PNG, WebP, SVG)Which format to choose in the first place—JPG, PNG, WebP, and so on—is in this article

TinyPNG

The handiest go-to tool. Just drag and drop onto the page and it compresses automatically; then you just download the finished file. It can process up to 20 at once in a batch.

TinyPNG’s top page. In the center is a dotted-line frame that says “Drop your images here!”—you drag and drop images here
Just toss the image into the dotted-line frame. In a few seconds it shows “how many percent lighter it got.”

TinyPNG

If you just want it lighter without fiddling with settings, this is the one. On top of PNG, JPG, and WebP, it supports newer formats like AVIF and JPEG XL (up to 5MB per image). However, converting to a different format is limited to 3 images on the free plan, so if you want to make WebP, the next tool, Squoosh, is more suitable.

Squoosh

A compression tool made by Google. Its biggest feature is that when you move the quality slider, you can compare the result on the spot. With a split view—original on the left, compressed on the right—you can decide while checking with your own eyes “how far can I lower the quality and still be fine.”

Squoosh’s top page. The pink circle in the center says “Drop OR Paste”—you drop an image to use it
Drop it and you’re taken to the edit screen. In the bottom-right panel you can adjust quality, format, and size.

Squoosh

Beyond compression, you can also do shrinking the width and height (resizing) and converting to WebP, a format built for small file sizes right here. When you want to carefully finish a single image, use this.

Before compressing, review the “size” too

Something that’s surprisingly effective is shrinking the image’s width and height before compressing. A phone photo is about 4000px wide, but if you display it at 400px wide on the page, you don’t need that much.

  • A good rule of thumb is “twice the width you display it at” (displaying at 400px wide → 800px wide is plenty. Twice, because of high-resolution screens)
  • Resizing can be done with Squoosh’s “Resize”
  • Running it in the order shrink → compress makes it the lightest

Which one? A quick comparison

Both are free and run entirely in the browser, but they’re good at different things.

TinyPNGSquoosh
Good atLightening a batch quicklyFinishing one image carefully
Images at a time20One at a time
Quality controlAutomatic (no settings)Free control with a slider
Before / after comparisonNoneSide by side in a split view
Resize (shrink dimensions)NoYes
Convert to another formatFree up to 3Any number

TinyPNG for ten photos for an article all at once, Squoosh for squeezing the one big hero image to its limit—that’s the most practical division of labour.

When compressing doesn’t make it faster

You lightened the images and it still doesn’t feel faster? Then the cause is more likely how many images there are and when they load.

  • Put off-screen images off until later—adding loading="lazy" to an img tag stops it loading until you scroll near it. On sites with many images further down the page, this can beat compression
  • Write the width and height—writing width and height reserves the space before the image arrives, preventing the layout from jumping while it loads
  • Check you’re not shrinking a big image with CSS—showing a 2000px-wide image at width: 300px still downloads all 2000px of weight. Shrink the file itself

So the order that works is three steps: shrink the dimensions → compress → defer the loading.

If you’re publishing on WordPress

With WordPress, the sure bet is a plugin that compresses automatically as you upload. Any manual step will eventually be forgotten, so leaving it to the machinery lasts longer. On top of that, WordPress generates several sizes from each upload, so simply picking the size that fits the display instead of the original makes your pages lighter.

TipsMaking WordPress faster (in order of impact)Ways to speed up WordPress, images and everything else, ordered by how much they helpTipsFree photo and illustration stock sitesWhere to find the photos in the first place: a roundup of free stock image sitesTipsHow to publish your site on the internetWith your lightened images, the steps to publish a site for free are here

Summary

  1. For photos, aim for 200KB or less. A phone photo as is is a no-go
  2. TinyPNG for handiness, Squoosh for checking the result and resizing
  3. The order is “shrink, then compress.” Make it a before-publishing habit
  4. Still slow? Add loading="lazy" and write width / height
  5. Always keep the originals elsewhere—lossy compression can’t be undone

Just having light images makes the first impression of your page “a snappy, well-built site.”

FAQ

Does compression lower the quality?
Quality does drop a little, but TinyPNG and Squoosh are designed to thin out information down to a range 'the human eye can barely tell.' The basic outcome is that the look stays the same while the file size drops a lot. If you're worried, compare before and after in Squoosh's split view.
Why does the file size sometimes barely change even after compressing?
Images already saved in a light format (like WebP), or simple images with few colors, have little waste to begin with, so their room to shrink through compression is also small. The big effect comes from 'information-rich images,' like a photo straight off your phone.
Does quality degrade if I compress over and over?
Lossy compression (like JPG and WebP) loses a little information each time you compress. Keep the original image, and make it a habit to compress only the copy meant for publishing, to stay safe.