Resize an image to exact pixels and a KB range — in one step

This tool makes an image an exact width and height in pixels and keeps the file between the minimum and maximum KB you set, for forms that check both.

Live demo · real result from this tool

Drop your image here

or paste with Ctrl+V · nothing is uploaded · add several to process them in one go

Fit

Your result appears here — processed on your device.

Processed on your device — nothing is uploaded.

How to use Resize Image in KB and Pixels

  1. Choose a photo or scan.
  2. Type the Width and Height in pixels. The defaults are 600 and 800.
  3. Choose a Fit: Crop to fill, Fit with margins or Stretch. With margins, pick a Margin colour.
  4. Set the Minimum size and Maximum size in KB (defaults 20 and 100). Add a DPI to write if the form asks for one.
  5. Pick a Format (JPEG suits nearly every form) and tick Pad to the minimum KB if needed if your file may come out too small.
  6. Press Resize and download the file, named with its new pixel size.

What it does and when to use it

Many online forms check two things at once: the image must be exactly a certain size in pixels and its file must sit inside a KB window. Doing that by hand means resizing in one app, then saving again and again at different qualities until the number is right.

This tool does both together. Use it when:

  • A government or recruitment form gives you something like “200 × 230 px, 20–50 KB”.
  • A university or visa portal asks for a photo at set pixels with a maximum file size.
  • An internal system wants every staff photo at one size for a directory.
  • You need a scan at a fixed size and DPI for a print template.

If the form only gives a maximum size and no pixel dimensions, the simpler pages such as Compress Image to 50 KB are quicker. If the form names a particular exam, check for a ready-made page like the IBPS Photo & Signature Resizer, which has the official numbers built in.

How it works

Everything runs on your device in a background worker.

  1. Exact pixels first. The image is brought to your width and height. Crop to fill trims the edges, keeping a little more of the top than the bottom so heads are not cut. Fit with margins shrinks the image to fit and fills the gaps with your colour. Stretch simply forces the size.
  2. Transparency. For JPEG, any transparent areas become white first, since JPEG cannot store transparency.
  3. Quality search. The tool tries the highest quality. If the file is over your maximum, it searches between that and a floor of 30% quality, halving the gap each try, and keeps the best quality that fits. It never changes your pixel size to hit the target.
  4. The minimum. If the result is below your minimum, the tool either pads the JPEG (if you ticked the option) or tells you clearly.
  5. DPI. If you typed a DPI, it is written into the JPEG or PNG header.

Worked examples

600 × 800 px, 20–100 KB, from a landscape photo. A 4,000 × 3,000 px landscape photo is wider than the 3:4 portrait shape. With Crop to fill, the tool keeps the full height and a 2,250 px wide slice from the middle, then scales that to 600 × 800. It then lowers the JPEG quality only as far as needed to get under 100 KB, and the result line reports the quality it used.

200 × 230 px, 20–50 KB. This is a common photo size on Indian recruitment forms. A picture this small has only 46,000 pixels, so even at top quality it may come out below 20 KB. Tick the padding option and the file is raised to the minimum without touching the image.

A document at 1,240 × 1,754 px, 300 DPI, under 200 KB. Choose Fit with margins so no part of the page is cut, white margin colour, and type 300 in the DPI box. If 200 KB is out of reach, the tool says so and shows the smallest it managed.

Limits and tips

  • Some targets are impossible. Very large dimensions with a tiny maximum cannot work, because the tool will not drop below 30% quality or change your pixels. Pick smaller dimensions or a plainer picture.
  • Padding is JPEG-only. For WebP and PNG, a too-small file is reported rather than padded.
  • PNG ignores quality. PNG is lossless, so the KB limit can only be met if the picture is simple, such as a signature or a chart.
  • Noise costs bytes. Grainy low-light photos and busy backgrounds make bigger files. A plain wall and good light help a lot.
  • Need only a resize? The Image Resizer changes pixels without any KB target. Need only the crop? Use the Image Cropper first, then come back here.

Frequently asked questions

How is this different from the compress-to-size tools?
The compress pages only set a maximum and are free to shrink the picture. This tool keeps your exact pixel size, and it also handles a minimum, which many application forms have.
Why would a form ask for a minimum file size?
A tiny file usually means a blurry or heavily compressed picture, so portals use a minimum to reject unreadable uploads. The tool aims for the best quality that still fits under your maximum.
What does padding do?
If even the best quality is below your minimum, padding adds empty bytes to the end of the JPEG so the file reaches the minimum. The picture does not change. It only works for JPEG output.
Which fit should I choose?
Crop to fill when the subject can lose a little from the edges, such as a portrait. Fit with margins when nothing may be cut, such as a document or signature. Stretch only if the form insists and distortion does not matter.
What is the DPI box for?
Some forms ask for 200 or 300 DPI. Typing a value writes it into the file's header. The pixels stay the same; DPI only tells printers how large to print them.
Does 1 KB mean 1,000 or 1,024 bytes here?
The maximum is read as 1,024 bytes per KB, the stricter reading, so a file that passes here also passes a portal that counts 1,000.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close