# How to Compress Images for the Web (Fast Pages)

> **TL;DR:** To compress images for the web, first resize them to the size they will be shown (usually 1600–2000 px wide at most), then export as WebP or JPEG at quality 75–85. Use PNG only for logos and graphics with transparency. In Falak, use File › Export, pick WebP and adjust the quality slider while watching the file size.

**Key takeaways**
- Resize to the size you display before compressing
- WebP is usually 25–35% smaller than JPEG at the same quality
- Quality 75–85 is the sweet spot for photos
- Use PNG only for graphics that need sharp edges or transparency

Images are usually the heaviest part of a web page. If you compress images for the web properly, pages load faster, visitors stay longer and search engines reward you — page speed is part of Google's page experience signals.

## The three steps that matter

1. **Resize first.** A 6000-pixel camera photo shown at 800 pixels wastes over 90% of its data. See [How to Resize an Image Without Losing Quality](/blog/resize-image-without-losing-quality/).
2. **Pick the right format.** Photos → WebP or JPEG. Logos, icons, screenshots with text → PNG or SVG.
3. **Choose a sensible quality.** For photos, 75–85 looks identical to the original for most people.

## Which format should I use?

| Image | Best format | Typical saving |
| --- | --- | --- |
| Photos | WebP (or JPEG) | WebP ~25–35% smaller than JPEG |
| Logos, icons | SVG | Tiny and sharp at any size |
| Screenshots, flat graphics | PNG or WebP lossless | Keeps text crisp |
| Images with transparency | WebP or PNG | WebP smaller |
| Animations | Short MP4/WebM instead of GIF | Often 80–90% smaller |

All modern browsers support WebP. Full comparison in [PNG vs JPG vs WebP: Which Image Format to Use](/blog/png-vs-jpg-vs-webp/).

## How to compress images for the web in Falak

1. Open the image and resize it with **Image › Image Size…** if it's larger than you need.
2. Choose **File › Export…**.
3. Pick **WebP** (or JPEG) and move the **quality** slider. Watch the estimated file size.
4. Zoom into a detailed area — hair, foliage, text — and lower the quality until you just start to notice a difference, then go one step back up.
5. Export.

> **Tip:** Strip what you don't need. Exports from Falak don't carry hidden layers or history, so they are already lean.

## How small should web images be?

There's no single rule, but these targets work well:

- **Hero/banner images:** under 200–300 KB
- **In-article images:** under 100–150 KB
- **Thumbnails:** under 30 KB

## Does compression affect SEO?

Indirectly, yes. Smaller images make pages load faster, which improves Core Web Vitals such as Largest Contentful Paint. Also add descriptive **alt text** and meaningful file names (`red-running-shoes.webp`, not `IMG_4032.webp`) — they help image search.

## Compressing many images

Record "resize + export WebP" once as an Action, then run **File › Automate › Batch** on the folder. See [How to Batch Edit Photos (Save Hours)](/blog/batch-edit-photos/).

Further reading: [web.dev: Learn Images](https://web.dev/learn/images).

## Frequently asked questions
### What is the best image format for websites?
WebP for photos and most graphics, SVG for logos and icons, and PNG for screenshots that need perfect text edges. All modern browsers support WebP.

### What quality should I use when exporting JPEG or WebP?
Quality 75–85 is the sweet spot for photos. Below 70 you may see blocky artefacts in skies and gradients; above 90 files grow quickly with little visible gain.

### How do I reduce image size without losing quality?
Resize to the displayed size, then use lossless compression (PNG or lossless WebP) for graphics, or quality 80–90 for photos. Most of the saving comes from resizing.

### Should I still use GIF for animations?
Usually not. Short MP4 or WebM videos are far smaller and smoother. Falak exports both — see [How to Make a GIF (or Short Video) for Free](/blog/how-to-make-a-gif/).
