Exact pixels · Optional KB cap · Never stretched

Resize image to exact size

Set the exact width and height a form asks for, then optionally cap the file size in KB. We crop to the right aspect ratio and scale - never stretch. Your photo never leaves this device.

Drop an image here, or click to choose

JPG - PNG - WebP · up to ~50 MB · your file never leaves this device

Width px Height px Max size KB

Exact pixels, never stretched: we crop to the required aspect ratio first, then scale. EXIF rotation is applied before cropping.

"Max size" is a ceiling, not a target. If the resized image is already under it, we keep the best quality instead of compressing again.

Processing...
Compressed preview
Download resized image
Not happy with this result? Send feedback · includes build & size info, never your image · anonymous usage counts only (no personal data).

How it works

Everything runs in your browser with HTML canvas - your photo is never uploaded. We first apply the image's EXIF orientation (so portrait shots from a phone stand upright), then crop a centered region matching the exact aspect ratio you asked for, and finally scale it to those exact pixels. Cropping instead of stretching means faces and proportions stay natural. If you also set a KB cap, the encoder searches for the highest quality that fits - it will never shrink the image to hit the cap, because that would break the required dimensions. The cap is a ceiling, not a target: at 600x600 a WebP photo is usually only 20-50 KB even at maximum quality, so a 240 KB limit is never reached and we keep the best quality instead of compressing again. The result panel always shows the cap status. The optional feedback form sends only the text you type plus basic technical details - never your photo.

Common photo requirements

RequirementExact pixelsNotes
US DV / visa photo600 × 600 pxSquare, JPEG, and the upload portal caps the file at 240 KB. Most 600×600 WebP files land around 20-50 KB, so this cap rarely binds.
Passport photo 35 × 45 mm at 300 dpi413 × 531 px35 ÷ 25.4 × 300 ≈ 413; 45 ÷ 25.4 × 300 ≈ 531.
Square profile picture1000 × 1000 pxA common avatar size; many apps also cap the file at 1 MB.

Always check the exact wording on the form you are filling in - some portals specify pixels, others specify millimetres at a given dpi. If the form states a KB limit too, type it in the "Max size" box above and this page will satisfy both at once.

Frequently asked questions

Will my photo be stretched or squashed?

No. We crop a centered region to the exact aspect ratio first, then scale it to the requested width and height. Faces keep their natural proportions.

What size is a US visa / DV lottery photo?

600 by 600 pixels, square, as a JPEG. The DV portal also limits the file to 240 KB - pick the 600x600 preset and type 240 in the Max size box.

How many pixels is 35x45 mm at 300 dpi?

413 by 531 pixels: 35 / 25.4 * 300 = 413.4 and 45 / 25.4 * 300 = 531.5. The preset sets these for you.

Can I meet a pixel size and a KB limit at the same time?

Yes - that is the point of this page. Set the width and height, then enter the KB cap. The encoder searches for the highest quality that fits at those exact dimensions.

I set a 240 KB limit but the file is still tiny - is the cap broken?

No. The KB box is a maximum, not a target. A 600x600 WebP photo is only about 20-50 KB even at maximum quality, so a 240 KB ceiling is never reached and we keep the best quality instead of compressing again. The result panel says 'Cap is active but not binding' in that case. Your file already passes the portal check. The cap starts to matter with larger pixel sizes or very detailed images; if it cannot be met at the exact dimensions, we show a clear warning.

Will the format I picked be switched if the KB cap cannot be met?

No. If you explicitly choose JPEG or WebP, we keep that format and show a clear warning when the cap cannot be met at the required dimensions. Only the Auto setting tries both formats, and if neither fits it returns the one closest to your limit.

Is my photo uploaded anywhere?

No. All cropping and encoding happens locally in your browser. Nothing is sent to a server, so ID and passport photos stay on your device. The optional feedback form only sends text you choose to write plus technical details such as pixel dimensions - never your photo.

How do I report a problem or suggest an improvement?

Click Feedback in the footer, or Send feedback just below a result, and tell us what happened. The form sends only the text you type plus technical details such as the build version, page, chosen format, target size and image dimensions - never your photo, its file name or your IP address. An email address is optional and used only if we need to reply. Reports are reviewed daily, so telling us which page and settings you used helps us reproduce and fix the issue faster.