Resize Image to Fit Within a Box
Resize or change image size without stretching: fit within max width/height (contain). Resize JPG, resize PNG, resize WebP. Optional padding to exact box size. Export JPG/PNG/WebP.
Click to select or drag and drop images
Supports JPG, PNG, WebP, AVIF, GIF, HEIC, and more (max 50MB each)
Resize tools by intent
This page is for “no stretch” resizing: keep aspect ratio and fit inside limits like 1200×1200 or 1080×1920.
Fit within max dimensions (no stretching, no distortion)
Resize or change image size to stay under a maximum width and height. This is the safest way to resize photos for uploads, websites, and platforms with size limits.
Websites
Fit images within 1200×1200 or 1600×1600 to keep pages fast and consistent.
Social uploads
Fit within 1080×1920 for stories or within 1080×1080 for square uploads without stretching.
Sharing
Keep large camera photos under a max size so they upload faster in email and chat apps.
Limits
Perfect when you’re told: “Max 2000×2000” or “Must be under 1280×720”.
When should you enable padding?
- You need an exact output box sizeExample: exactly 1200×1200 for a layout — but you don’t want cropping.
- You want “no stretch” and “no crop”Padding keeps the whole image and preserves aspect ratio; it adds background bars.
Fit-within examples
Frequently Asked Questions
What does “fit within” mean?▼
Fit within (contain) resizes the image so it stays inside a maximum width and height without stretching or cropping. Aspect ratio is preserved.
Will fit-within crop my image?▼
No. Fit-within does not crop. If you need exact dimensions with no bars, you’d typically use a crop tool.
Why is my final image smaller than the max box?▼
Because fit-within preserves aspect ratio. One side may reach the maximum first; the other side becomes smaller to prevent stretching.
What is “Pad to exact box size”?▼
Padding keeps your image un-cropped and un-stretched, but adds background bars so the final output is exactly the box size (for example exactly 1200×1200).
Can I resize JPG, PNG, and WebP here?▼
Yes. You can resize JPG, resize PNG, resize WebP and export to JPG/PNG/WebP. Use PNG or WebP if you need transparency.
Resize safely (no stretch)
Enter a max width and height, pick optional padding, and export to JPG/PNG/WebP.
