Image Padding & Border
Add solid or transparent padding and an optional border around any image.
How to use
- Drop or select an image — it's resized down to 2400 px max edge for canvas performance.
- Choose 'Fixed padding' for equal padding on all sides, or 'Aspect ratio' to fit a target ratio.
- Pick padding amount, background color (or transparent for PNG/WebP), and optional border.
- Download the result as PNG, JPEG, or WebP.
About this tool
ShowHide
Pad an image with a solid color (or transparent background) and optionally add a colored border, then either keep equal padding on all sides or fit the result to a target aspect ratio. Useful for Instagram square posts, story aspect ratios, YouTube thumbnails, slide deck consistency, or print frames. Output is rendered to a canvas you can download as PNG, JPEG, or WebP. The image and all processing stay in your browser.
The transparent background only survives in a format that has an alpha channel. PNG and WebP keep it; JPEG has no alpha at all, so exporting to JPEG fills the transparent area with black rather than warning you. If you want a white frame in a JPEG, set the padding colour to white rather than leaving it transparent and hoping.
Fitting to an aspect ratio pads rather than crops, which is the point: nothing is cut off. The consequence is that a tall photo fitted to a 16:9 frame gains wide bars on both sides, and the further the source is from the target the more of the result is padding. If the subject needs to fill the frame, cropping is the operation you want and this is the wrong tool for it.
The file size is set by the output format and not by how much of the canvas is flat colour. A large expanse of one colour compresses extremely well in PNG and reasonably well in WebP, but a JPEG at a middling quality will still put visible noise into it, and a gradient banner padded to square can end up larger than the photo it frames.
Everything happens on the decoded pixels in your browser, so the image is never uploaded, and re-encoding through the canvas drops EXIF, ICC profiles and any embedded metadata the original carried.
Frequently asked questions
Does this upload my image?
No. Image data is loaded via URL.createObjectURL and drawn to a <canvas> — all in your browser. Nothing is sent to any server.
What does 'aspect ratio' mode do?
It pads the image asymmetrically so the final canvas matches the chosen ratio (e.g., 1:1 for a square Instagram post). The image is centered, with extra background filled on the shorter axis. The padding slider sets the minimum padding before aspect fitting.
Why is the transparent checkbox disabled when I pick JPEG?
JPEG does not support an alpha channel — transparent pixels would render as black or white. Use PNG or WebP for transparent backgrounds.
What's the difference between padding and border?
Padding is background space around the image; border is a colored frame drawn flush against the image edges, inside the padding. You can use either, both, or neither.
Related tools
Image Crop (Aspect Ratio)
Crop any image to a standard aspect ratio (1:1, 16:9, 4:3, etc.) — centered automatically.
Image
Image Aspect Ratio Detector
Drop an image and see its pixel dimensions, simplified aspect ratio, decimal ratio, megapixels, orientation, file size, and the closest common preset.
Image
Aspect Ratio Calculator
Convert between width × height and aspect ratio (16:9, 4:3, 21:9, …) — fit any ratio inside a container.
Convert
Chi-Square Test Calculator (with Fisher's exact)
Chi-square test of independence or goodness of fit: χ², df, p-value, expected counts, residuals, Cramér's V, and Fisher's exact test for 2 × 2 tables.
Math & Statistics
Image Trim (Auto-Crop Transparent / Solid Borders)
Automatically crop empty transparent, white, black or solid-color borders off an image — with adjustable tolerance, padding and PNG/JPEG/WebP export.
Image
Image Text Watermark
Drop an image, stamp a text watermark — choose corner, size, opacity, rotation, colour, drop-shadow, or full-image tiling.
Image