Canvas Padding and Square Fit

Fit an image on a canvas and add solid, rounded or patterned frames with padding.

Files stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Add the padding controls

Drop your image here

or choose one from your device

Choose one JPEG, PNG or WebP image, up to 64 MiB and 20 megapixels.

    Ratio modes make the smallest whole-pixel canvas of that ratio that holds the full image.

    Only applies to an explicit width and height. No part of the picture is cropped.

    Used only when the padding background is solid. JPEG output requires a solid background.

    The frame is a band drawn around the padded picture. The preview shows exactly what the download contains.

    Band width as a share of the picture's shorter side.

    Used by the solid and patterned frames.

    Used only by the patterned frame.

    Used only by the rounded frame. A share of the padded canvas's shorter side.

    PNG ignores this setting. All formats are newly encoded.

    How to use Canvas Padding and Square Fit

    1. Choose your image in the Image field.
    2. Set Canvas size to a square, another ratio, or Enter width and height.
    3. Pick an Image position to place the picture inside the new canvas.
    4. Choose a Padding background, and a Solid color if you picked solid.
    5. Select Add the padding, then download the padded file.

    Example: Canvas Padding and Square Fit

    Fit a 512 by 512 PNG into a 600 by 600 canvas.

    You add
    A 512 by 512 PNG. Canvas size: Explicit. Canvas width: 600. Canvas height: 600. Image position: Center. Padding background: Transparent. Output format: PNG.
    You get
    The result reports 600 by 600 pixels with 44 pixels above and 44 below, and downloads image-1-padded.png. The image is not scaled because the canvas is the larger shape.

    Options

    Canvas size
    Ratio modes build the smallest whole-pixel canvas of that ratio that holds the whole image. A 1200 by 800 picture on 4:3 gives 1200 by 900. Enter width and height uses your own numbers instead.
    Fit the image down if the entered canvas is smaller
    Only applies to an entered size. The picture is scaled down to fit inside and keeps its shape. Nothing is cropped.
    Image position
    Center splits the free space evenly between opposite sides. Another position pushes all of it to the sides you leave.
    Padding background and Solid color
    Transparent needs PNG or WebP, because JPEG cannot store transparency, so a JPEG export needs a solid background. The color field takes six hex digits such as #ffffff.
    Frame style
    Choose Solid, Rounded or Patterned and set the frame size and color. Stripes, dots and checks are available. The preview and exported image use the same frame drawing.

    Supported inputs and limits

    Input formatsJPEG, PNG or WebP
    File sizeUp to 64 MiB and 20 megapixels
    Canvas sizeCanvas 20 MP; entered width or height up to 20,000 px
    One JPEG, PNG or WebP image up to 64 MiB and 20 megapixels. The canvas can be 20 megapixels and the source plus canvas together 40 megapixels, so a very large picture may need a smaller frame. An entered width or height stops at 20,000 pixels a side. A canvas smaller than the picture is refused unless you turn on fit-down. The output is newly encoded and may not carry embedded metadata, so check the pixel dimensions before uploading the file anywhere. Frame size is 0–40% of the source picture’s shorter side. Rounded frames use an entered radius of 0–50%; check transparent corners in PNG or WebP output.

    Where your input is processed

    This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

    How the ratio canvas is chosen

    A ratio mode builds the smallest whole-pixel canvas of that ratio that still contains the picture. A 1200 by 800 picture is wider than 4:3, so the canvas has to grow in height until the width matches: 1200 by 900, which leaves 50 pixels above and 50 below. On a square canvas the same picture needs 1200 by 1200, which leaves 200 pixels above and below.

    A 1200 by 800 image remains whole on a centred 1200 by 1200 canvas with 200 pixels of padding above and below.
    Separate example: a 1200 by 800 image on a square canvas leaves 200 pixels above and below.

    Questions about Canvas Padding and Square Fit

    How do I make a photo square without cutting it?

    Choose Square around the whole image and leave Image position on Center. The whole picture stays visible and the extra space is added above and below, or to the left and right, depending on the shape of the source.

    Why was my canvas refused?

    It was smaller than the picture on at least one side. Enter a larger canvas or turn on fit-down, which scales the picture down to fit. The tool never crops to make the numbers work.

    Why does 4:3 give 1200 by 900 instead of 1600 by 1200?

    The ratio modes pick the smallest whole-pixel canvas of that ratio that still holds the picture, so the padding stays as tight as the ratio allows instead of jumping to a much larger frame.

    Can I add a white border to a JPEG?

    Yes. Choose a Solid color background and set the value to #ffffff. Transparent padding is not accepted for JPEG output, because the format has no alpha channel.

    Project manager: Tony Hines · Content updated 4 October 2026 · Report a problem