Centred position
x = (W − w) ÷ 2; y = (H − h) ÷ 2
Rounded to the pixel; used for the centre and edge midpoints.
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.
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 editorEnlarging 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.
Drop a PNG, JPEG or WebP image; its size appears in the fields.
Enter the new width and height, choose the position and a transparent or coloured background.
Check the preview, click Apply, then download the image.
The offset depends on the difference between canvas and image; it becomes negative when the canvas is smaller, which crops the image.
x = (W − w) ÷ 2; y = (H − h) ÷ 2
Rounded to the pixel; used for the centre and edge midpoints.
x = W − w; y = H − h
On the left or at the top, the offset is 0.
Place a landscape photo in the middle of a square canvas with white bands.
Give a cut-out logo some breathing room before putting it in a presentation.
Add a solid area under an image to write a caption or a title.
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 backgroundResult
1200 × 1200 px image with two 200 px white bands at the top and bottomAnchored 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 backgroundResult
Logo placed at x = 200 px, y = 400 px; transparent margins on the left and topNo. It keeps exactly the same pixels; only the area around it is added or removed.
Resizing changes the scale of the image. Enlarging the canvas adds margins around it without touching the image.
Yes: the overflowing part is cut off according to the anchor position. It is a quick crop with no frame to draw.
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.
Up to 32,768 px per side; in practice a very large canvas can exceed the browser's available memory, especially on mobile.
No. The new canvas is drawn and encoded in your browser.
Related tools
Tools similar or complementary to this one.
Resize an image by setting its exact width and height before downloading the result.
Resize an image to the right dimensions for Instagram, Facebook, LinkedIn, YouTube, X, TikTok or Pinterest in one click.
Draw a frame on the image, lock a ratio (1:1, 4:5, 16:9…) and download the cropped part.
Resize a batch of images, convert them to WebP and remove metadata with one reusable Pipeline.
Understand EXIF, GPS, XMP, IPTC, ICC profiles, rights information, and how to manage image metadata for privacy, publishing, and Web performance.
Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.
Learn what changes when PDF pages are rasterized, how resolution and image format affect quality, and when to assemble images into a PDF.