WhatsOnTool directory

Fit Image Inside Box

Keep the whole image within a maximum width and height.

Open this tool

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

Source images

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)

Tool inputs

Allowed range: 1 to 4096

Output height (pixels)

Tool inputs

Allowed range: 1 to 4096

Enlarge small images

Tool inputs

Do not enlarge, Allow enlargement

Download format

Tool inputs

PNG, preserves alpha, JPEG, flattens alpha, WebP, server support needed

Quality

Tool inputs

Allowed range: 1 to 100

How to use

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: 2026-10-04T18:22:34+00:00. This profile describes the tool; use its page to run it.

Markdown profile