Fit a photo to an upload form

Set the exact pixel width and height and a file limit such as 20 kB. Crop or add white borders, then save a JPEG.

How to use it

Choose a photo and enter the required width, height and maximum file size. Choose a crop or white borders, check the JPEG preview and save it.

Example

For a form asking for 300 × 400 pixels and at most 20 kB, enter 300 and 400 and keep the 20 kB limit. Save when the preview shows 20,000 bytes or fewer.

Common questions

What if my photo is too large at the required dimensions?

The tool lowers JPEG quality while keeping the width and height you entered. If even the lowest quality exceeds the limit, it shows the measured bytes. You can raise the limit or change the dimensions if your form allows it.

Which files can I open here?

Supported file types include JPEG, PNG, WEBP.

Where does the work happen?

Your browser does the work on your device. The site serves the tool. You choose what to copy, download or share.