← Back to Home

🖼️ Add Border & Padding

Frame a screenshot, give a photo a gallery mat, or add breathing room for a slide — with exact pixel control.

How to frame an image in three steps

The screenshot below was taken in this tool with a real file and the stated settings — it is not a mock-up.

  1. Upload the artworkTransparent PNG and JPG both work; the frame is drawn around the existing pixels.
  2. Set border, padding and radiusThis run uses a 24 px border, 20 px padding, a 24 px corner radius and the shadow option.
  3. Add the borderPress “Add border”, check the framed preview, then download the PNG.
Framed result: a transparent illustration surrounded by a light border, padding and rounded corners.
Captured: Input: specimen-alpha-900x600.png (900 × 600 transparent PNG). Settings: border 24 px, padding 20 px, radius 24 px, shadow on. Output: PNG, 1048 × 748.
📁
Click or drag an image here
PNG · JPG · WebP · GIF · BMP · SVG · AVIF · ICO · HEIC / HEIF

Original

Original

Framed result

Result
24 px
0 px
0 px
Add a soft drop shadow

How to use this tool

  1. Upload the image you want to frame.
  2. Set border width and padding (matte) in pixels; each side gets the same amount.
  3. Choose border and matte colours, corner radius, and whether to add a soft shadow.
  4. Preview the exact output size, then download the PNG.

Note: All processing happens in your browser: images are never uploaded. Download the result before closing the page.

How it works

The tool creates a new canvas whose size equals the source plus twice the border, padding and shadow margin. It paints the outer rounded rectangle in the border colour, an inner rounded rectangle in the matte colour, then clips and draws the original image in the centre.

Because the source is drawn at its native pixel size, there is no resampling and no quality loss. The shadow is a standard Canvas shadow on the outer shape, so corners and transparency behave predictably.

Common use cases

Screenshot framesA thin white border separates a screenshot from a white article background.
Gallery matsWide light-grey padding makes a photo look mounted without editing the photo itself.
Social cardsRounded corners plus a soft shadow give a card-like look in one pass.

Frequently asked questions

Does adding a border reduce image quality?
No. The original is drawn at 1:1 pixel size onto a larger canvas; only new empty pixels are added.
Why is the output bigger than my image?
Border, padding and shadow margin are added on all four sides, so both dimensions grow by twice the total.
Can I keep transparent corners?
Yes — set the border colour to a transparent-friendly PNG workflow, or pick the Rounded Corners tool for a pure transparent mask.
Is the image uploaded?
No. All drawing happens in your browser on an off-screen canvas.

What "adding a border" changes in the file

The picture itself is not scaled or cropped. The tool creates a larger canvas and draws the original image inside it, leaving room for a frame and, if you ask for it, a matte between the picture and the frame. Output dimensions are therefore the original dimensions plus the frame on each side. That matters for two reasons: the image is not resampled, so no detail is lost, and the final pixel size is larger than the source, which is usually what you want for print and usually the opposite of what you want for a web upload.

Border, matte and the difference between them

Two separate controls add space, and they are easy to confuse:

  • Border is the visible frame — the coloured band at the outer edge.
  • Matte (padding) is the area between the photograph and the frame. In print terms this is the mount board; its purpose is to separate the image from the frame so the composition can breathe.

A thin border with a generous matte reads as a gallery print. Equal border and matte reads as a decorative frame. A wide border with no matte reads as a sticker or a social post. Setting both to zero produces an unchanged image, which is a useful way to confirm the tool is not altering pixels.

Corner radius behaves differently on the outside and the inside

The radius rounds the outer corners of the frame. It does not round the photograph's own corners unless the picture is the outermost element, which happens only when border and matte are both zero. A radius larger than half the shorter side is meaningless; expect it to clamp rather than to error. On dark frames a small radius is nearly invisible, so check the preview at 100% rather than trusting the slider position.

Colour choices that survive export

PNG keeps a transparent matte, which is what you want when the framed image will sit on an unknown background — a product shot on a coloured page, a badge in a light or dark interface. JPEG has no alpha channel and will flatten transparency to a solid colour, so a "transparent" frame exported as JPEG arrives with a visible rectangle around it. For print, a white or off-white matte is the safer choice regardless of format.

Where this belongs in a workflow

  • Print: add a matte, keep the border thin, export PNG at full resolution, and check the final pixel dimensions against the paper size before sending it out.
  • Social posts: use a consistent border width across a series so the images look like a set in a grid.
  • E-commerce: a white matte normalises photos shot on different backgrounds; a coloured border gives a series a shared identity.
  • Presentations: a thin border separates a screenshot from a white slide without the harshness of a drop shadow.

Limits worth knowing

There is no per-side control: the frame is uniform on all four sides. There is no text in the matte, no watermark and no caption area. The result is a single flattened image, not a template, so a series of twenty framed photos is twenty manual passes unless you keep the same settings and repeat them.

Processing, please wait…