Add Borders to Image — Add Framing & Padding Online

Add a measurable frame and inspect the exported pixels

Frame an image without changing its subject

This tool adds a surrounding canvas to an uploaded picture. It is useful when a delivery requires breathing room around an illustration or a consistent presentation frame. It does not identify a subject, remove its background, add a drop shadow or make a photograph suitable for every print process. Decide whether you need extra outside space or a crop before choosing settings. Framing increases the exported dimensions instead of shrinking the subject into its existing dimensions. Keep the original file and record the requested final size. This distinction matters when a receiving site requires an exact width and height rather than merely an attractive preview.

Try a two-color reference image

Create an owned PNG one hundred sixty pixels wide and eighty pixels high, with a red left half and a blue right half. Upload it and leave the border width at thirty pixels. The expected export is two hundred twenty by one hundred forty pixels: twice the border is added to each original dimension. Download the PNG and inspect its actual encoded dimensions. Both colored halves should retain their order and original size inside the frame. A browser preview may scale the whole picture to fit a narrow panel, so measuring the displayed preview is not an independent check of the downloaded file.

Choose the width from the delivery dimensions

For a uniform border, final width equals source width plus two border widths; the same relationship applies to height. A square source stays square, but a rectangular source does not acquire an arbitrary new aspect ratio. The controls allow widths from two through one hundred fifty pixels. For the reference image, a ten-pixel border produces one hundred eighty by one hundred pixels. Work backward from a destination's requirements before exporting. If its required width and height imply different border widths, this uniform-frame tool cannot satisfy both simultaneously. Use a suitable resizing or canvas-editing workflow instead of describing a near match as exact.

Understand the three frame styles

Solid Frame fills the surrounding area with the selected six-digit hex color. Dashed Outline and Dotted Outline add a contrasting stroke within that area; they do not create transparent holes around the picture. With the default white frame, the extra stroke is black. Other border colors use a white stroke in this implementation. Inspect the actual combination, especially for a very light nonwhite frame where the white overlay can be hard to distinguish. The style names describe these particular drawing operations, not a complete border-design system. No text label, shadow layer or decorative image library is added by choosing an outline style.

Separate inner rounding from outer shape

Corner rounding clips the source image where it meets the frame. The exported canvas remains rectangular, and the chosen frame color appears behind the clipped source corners. This is different from exporting an entirely rounded transparent outer silhouette. The radius control is bounded to one hundred pixels and is clipped further when necessary to fit the source's smaller dimension. Inspect a corner and the center separately in the reference image: the corner treatment should not shift the red-blue boundary through the middle. If you need a transparent rounded outer edge, use an editor that explicitly provides that operation rather than assuming this control changes the whole canvas shape.

Check format and pixel limits before selecting a large source

The page accepts nonempty PNG, JPEG and WebP files up to twenty MiB. Decoding must also stay within sixteen million source pixels, with no side above seven thousand eight hundred ninety-two pixels. The side limit reserves room for the largest permitted frame inside the output-canvas bound. Byte size and decoded pixel cost are different measurements; a highly compressed image can still require substantial memory. Selection and decoding checks do not certify file safety or preserve every source metadata field. Use the small owned fixture first when investigating a failure, then increase dimensions only as required by your real delivery task.

Review the downloaded encoding and transparency

Choose PNG when you need a lossless reference for comparing frame pixels. JPEG and WebP involve their own browser encoding behavior, and JPEG cannot retain an alpha channel as transparent pixels. The selected frame fills the canvas background, so transparent areas in a source can show that color after drawing. If the browser cannot produce the requested output type, the tool reports a failure rather than attaching that extension to another format. Open the downloaded file and check both its type and appearance. A download request does not establish that a browser saved it successfully or that an external publishing platform will accept it.

Keep new inputs and failures separate from older previews

Selecting another file clears the current preview and disables its download while the replacement is read and decoded. Invalid types, oversize files and decode failures show an explanation instead of retaining another image as the new result. A late read from an earlier selection must not replace the current image. Reset clears the selected source while leaving the frame controls available for another attempt. If a color is invalid, correct the six-digit value before exporting. A successful older preview is useful historical evidence, but it must not be mistaken for a completed render of a newly selected source.

Use an acceptance record suited to the image

Image reading, drawing and encoding run in this browser without an image-framing API. Ordinary site requests and saved downloads have separate data paths. Use fictional pictures while learning, and keep the original if metadata, color management, animation or archival properties matter. For the two-color exercise, acceptance means the expected two hundred twenty by one hundred forty dimensions at the default width, white outside space, intact colored halves and the intended corner treatment. For another picture, add the properties that its destination actually needs. The frame does not establish image ownership, print accuracy or universal privacy merely because its pixels look correct.

Guide published by . View our publishing information and contact details.