Skip to content
Free · In your browser · No signup

Resize images to exact pixels and compress to KB

Set a file-size limit, an exact width and height, or both. JPG, PNG and WebP files are processed on your device, and each result is checked against your numbers before you download it.

Choose images or drag & drop

JPG, PNG, or WebP · processed on this device · nothing is uploaded

Target size

Pick a tool

Also:Image cropperRequirement checkerGuides

Popular image requirements

Tap one to set up the tool above, then add your image. These are common figures, not rules for any particular form, so check the exact numbers on the form you're submitting.

How it works

  1. Step 1

    Add your image

    Drop in one photo or a batch. JPG, PNG and WebP are supported.

  2. Step 2

    Set the requirement

    Type a maximum file size (like 100 KB), an exact width and height, or both.

  3. Step 3

    Check, then download

    Each result shows ✓ or ✕ for size, pixels and format before you save it.

File size and pixel size are different numbers

File size (KB)

How much storage the file takes. Forms often cap it, for example "under 100 KB". The compressor searches for the highest JPG or WebP quality that fits, and scales the image down only if quality alone can't get there. When it does, the result says so. See how to reduce a photo's size in KB.

Pixel dimensions (px)

The width and height of the picture, such as 300 × 400. The resizer gives you that exact size and lets you choose to crop, fit or stretch when the shape doesn't match. Many forms ask for both numbers, and you can set both in one pass. See the image resizing guide.

Formats

JPG and WebP are lossy and have a quality setting, so they suit strict size limits. PNG is lossless: right for screenshots, logos and transparency, but it gets smaller mainly by resizing. More in PNG vs JPG.

Privacy

Your browser opens, edits and saves the image in this tab. There's no upload step and no server copy to delete, and you can confirm it by watching your browser's network activity. How it works.

Frequently asked questions

Can I compress an image to an exact file size, like 100 KB?

Yes. Pick a preset or type your own limit, and the tool searches for the highest quality that still lands at or under it. The result shows a ✓ when it fits. If it can only fit by making the image smaller, it says so.

Do you upload my photos to a server?

No. Decoding, resizing, compressing and converting all run in your browser using the canvas APIs built into Chrome, Firefox, Safari and Edge. Your file is never sent over the network.

Can I resize to an exact pixel size, not just a percentage?

Yes. Enter a width and height. With the aspect ratio locked you can set just one and the other is calculated; with both set, you choose whether to crop, fit or stretch to that exact box.

What if my file size limit and my pixel size conflict?

The result shows the size you asked for next to the size you got, instead of quietly changing it. PNG has no quality setting, so switching the output to JPG or WebP usually keeps the exact pixel size; otherwise, raise the file-size limit.

Which formats are supported?

JPG, PNG and WebP, for both input and output. JPG and WebP have a quality setting, which makes them the better choice for strict file-size limits. PNG is lossless, so tight limits are met by resizing instead.

FEEDBACK

Run into an issue with an image, or need a tool we don't have yet? Email us — we'll look into fixing it or adding it.

Send feedback