About this tool
Add an equal-width margin or colored border around images to enlarge the canvas. Handy for fitting images into fixed display areas or giving artwork a clean frame.
Typical uses
- Add white margins around product photos
- Give artwork a colored frame
- Pad an image so a platform does not crop the edges
How to use
Upload images, enter border width and choose a color.
Process and download PNGs with equal padding on all four sides.
Padding is capped at 3,000 pixels, and each expanded image must stay within 45 MP.
How the output size is calculated
“Border width (px)” is the number of pixels added on each side, and all four sides get the same amount. Output width = source width + 2 × border, output height = source height + 2 × border. The source is drawn unchanged at an offset of one border width from the top-left corner: no scaling, no cropping. The field is read with Number() and clamped to 0–3000, then rounded to a whole pixel: a negative value becomes 0, anything above 3000 becomes 3000 and 12.5 becomes 13, all without an error message.
| Source (px) | Entered | Border used | Output (px) | Output pixels | Result |
|---|---|---|---|---|---|
| 1080 × 1080 | 40 | 40 | 1160 × 1160 | 1.3 MP | Created |
| 1080 × 1350 | 60 | 60 | 1200 × 1470 | 1.8 MP | Created |
| 3024 × 4032 | 200 | 200 | 3424 × 4432 | 15.2 MP | Created |
| 6000 × 4000 | 1000 | 1000 | 8000 × 6000 | 48 MP | Over 45 MP |
| 800 × 600 | -20 | 0 | 800 × 600 | 0.5 MP | Created |
| 800 × 600 | 5000 | 3000 | 6800 × 6600 | 44.9 MP | Created |
| 800 × 600 | 12.5 | 13 | 826 × 626 | 0.5 MP | Created |
An equal border pulls the aspect ratio towards 1:1 but never lands on a chosen ratio: 1080 × 1350 (0.8) with 60 px becomes 1200 × 1470 (0.816). If you need a fixed canvas such as 1200 × 1200 with the photo centred and the rest padded, use the padding mode of the batch image workflow, which computes the padding from the target size.
For print, convert millimetres to pixels: border px = mm ÷ 25.4 × print resolution. A 5 mm white border at 300 ppi is about 59 px. The PNG does not carry the source file’s DPI value, so the printing software sizes it from its own default or from the size you enter.
The 45 MP limit and the widest possible border
There are two checks. The source must be at most 45 MP and 16384 px per side. The expanded canvas is then checked for its total area only: at most 45 MP. The 3000 px cap on the field therefore only matters for small images. The table lists the widest whole-pixel border that passes for common sizes:
| Source (px) | Source pixels | Widest border | Resulting output (px) |
|---|---|---|---|
| 500 × 500 | 0.3 MP | 3000 px | 6500 × 6500 |
| 1080 × 1080 | 1.2 MP | 2814 px | 6708 × 6708 |
| 3024 × 4032 | 12.2 MP | 1599 px | 6222 × 7230 |
| 6000 × 4000 | 24 MP | 891 px | 7782 × 5782 |
| 8192 × 5464 | 44.8 MP | 8 px | 8208 × 5480 |
Even a 1080 × 1080 image cannot take 3000 px, because (1080 + 6000)² is more than 45 million pixels, and a source close to 45 MP has almost no room left; shrink it with the batch resizer first. The expanded canvas is not checked per side: 16000 × 1000 with 400 px gives 16800 × 1800 (30.2 MP). That file is created, but it is wider than 16384 px, so the site’s other image tools, which accept at most 16384 px per side, will refuse it as input.
Colour, transparent areas and output format
- The tool first fills the whole canvas with the “Background or border color”, then draws the image on top. Transparent areas inside a PNG or WebP therefore take the border colour too, and semi-transparent pixels are blended with it; the result has no transparency left. To fill transparent areas without adding a border, use the transparent background tool.
- The colour picker only offers opaque colours, so a transparent border cannot be made here.
- The output is always PNG, named “original-border.png”, whatever the input format. PNG is lossless, so a JPG photo usually comes out considerably larger; run it through the image compressor if you need a small JPG again.
- The image is re-encoded through a browser canvas. EXIF data (camera details, GPS) and the DPI value of the source are not written to the result.
Batches, file names and messages
You can choose up to 50 PNG, JPG or WebP files totalling 100 MB. Every image gets the same colour and width, processed one after another when you click “Process images”. The page shows at most 10 download buttons and then says “Use the ZIP button to download the remaining files.”; with two or more results, “Download all as ZIP” saves images.zip. Duplicate result names are numbered, ignoring case: photo.jpg, photo.png, scan.final.webp and Photo.JPG become photo-border.png, photo-border (2).png, scan.final-border.png, Photo-border (3).png.
| Message | Cause and fix |
|---|---|
| Only PNG, JPG and WebP images are supported. | One file in the selection is not PNG, JPG or WebP (a GIF or HEIC, say), so the whole selection is refused. Convert HEIC to JPG first. |
| Use up to 50 images totaling at most 100 MB. | More than 50 files or more than 100 MB in total; nothing is loaded. Split the batch. |
| Source images are limited to 45 MP and 16384 px per side. | This source is itself over 45 MP or wider/taller than 16384 px. It is skipped and the others are processed. |
| Image dimensions exceed the browser limit (45 MP). | The image plus border exceeds 45 MP. Use a narrower border from the table above or shrink the source. |
| This image format cannot be opened by this browser. | The extension looks right but the file is damaged, or the browser cannot decode this WebP. |
| The next file would exceed the 128 MB output limit; remaining files were not processed. | Processing stops once the results reach 128 MB; finished results are kept. Large PNGs add up quickly, so use smaller batches. |
| Output exceeds 128 MB. Resize images or reduce quality and try again. | The very first result is already over 128 MB, so there is no output at all. |
Skipped files are listed as “file name: reason” and the summary ends with “Invalid files skipped: N.” All processing happens in your browser.
Frequently asked questions
How wide can the border be?
Up to 3,000 px per side, with each expanded image staying within 45 megapixels.
What format is exported?
PNG, with equal padding on all four sides.
Can I pad just one side?
Padding is currently equal on all sides. For exact dimensions with padding, use the batch image workflow.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.