21+ years in hosting · Jaipur, India · INR billing with 18% GST · 24/7 email support
Blog · WebJi® India

How to Decrease Image File Size

Quick answer

To decrease image file size, resize the picture to the width it is displayed at, save photographs as WebP or JPEG around quality 75, and strip camera metadata. A 4–5 MB phone photo typically drops to about 150–300 KB as a 1600-pixel WebP. Keep PNG or SVG for logos and screenshots.

For site owners, students and office staff who need smaller images for a web page, an upload form or an email.

✓ In business since 2005
✓ INR + GST billing
✓ 24/7 Email Support — avg reply < 60 min
GuideWebJi®
knowledge
Read time
6 min
Sections
8
Updated
14 Nov 2026
Written by
WebJi® team

What actually decreases an image's file size?

Three changes reduce image file size, in this order: fewer pixels (resize), a format that suits the picture, and a lower compression quality. Resizing does most of the work; a 4000-pixel phone photo shown in an 800-pixel slot carries 25 times the pixels the page needs.

  1. Resize to the widest size the image is displayed at, or twice that for sharp high-density screens.
  2. Pick the format: photographs to WebP or JPEG, logos and icons to SVG, screenshots to PNG or WebP.
  3. Compress a photo near quality 75 and judge it at its real display size, not zoomed in.
  4. Strip metadata: EXIF and GPS data add bytes and can reveal where a photo was taken.

CSS does not help here. A width, max-width or background-size rule changes how big the picture is drawn, but the browser still downloads the full file.

Which image format gives the smallest file?

For photographs, WebP is usually smaller than JPEG at a similar look, and AVIF is often smaller still; for flat graphics, SVG or PNG wins. The wrong format costs more than any quality slider: a photo saved as PNG can be several times larger than the same photo as JPEG.

Image formats by use, and what each does to file size
FormatBest forCompressionTransparency
JPEGPhotos where every app must open the fileLossyNo
WebPPhotos and graphics on websitesLossy or losslessYes
AVIFPhotos, when your site actually serves itLossy or losslessYes
PNGScreenshots, text-heavy graphicsLossless (PNG-8 reduces colours)Yes
SVGLogos, icons, simple diagramsVector, scales without pixelsYes
GIFOnly very short, simple animation256 coloursOne colour

On WordPress, converting images to WebP covers plugins and server-side conversion. WordPress has accepted WebP uploads since version 5.8 and AVIF since 6.5.

How do you compress an image to 100 KB, 200 KB or another limit?

Resize first, export as JPEG or WebP near quality 75, then lower quality in steps of about 10 or reduce the width again until the file is under the limit. Government and exam forms in India often set caps such as 50 KB or 100 KB for photos and signatures; check the form's exact pixel and KB rules.

Rough starting widths for common upload caps (photographs, JPEG or WebP)
CapTry a width ofThen
2 MB2000–2500 pxUsually met by the resize alone
200 KB1200–1600 pxQuality 70–80
100 KB (0.1 MB)800–1000 pxQuality 60–75
50 KB500–700 pxCrop tighter if faces break up

These are starting points, not guarantees: a detailed crowd photo needs more bytes than a plain portrait. Browser tools such as Squoosh show the before and after side by side, and TinyPNG handles small batches.

How do you reduce image size on Windows, Mac, Word or Photoshop?

Every common app can resize and re-save an image; change the pixel dimensions first, then the quality. Lowering quality alone on a full-size camera photo rarely reaches a tight cap without visible damage.

  • Windows Paint: Home → Resize → Pixels with "Maintain aspect ratio" ticked, then File → Save as → JPEG.
  • Mac Preview: Tools → Adjust Size, then File → Export, choose JPEG and move the Quality slider.
  • Word or PowerPoint: select the picture → Picture Format → Compress Pictures, choose a lower resolution and tick "Delete cropped areas".
  • Photoshop: Image → Image Size to set the width, then File → Export → Export As and pick JPEG or WebP.

How do you shrink images in bulk from the command line?

ImageMagick, Google's cwebp and macOS sips resize and compress whole folders in one command. Work on copies and keep your originals.

# ImageMagick 7: shrink to 1600 px wide (never enlarge), strip metadata, quality 75
magick photo.jpg -resize '1600x>' -strip -quality 75 photo-small.jpg

# ImageMagick: aim for a JPEG of at most 100 KB
magick photo.jpg -resize '1000x>' -strip -define jpeg:extent=100kb photo-100kb.jpg

# cwebp: 1600 px wide WebP at quality 75 (0 keeps the aspect ratio)
cwebp -q 75 -resize 1600 0 photo.jpg -o photo.webp

# macOS sips: longest side 1600 px
sips -Z 1600 photo.jpg --out photo-small.jpg

# whole folder to WebP (bash/zsh)
for f in *.jpg; do cwebp -q 75 -resize 1600 0 "$f" -o "${f%.jpg}.webp"; done

On ImageMagick 6 replace magick with convert. cwebp drops EXIF by default; add -metadata exif only if you need to keep it.

How do you decrease image file size in WordPress?

Resize and compress before uploading, then let WordPress serve its smaller generated sizes through the srcset it adds to content images. WordPress creates copies at the sizes under Settings → Media (150, 300 and 1024 pixels by default, plus 768, 1536 and 2048), and since version 5.3 scales any upload wider than 2,560 pixels down to that limit.

Those copies help only if the theme uses them. In the block editor, pick Large or a smaller size rather than Full Size when it covers the slot. Recent WordPress versions also skip lazy loading on the first content image and mark the likely hero with fetchpriority="high", so do not force lazy loading on the hero with a plugin. The WordPress image optimisation guide covers plugins and CDN conversion in more depth.

On WebJi® WordPress hosting the global CDN serves files from nearby locations, but it delivers the file you uploaded; a 4 MB original is still 4 MB. If an upload is rejected for size, email support@webji.services to confirm the account's upload limit.

How small should an image be after compression?

For most web pages, a full-width hero photo of roughly 100–300 KB and content images under 100–150 KB are realistic targets after resizing and WebP conversion. Measure, then fix the heaviest files first.

Typical results from the steps above (worked examples, not guarantees)
Starting fileAfter resize + WebP q75
4000 × 3000 phone JPEG, 4–5 MB1600 px wide, about 150–300 KB
Full-HD PNG screenshot, about 2 MBWebP or PNG-8, about 80–200 KB
1200 px PNG logoSVG of a few KB, if the original artwork exists

To check, open your page, press F12, go to the Network tab, filter by Img and sort by size. Lazy loading delays off-screen images but never makes a file smaller; the lazy loading guide explains where it helps. If speed is still poor after the images are fixed, the website speed test shows what else is slow.

FAQ

Frequently asked questions

Does compressing an image reduce its quality?

Lossy compression removes detail, but near quality 75 the loss is rarely visible at normal viewing size. Lossless compression keeps every pixel and saves less. Resizing to the displayed width does not look worse, because the extra pixels were never shown anyway.

Why is my PNG photo so large?

PNG stores every pixel losslessly, which suits sharp-edged graphics but not the fine colour variation in photographs. Convert a photo to WebP or JPEG; keep PNG for screenshots and graphics with text, or try PNG-8 if the image uses few colours.

Can I reduce image size on my phone?

Yes. Most gallery apps have a resize or edit-and-save-copy option, and a browser tool like Squoosh runs on mobile Chrome and Safari. Sharing a photo through some messaging apps also compresses it, but you lose control over the final size and quality.

Should I keep the original after compressing?

Yes, always keep the full-size original offline. Re-compressing an already compressed JPEG adds artefacts each time, and you may need a larger version later for print, a redesign or a high-density display.

Commands checked against ImageMagick 7, libwebp cwebp and macOS sips on 14 November 2026 · Reviewed by the WebJi® team, Jaipur.

WebJi® since 2005

Ready to get started with WebJi®?

Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.