Tools

Home
Base64 Encode/DecodeString to HexHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Change Canvas Size Online

Resize the canvas of PNG images while keeping the original centered.

Your files never leave your browser
No image loaded
INPUT
🖼

Drop image here or click to upload

Max 50MB • 100% Private

OUTPUT
Ready

Drop in a PNG, type the new width and height, and get back a bigger canvas with your image pinned dead center — no stretching, no blur. Pick a solid color or leave it transparent. And everything runs in your browser. Nothing gets uploaded.

How It Works

Upload PNG
→
Set New Canvas Size
→
Download Result

The browser creates a new canvas at your chosen dimensions, fills it with the background color you picked (transparent by default), and draws the original image dead center. No resampling, no compression artifacts. The output is a clean PNG at the exact pixel dimensions you specified.

Examples

App Icon for the App Store

Apple requires 1024×1024 icons. Your designer handed you an 800×800 PNG.

INPUT
logo.png (800 × 800px) Canvas target: 1024 × 1024 Background: transparent
OUTPUT
logo-resized.png (1024 × 1024px) 112px padding on each side Original centered, untouched

Product Photo with White Border

Amazon and Etsy listings look better with breathing room around the product. Quick way to add a clean white margin without cropping software.

INPUT
mug-photo.png (600 × 400px) Canvas: 800 × 600 Background: #FFFFFF
OUTPUT
mug-photo-canvas.png (800 × 600px) 100px white margin on sides 100px white margin top/bottom

Making a Square from a Rectangle

Social media profiles need square images. Got a 1200×800 banner? Set the canvas to 1200×1200 and the image sits centered with transparent bars above and below.

INPUT
banner.png (1200 × 800px) Canvas: 1200 × 1200 Background: transparent
OUTPUT
banner-square.png (1200 × 1200px) 200px transparent space top 200px transparent space bottom

Who Uses This

🎨 Designers

Pad icons and logos to exact spec sizes for app stores and brand kits.

🛒 E-commerce Sellers

Add white margins around product photos for uniform marketplace listings.

👨‍💻 Developers

Resize sprites and UI assets to match grid dimensions without distortion.

📱 Social Media Managers

Convert rectangular images to square format for Instagram and profile pictures.

Common Mistakes

Setting canvas smaller than the original image

If your image is 800×600 and you set the canvas to 400×300, the edges get clipped. The tool won't shrink your image — it crops instead. Always set dimensions equal to or larger than the original.

Forgetting to check background color

You wanted a transparent background but left it on white. Now the PNG has a white rectangle behind your logo. Double-check the color picker before hitting download.

Confusing canvas resize with image resize

Canvas resize adds space around the image. Image resize changes the image itself. If you need a 500px-wide version of a 1000px photo, you need a resize tool, not this one. This tool keeps every pixel exactly as-is.

Technical Details

Frequently Asked Questions

How do I change the canvas size of a PNG without losing quality?

Upload your PNG here, type in the new width and height, and download. The original image isn't resampled or compressed — it's placed on a fresh canvas at the size you picked. Zero quality loss because the pixels don't change at all.

What's the difference between canvas size and image size?

Image size changes the actual picture — it stretches or shrinks pixels. Canvas size changes the workspace around the picture. Think of it like putting a photo in a bigger frame versus enlarging the photo itself.

Can I add a transparent background when extending the canvas?

Yes. Set the background color to transparent (it's the default). The extra space around your image will have no color — perfect for logos and icons that need to sit on different backgrounds.

Does this tool upload my images to a server?

No. The whole thing runs in your browser using the HTML5 Canvas API. Your image stays on your computer the entire time. You could disconnect from the internet after loading the page and it would still work.

How do I make a rectangular image square without cropping?

Set both width and height to whichever dimension is larger. For a 1200×800 image, set the canvas to 1200×1200. The tool centers the image and fills the extra space with your chosen background color. No cropping, no stretching.

Share: