🖼 Image & Media

Add Padding to Image (Squarify)

Add padding around an image to extend its canvas. Aspect presets like 1:1 (square), 16:9 and 4:5, per-side padding, and any background color or transparency. Fit a ratio without cropping — images never leave your device.

Drag & drop an image, or click to choose

PNG, JPEG, WebP and more. Everything is processed on your device — nothing is uploaded.

How to use

Choose an image and the preview instantly shows the extended canvas for the selected ratio or padding. The original image is never cropped or scaled — padding is simply added where the canvas falls short, so nothing in the photo gets cut off. Loading and processing stay on your device.

  1. Choose an image — drag it into the frame or click to pick a file. First time? Hit “🖼 Try with a sample image”.
  2. Pick a preset under Fit to a ratio (1:1, 4:5, 16:9, 9:16, 4:3, 3:2), or switch to Set padding and enter pixels per side.
  3. Pick a background color, or turn on Transparent for PNG / WebP output.
  4. Check the preview and the size change (e.g. 1200×800 → 1200×1200), choose a format and hit Download.

Examples

  • Squarify a 1200×800 landscape photo → choose “1:1 Square” to get 1200×1200 with 200 px of padding above and below, image centered.
  • Instagram 4:5 portrait → choose “4:5” and padding is added only in the direction that falls short.
  • White border around a screenshot → “Set padding” + “Same on all sides” with 40 gives a 40 px white frame.
  • Squarify a transparent logo → turn on Transparent and save as PNG to keep the padding transparent too.

Power-user notes

  • Ratio presets add padding only where needed — no cropping, no scaling.
  • The canvas is computed as: height ⌈w×rh/rw⌉ if that covers the original height, otherwise width ⌈h×rw/rh⌉.
  • JPEG has no alpha channel, so the Transparent checkbox is disabled while JPEG is selected and the background color is used.
  • The saved file is named original-name-WxH.ext.

FAQ

Is my data sent to a server?
No. Loading and padding both happen entirely in your browser using Canvas; the image is never transmitted or stored externally. It even works offline.
Does this crop or resize my image?
No. The original pixels are left untouched — the tool only extends the canvas by adding padding where needed. Handy when you want to fit an aspect ratio without trimming or scaling.
Can the padding stay transparent?
Yes. Turn on Transparent and save as PNG or WebP to keep the added padding fully transparent. JPEG does not support transparency, so while JPEG is selected the background color is used instead.
Which aspect-ratio presets are available?
Six presets: 1:1 (square), 4:5, 16:9, 9:16, 4:3 and 3:2. The canvas grows only in the direction that falls short, and the image is placed in the center.
Can I set a different padding for each side?
Yes. Switch to Set padding and enter top, bottom, left and right values in pixels. Turn on Same on all sides to apply one value to all four sides.