Skip to main content
●GuideOctober 26, 20265 min read

How to Resize an Image to a Specific Size in KB (Without Uploading It)

Get a JPG, WebP or PNG under a KB limit without an upload site: check the cap, shrink the pixels, then tune quality. Steps for desktop and browser.

How to Resize an Image to a Specific Size in KB (Without Uploading It)

Reading time
5 min

Short answer: file size depends mostly on two things, the number of pixels and how hard the image is compressed. To get under a limit such as 200 KB, first reduce the dimensions to what the destination actually displays, then export as JPG (or WebP, if it's accepted) and lower the quality until the file fits, leaving a small margin. PNG is lossless, so for PNG the levers are fewer pixels or fewer colours.

Desktop apps and command-line tools can do all of this on your own machine, so the file never has to go to a conversion website.

Step 1: Read the requirement carefully

Before you touch the image, write down exactly what the form or site asks for:

  • The maximum size, and whether it says KB or KiB. In SI units a kilobyte is 1,000 bytes; 1,024 bytes is a kibibyte, per NIST's notes on binary prefixes. Many systems still write "KB" for either. If you aren't sure, aim for about 5% under the stated number.
  • Accepted formats. Some uploads accept JPG and nothing else; others take PNG or WebP.
  • Required dimensions, if any, such as a fixed width and height for a profile photo.

Step 2: Reduce the dimensions first

A 4000×3000 photo has 12 million pixels. Resized to 1200×900, it has just over one million, under a tenth of the data before compression starts. If the destination shows the image at 1200 pixels wide, every extra pixel is size you pay for and nobody sees.

Keep the aspect ratio locked so the image isn't stretched. If the required shape differs from your photo, crop rather than squash.

Step 3: Choose the right format

  • JPG is built for photos and supports a quality setting.
  • WebP supports lossy compression with a quality setting too, and often produces smaller files for the same visual quality, but not every upload form accepts it. MDN's image format guide summarises where each format fits.
  • PNG is lossless. It suits screenshots, logos and flat graphics, but it has no quality setting to trade size for detail. To make a PNG smaller, reduce its dimensions or convert it to JPG if the destination allows.

Browsers reflect the same split: the canvas toBlob() method takes a quality value just for formats that support lossy compression, such as JPEG or WebP.

Step 4: Lower the quality until it fits

Export at a moderate quality, check the file size, and adjust. Halving the range each time is an efficient approach: try 80; if it's too big try 60; if that's comfortably under, try 70, and so on. Stop at the highest quality that fits.

Then look at the result at the size it will be displayed. Faces, text and sharp edges show compression artefacts first.

A worked plan for a 200 KB cap

Step Action Check
1 Confirm the cap (200 KB), accepted formats (JPG) and any required dimensions Note whether the form says KB or KiB
2 Resize to the display width, for example 1200 px, aspect ratio locked No stretching
3 Export as JPG at quality 80 Over 200 KB? Go to 4. Under? Done
4 Try lower quality in halving steps Keep the highest quality that fits
5 Still over at a low quality? Reduce the dimensions further or crop Re-run step 3
6 Inspect at actual size Text and faces still clear

Step 5: Do it with local tools

On a Mac, with Preview: open the image, choose Tools > Adjust Size, keep "Resample image" selected, and enter smaller dimensions or a lower resolution. Apple's guide notes that Preview shows the new size at the bottom of the window.

On the command line, with ImageMagick: its jpeg:extent setting caps the size of a JPEG output, so ImageMagick picks the quality for you:

magick photo.png -resize 1200x -define jpeg:extent=190KB photo.jpg

This resizes to 1200 pixels wide and asks for a JPEG of at most 190 KB, which leaves a margin under a 200 KB cap.

In the browser, with an extension: browser-based tools can do the same work in the page itself, using the canvas APIs above (including OffscreenCanvas.convertToBlob()), instead of sending the file to a server.

When it still won't fit

If quality is already low and the file is still too big:

  • Reduce the dimensions again. That usually helps more than another quality step.
  • Crop away background that doesn't matter.
  • Convert a PNG photo to JPG, if the destination accepts it.

For screenshots and diagrams that must stay sharp, a smaller PNG at fewer pixels can look better than a heavily compressed JPG.

Doing it in the browser with Image Resizer

Image Resizer adds a target-file-size mode to this workflow. According to its Chrome Web Store listing, you set a target such as "≤ 200 KB" and it adjusts JPG or WebP quality to stay within that limit, with quick-select presets and a custom size input. The v0.3 release notes describe the presets as 100 KB, 200 KB, 500 KB and 1 MB. Upload forms differ on whether 1 KB means 1,000 or 1,024 bytes, so set the target a little under the stated limit, for example 190 KB for a 200 KB cap.

Image Resizer settings panel with JPG output selected and a quality control that can switch between percent and KB.

With JPG output selected, the quality control switches between a percentage and a KB target. Image from the Chrome Web Store listing.

Target size isn't available for PNG, because PNG is lossless: the release notes say target size is disabled when PNG is the output format.

The listing also covers resizing to exact dimensions, Stretch, Fit and Crop modes, 22 built-in presets, conversion between JPG, PNG and WebP, bulk processing with ZIP export, and pasting from the clipboard. It says the extension runs on your device using the browser's OffscreenCanvas API and requests no host permissions. The resizing and compression themselves happen in your browser, so an image you open from your computer isn't uploaded to a conversion site.

If a format can't get under the target at the current dimensions, reduce the width or height, or switch to a format the destination accepts that compresses better, such as JPG or WebP instead of PNG.

FAQ

Can I reduce an image's KB size without changing its dimensions?

Yes, for JPG and WebP: lower the quality setting. There's a limit, though. Past a certain point artefacts become visible, and reducing dimensions is the better trade.

Why can't I set a target size for a PNG?

PNG is lossless, so there's no quality setting to lower. Reduce its dimensions, or convert it to JPG or WebP if the destination accepts those formats.

Is 200 KB the same as 0.2 MB?

In SI units, yes (200,000 bytes). If a system counts in binary units, 200 KiB is 204,800 bytes. Staying a little under the limit avoids the question.

To set a KB target from your browser, add Image Resizer to Chrome. It's free.

More about the extension: Image Resizer.

Filed underimage resizerimage compressionjpgwebp

● More from the journal

  1. 01

    How to Download SoundCloud Cover Art in Full Size

    Save SoundCloud cover art at the largest size that really exists: find the artwork URL, swap the size suffix for -original, and spot enlarged copies.

    GuideOctober 28, 2026
  2. 02

    Best SoundCloud Extensions for Chrome and Firefox (2026)

    Six SoundCloud extensions for Chrome and Firefox, picked by job: feed filters, dark theme, popup players, downloads with tags, and history. Checked Oct 2026.

    ListicleOctober 28, 2026
  3. 03

    What Data Can Browser Extensions See?

    Learn what browser extensions can see: site access, tabs, history, clipboard and network requests, how to read the install prompt, and how to limit access.

    GuideOctober 28, 2026