# Fit Image Inside Box Keep the whole image within a maximum width and height. [Open this tool](https://whatson.pk/image-fit-tool/) Category: Image Preparation Keeping a whole picture inside a box is different from filling every corner of that box. Enter maximum width and height and inspect the fitted output. The image keeps its shape without a crop. ## Inputs and controls * One image or a batch: JPEG; PNG; WebP. Static images. Up to 4 MiB per file, 12 MiB total and 4 million pixels per image. At most six source images. * Output width (pixels). Allowed range: 1 to 4096 * Output height (pixels). Allowed range: 1 to 4096 * Enlarge small images: Do not enlarge; Allow enlargement * Download format: PNG, preserves alpha; JPEG, flattens alpha; WebP, server support needed * Quality. Allowed range: 1 to 100 ## How to use * Choose a static JPEG, PNG or WebP source. Check the displayed upload limits before processing. * Set Output width (pixels), Output height (pixels), Enlarge small images, Download format and Quality. Review the selected units and options before preparing the output. * Select Prepare image. Inspect the resulting preview, dimensions and file size, then download the output you need. ## Why use this tool The complete subject remains visible when dimensions are treated as limits. ## Before relying on the result Compare the finished picture with its source. One dimension may be smaller to preserve the image's aspect ratio. ## Questions ### Will the output always equal both box dimensions? No. One dimension may be smaller to preserve the image's aspect ratio. ### What should I check before using Fit Image Inside Box? Prepare a supported source image and check Output width (pixels), Output height (pixels), Enlarge small images and Download format. Use the exact units shown beside the controls and replace any example values with your own inputs. Source page last modified (UTC): 2026-10-04T18:22:34+00:00 This profile describes the tool. It does not execute it or supply a professional certification.