Image Border Tool

New width—
New height—
Border (px)—
Megapixels—

How Image Border Tool is calculated: New width = original width + 2 × border; new height = original height + 2 × border — the photo itself is untouched

What is an image border tool?

An image border tool adds a frame of solid colour around a photo. You pick how thick the frame is and what colour it should be, and the tool draws the photo in the middle of a larger canvas filled with that colour. The photo itself is untouched — the border is added around it, so the picture does not lose a single pixel.

People add borders for framing, for contrast, and for consistency. A white border makes a photo look like a printed print. A black border makes a bright photo stand out on a white page. A coloured border ties a set of photos to a brand. A border also gives a photo room to breathe when it sits next to other images.

This border tool works entirely in your browser. You choose a photo, type the border thickness and colour, and the tool builds the framed image on your device. Nothing is uploaded to any server, so your photos stay private.

How adding a border works

The method is simple: the tool creates a new canvas that is bigger than the photo on every side, fills it with the border colour, and draws the photo in the centre. The formula is just as simple — new width equals original width plus twice the border, and new height equals original height plus twice the border, because the border appears on the left and the right, and on the top and the bottom.

A 1920 by 1080 photo with a 20-pixel border becomes 1960 by 1120 pixels: 1920 plus 40 across, and 1080 plus 40 down. The photo in the middle is still exactly 1920 by 1080, at the same quality, with the same pixels. Only the frame around it is new.

The border is a solid colour, given as a hex code like #000000 for black or #ffffff for white. The tool draws the colour first and then the photo on top, so the frame is perfectly even on all four sides. Our image resizer changes the photo dimensions first if you need the photo itself at a different size before framing it.

One more thing the border does is protect the photo's edges. When a photo is printed or placed on a busy page, its outer pixels can blend into the background and the photo looks smaller than it is. A border draws a clear line around the picture, so the eye reads the full photo at its true size. That is why even a thin frame makes a photo look finished rather than cut off at the edges.

The border thickness explained

The border thickness is typed in pixels, and the default is 20. That default is a deliberate choice: at 20 pixels, the frame is clearly visible without overwhelming the photo, on a screen and in print alike. It suits most photos, from a small social media post to a large print.

A thin border of 5 or 10 pixels is a quiet frame — it separates the photo from the page without drawing attention to itself. A thick border of 50 or 100 pixels is a design statement, and it suits posters, certificates, and gallery prints, where the frame is part of the look. The field accepts 0 to 200 pixels, so you can go from no border at all to a very heavy frame.

One detail matters: the border adds to the file size a little, because the finished image has more pixels. A 1920 by 1080 photo with a 20-pixel border is 1960 by 1120, or 2.2 megapixels instead of 2.1 — a small change, but the results box shows it, so you can see the new size before you download. If the file gets too heavy, our image compressor can squeeze it smaller afterwards.

A worked example: framing a 1920 × 1080 photo

Take a photo that is 1920 by 1080 pixels, about 2.1 megapixels. Add a 20-pixel black border, and the finished image is 1960 pixels wide and 1120 pixels tall. The maths is plain: 1920 plus 20 on the left and 20 on the right is 1960, and 1080 plus 20 on the top and 20 on the bottom is 1120. The new pixel count is 2,195,200, or 2.2 megapixels.

Now try a thick border. The same photo with a 50-pixel white border becomes 2020 by 1180 pixels, because 1920 plus 100 is 2020 and 1080 plus 100 is 1180. The frame is clearly visible, and the photo sits in the middle like a print in a mount. The pixel count is 2,383,600, or 2.4 megapixels.

Try a smaller photo. An 800 by 600 photo with a 50-pixel border becomes 900 by 700 pixels, or 0.6 megapixels. The same rule holds at every size: add twice the border to each side. If you need the photo in a different format afterwards, our image converter changes it without changing the pixels.

Why add a border to a photo

The biggest reason is framing. A border turns a bare photo into a finished object, the way a frame turns a painting into a picture on a wall. A white border makes a photo look like a print, and a black border makes a bright photo stand out against a white page or a white screen.

The second reason is separation. When photos sit side by side in a gallery, a document, or a social media grid, their edges can run together, especially if two photos have similar colours at the edge. A border gives each photo a clean edge, so the eye can tell where one photo ends and the next begins.

The third reason is consistency. A set of photos with the same border — same thickness, same colour — looks like a set, even when the photos themselves are very different. A shop, a portfolio, or a team page looks far more professional when every image carries the same frame. A pixel converter helps if you are converting between pixel counts and other screen units while planning sizes.

Image border tool vs a photo editor

A full photo editor can do everything this tool does and far more: it lets you add double borders, rounded frames, shadows, and patterns. The difference is time. Opening an editor, setting the canvas size, filling the background, and placing the photo takes several minutes and some skill. This tool does the same job in seconds, with no account and no learning curve.

The trade-off is control. This tool adds one solid-colour border, even on all four sides. If you want a border that is thicker at the bottom, like a classic photo mount, or a border with a pattern, you need an editor. If you want a clean, even frame fast, use this tool.

One more difference: a photo editor usually saves a project file on your computer, while this tool keeps nothing at all. Your image is read in the browser, the framed copy is built on your device, and closing the page deletes everything. For a quick frame, that is usually the simpler route.

Common mistakes when adding a border

The most common mistake is a border that is too thick for the photo. A 200-pixel border on a 400-pixel photo leaves almost no photo visible, and the frame swallows the picture. Match the border to the photo: 20 pixels suits a 1920-pixel photo, and 5 pixels suits a 400-pixel thumbnail.

The second mistake is a border colour that fights the photo. A bright red border around a soft portrait distracts from the face, and a white border around a mostly white photo disappears entirely. Pick a colour that contrasts gently with the photo's edges. The third mistake is adding a border to the only copy: the framed image is bigger than the original, and the original cannot be recovered from it, so always work on a copy.

The fourth mistake is forgetting the border changes the aspect ratio. A 1920 by 1080 photo with a 20-pixel border is 1960 by 1120, which is a slightly different shape — and a form that wants exactly 1920 by 1080 will reject it. If the size must stay exact, resize the photo first with our aspect ratio converter to check the numbers.

How to use this image border tool

First, choose an image with the file picker. JPEG, PNG, and WebP files work; other formats are rejected with a clear message, because those are the three formats a browser canvas can reliably read. As soon as the image loads, its real width and height fill in automatically above, and a framed preview appears below with a download button.

Next, type the border thickness in pixels — 20 is the default — and the border colour as a hex code, like #000000 for black. The results box updates live, showing the new width and height, the border thickness, and the megapixel count, so you can check the numbers before downloading. The preview shows the actual output file size.

Finally, download the bordered image. The file keeps its original format — a JPEG stays a JPEG, a PNG stays a PNG — and the file name gets a -border suffix, so your original is never overwritten. Your image never leaves your device: the whole process runs in your browser, and closing the page deletes everything.

Frequently Asked Questions

No. The photo is untouched — it is drawn in the centre of a larger canvas, so not a single pixel is lost. A 1920 by 1080 photo with a 20-pixel border becomes 1960 by 1120, because the border is added around the photo, not over it.

20 pixels suits most photos, from social media posts to prints — it is clearly visible without overwhelming the photo. Use 5 to 10 pixels for a quiet frame, and 50 to 100 pixels for a poster or certificate where the frame is part of the look. Match the border to the photo: a 200-pixel border swallows a 400-pixel photo.

Black or white suits almost every photo: black makes a bright photo stand out, and white makes a photo look like a print. Pick a colour that contrasts gently with the photo's edges — a bright red border around a soft portrait distracts from the face, and a white border around a mostly white photo disappears.

No. The file is read on your own device, drawn onto a larger canvas in your browser with the border colour around it, and offered back as a download. Nothing is sent to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.