Skip to main content

Resize an image canvas

Expand or reduce the canvas around an image without resizing its content. The file stays on your device throughout processing and is not uploaded to a server.

  • Export

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Image
No image loaded

Drop an image here

Add a PNG, JPEG, or WebP image. The file stays on your device and all edits run locally in your browser.

Need more editing options?

Use multiple editing tools in one workspace, with your open file and its current edits.

Open the full editor

Was this tool useful?

On this page

How does this tool work?

Enlarging the canvas means adding space around an image without stretching it: breathing room, a square background for social media, an empty area for text. This tool changes the width and height of the canvas, places the image at one of nine positions and fills the rest with transparency or a colour of your choice.

After import, the Width and Height fields show the current image size; enter the new canvas size, from 1 to 32,768 px. The image keeps its original pixels: it is neither enlarged nor reduced, only the surrounding area changes. The preview updates with every change.

Image position chooses one of nine anchor points (corners, edge midpoints or centre). Transparent background, on by default, leaves the new areas empty; when off, they take the Background color, white to start with. If the canvas is smaller than the image, the overflowing part is cut off, so the canvas acts as an anchored crop.

Apply bakes in the new canvas. A JPEG photo with a transparent background is saved as PNG, because JPEG cannot store transparency. Undo (Ctrl+Z) and Before / after let you step back before downloading.

How to use this tool

  1. Import the image

    Drop a PNG, JPEG or WebP image; its size appears in the fields.

  2. Set up the canvas

    Enter the new width and height, choose the position and a transparent or coloured background.

  3. Apply and download

    Check the preview, click Apply, then download the image.

Image position on the canvas

The offset depends on the difference between canvas and image; it becomes negative when the canvas is smaller, which crops the image.

Centred position

x = (W − w) ÷ 2; y = (H − h) ÷ 2

Rounded to the pixel; used for the centre and edge midpoints.

Right or bottom anchoring

x = W − w; y = H − h

On the left or at the top, the offset is 0.

W, H
canvas width and height
w, h
image width and height
x, y
position of the image's top-left corner on the canvas

Use cases

Make a photo square without cropping

Place a landscape photo in the middle of a square canvas with white bands.

Add margin around a logo

Give a cut-out logo some breathing room before putting it in a presentation.

Make room for text

Add a solid area under an image to write a caption or a title.

Examples

1200 × 800 px photo on a square canvas

y = (1200 − 800) ÷ 2 = 200 px; x = (1200 − 1200) ÷ 2 = 0. The photo is not reduced: it fills the full width and the canvas only adds height.

Input

Image 1200 × 800 px, canvas 1200 × 1200 px, centre position, white background

Result

1200 × 1200 px image with two 200 px white bands at the top and bottom

Logo anchored bottom right

Anchored bottom right, the logo starts 1000 − 800 = 200 px from the left edge and 1000 − 600 = 400 px from the top.

Input

Logo 800 × 600 px, canvas 1000 × 1000 px, bottom-right position, transparent background

Result

Logo placed at x = 200 px, y = 400 px; transparent margins on the left and top

Tips and best practices

  • For an exact shape (1:1, 4:5, 16:9), work out the dimensions first with the aspect ratio calculator.
  • Keep the background transparent if the image will sit on a site whose background colour may change.
  • To shrink the image itself, use the resizer: the canvas never changes the scale of the pixels.
  • A canvas smaller than the image crops according to the chosen position: top left cuts off the bottom and the right.

Sources and references

Frequently asked questions

Is the image stretched or reduced?

No. It keeps exactly the same pixels; only the area around it is added or removed.

How is this different from resizing an image?

Resizing changes the scale of the image. Enlarging the canvas adds margins around it without touching the image.

Can the canvas be smaller than the image?

Yes: the overflowing part is cut off according to the anchor position. It is a quick crop with no frame to draw.

What happens to the transparent areas of a JPEG?

A JPEG image on a transparent canvas is saved as PNG to keep the transparency. Turn off Transparent background to get a JPEG with a solid colour.

What is the maximum size?

Up to 32,768 px per side; in practice a very large canvas can exceed the browser's available memory, especially on mobile.

Is my image uploaded?

No. The new canvas is drawn and encoded in your browser.

Related tools

Tools similar or complementary to this one.

Similar tools

Resize an image by setting its exact width and height before downloading the result.

Images & graphicsFeaturedUse this tool

Resize an image to the right dimensions for Instagram, Facebook, LinkedIn, YouTube, X, TikTok or Pinterest in one click.

Images & graphicsUse this tool

Draw a frame on the image, lock a ratio (1:1, 4:5, 16:9…) and download the cropped part.

Images & graphicsFeaturedUse this tool
GuideBest practicesBeginner

Image Metadata: Read It, Keep It, or Remove It?

Understand EXIF, GPS, XMP, IPTC, ICC profiles, rights information, and how to manage image metadata for privacy, publishing, and Web performance.

31 August 202613 min
TutorialBest practicesBeginner

Optimize images for the Web without losing quality

Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.

30 August 20264 min
GuideBest practicesBeginner

Convert a PDF to images or images to PDF

Learn what changes when PDF pages are rasterized, how resolution and image format affect quality, and when to assemble images into a PDF.

29 August 20262 min