How to Add a Border to an Image
Add a border to any image in minutes: upload, pick a style, set the size and colour, add a shadow, preview, and download a framed photo.
Learn how to add borders to images online: solid, Polaroid, and gradient glow frames, border size, corner radius, shadows, and colours.
CompressMyPic Editorial Team · Published Nov 17, 2026 · 10 min read

A border is a frame around a photo. It separates the image from its surroundings, adds a finishing touch, and gives the photo a sense of being complete.
Borders have been part of photography since the beginning. Prints were mounted on card, slides were held in frames, and today a digital border does the same job on screen.
This guide explains how borders work, which styles to choose, and how to use them well. It covers solid borders, Polaroid styles, gradient glow frames, shadows, and colour choices.
A border is a band of colour or pattern added around the edges of an image. It sits outside the photo itself, so it does not cover any part of the picture.
Borders serve two purposes. They decorate the image, giving it a finished look, and they separate it from the background, which helps it stand out on a busy page.
A border is different from a crop. Cropping removes pixels from the edges, while a border adds pixels around them, making the final image slightly larger.
Think of a border as a frame on a wall. The frame does not change the painting, but it changes how the painting is seen, and a good frame makes the work look better.
A solid border is a single colour band of even width around the image. It is the simplest style, and it suits almost any photo, from portraits to product shots.
White borders are the most common. They give the photo a clean, gallery feel, and they work on any background, because white separates the image from the page.
Black borders feel more dramatic. They suit moody photos, night shots, and fine art, where the dark frame adds weight and focus to the image.
Coloured borders can match a brand or a theme. A soft pastel border suits a wedding photo, while a bold colour suits a poster or a sale graphic.
A Polaroid border mimics the instant film look: a white frame with a thicker band at the bottom. It feels nostalgic, casual, and fun, which is why it suits holiday photos and memories.
The thick bottom band is the signature of the style. It gives space for a handwritten caption, a date, or a short note, just like a real Polaroid print.
Polaroid borders work best on casual, personal photos. They feel out of place on a formal portrait or a product shot, where a clean solid border is more appropriate.
The Image Border Generator includes a Polaroid style as one of its border options. It applies the classic shape automatically, including the wider bottom band.
A gradient glow frame blends two or more colours around the image, creating a soft, glowing edge. It feels modern and digital, and it suits social graphics and posters.
The glow is calculated from an angle and a set of colours. Changing the angle moves the blend around the frame, so the same colours can produce many different looks.
Gradient frames work well on dark photos, where the bright edge adds energy. They can overwhelm a light, airy photo, so use them when the image needs drama.
Keep the glow subtle for professional work. A soft gradient adds polish, while a harsh, bright glow distracts from the photo itself.
Border size is set as a percentage of the image, from 1 percent to 25 percent. A small border is a thin line, while a large border becomes a wide mat around the photo.
A thin border of 1 to 3 percent suits most photos. It frames the image without taking attention away from it, and it works at any display size.
A medium border of 5 to 10 percent creates a gallery feel. It gives the photo breathing room and suits prints, portfolios, and presentation slides.
A large border above 15 percent becomes a design statement. It suits posters and social graphics, where the frame is part of the look rather than just an edge.
Frame radius controls the roundness of the outer edge of the border, while photo radius controls the roundness of the inner edge where the border meets the photo.
Setting both to the same value gives a uniform rounded frame. Setting them differently creates a border that is thick in the middle of each side and thin at the corners.
For a simple rounded frame, set both radii to the same number. The result is a clean, consistent curve that looks professional on cards and social posts.
For a Polaroid style, keep the radii low. The classic instant film look has square corners, and rounding them too much breaks the retro feel.
A drop shadow adds a soft dark edge behind the framed image, which makes it look as though it is floating above the page. It adds depth and a sense of polish.
Shadows work best on light backgrounds, where the dark edge is visible. On a dark background, the shadow blends in and adds little to the image.
Drop shadows disappear when you export as JPG. The JPG format has no transparency, so the shadow, which needs a transparent background to show, cannot be saved in that format.
Export as PNG or WebP to keep the shadow. Both formats support transparency, so the shadow survives the export and shows correctly on any background.
White is the safest border colour. It suits any photo, it works on any background, and it gives the image a clean, gallery feel that never looks dated.
Black is the second safest. It adds drama and focus, and it suits moody photos, night shots, and fine art, where a light border would feel out of place.
Match the border to a colour in the photo for a designed look. A border that picks up the colour of a dress, a sky, or a product ties the frame to the image.
Avoid bright, saturated borders on serious photos. A neon frame on a wedding portrait looks like a mistake, while a soft neutral frame looks intentional.
The tool includes four quick frame presets, each of which configures the border style, size, colour, and shadow in one click. They are a fast starting point for common looks.
Presets are not locked. After clicking one, you can change any setting, including the frame colour, the size, or the shadow, to suit your photo.
Use presets to explore styles quickly. Click through them and see which one suits your image, then fine-tune the settings from there.
For a consistent look across a set of photos, use the same preset for all of them. A batch of images with matching frames looks like a series, while mixed frames look random.
Borders help a photo stand out in a crowded feed. A white border separates the image from the posts around it, and the eye is drawn to the framed photo.
Keep social borders thin. A thick border takes up space in a small feed preview, leaving less room for the photo itself, which is what people came to see.
Use a consistent border style across your posts. A recognisable frame becomes part of your visual identity, and followers start to spot your posts before they read your name.
Check the bordered image at feed size. A border that looks fine at full size may dominate a small preview, so test before you publish.
Printed photos have used borders for over a century, and a digital border prepares an image for the same treatment. A white border around a print gives it a gallery feel.
For prints, use a medium border of 5 to 10 percent. The extra space gives the print room to breathe, and it provides a margin for handling without touching the image.
Check the print size before you add a border. A border adds to the total dimensions, so a photo with a border needs a larger paper size than the same photo without one.
For a framed print, the border is part of the design. A white border inside a dark frame creates a mat effect, which is the classic gallery presentation.
Product photos need consistent framing, because a shop page with mismatched borders looks careless. Use the same border style and size for every product image.
A thin white border suits most products. It separates the item from the page background without distracting from the product itself.
Avoid coloured borders on product photos unless the colour is part of your brand. A bright frame can clash with the product and make the listing look unprofessional.
For a sale or a promotion, a coloured border can highlight the offer. A red or gold frame around a discounted product draws the eye, which is the point of the promotion.
The tool shows a grey and white checkerboard around the frame in the preview. That pattern means transparency, not a grey background, and it shows where the image is see-through.
Exporting as PNG or WebP preserves transparency, including rounded corners and drop shadows. Exporting as JPG flattens everything onto a solid background.
For a framed image with rounded corners, choose PNG or WebP. A JPG export fills the transparent corners with a solid colour, which breaks the rounded look.
The quality slider appears for JPG and WebP exports and hides for PNG, because PNG is lossless and has no quality setting to adjust.
A border is a band of colour around the image, added digitally. A frame is a physical object that holds a print, and matting is the card inside the frame that surrounds the print.
Digital borders mimic matting. A wide white border around a photo looks like a matted print, which is why it feels at home in a gallery context.
A thin border is closer to a frame edge. It defines the boundary of the image without adding the generous space that matting provides.
Choose based on the feeling you want. Matting feels formal and gallery-like, while a thin frame feels modern and clean.
All border work happens in your browser. Your photos are never uploaded to a server, which matters when the images are personal, client work, or unreleased products.
This is a real advantage over cloud editors. A product photo or a family portrait should not travel to a server you cannot see, just to add a frame.
The tool also strips EXIF GPS data on export. A framed photo downloaded from the tool carries no record of where it was taken.
Keep the original photo without a border. Once a border is flattened into an export, it cannot be removed from that file, so the original is your only clean copy.
The most common mistake is a border that is too thick. A heavy frame overwhelms a small photo and leaves little room for the image itself, which is what people came to see.
Another mistake is a colour that clashes with the photo. A bright border on a soft, muted image fights the photo for attention and makes the whole design look wrong.
People also forget that a border adds to the total size. A photo with a 25 percent border is much larger than the original, and it may no longer fit its destination.
Finally, do not use a drop shadow with a JPG export and expect it to survive. JPG has no transparency, so the shadow disappears, and the result looks flat.
For the step-by-step process, see How to Add a Border to an Image. For style ideas, read Image Frames and Borders: Styles for Social and Print, and to round the corners of a framed photo, try the Round Image Corners tool.
Add a border to any image in minutes: upload, pick a style, set the size and colour, add a shadow, preview, and download a framed photo.
Which frame style suits your photo? Minimal, Polaroid, gallery, gradient glow, and retro frames compared for social media, print, and product photos.
All 11 photo filters compared: Vintage vs Sepia, Grayscale vs Noir, Warm vs Cool, and which style suits portraits, landscapes, food, and products.
Apply photo filters in minutes: upload, browse the 11 styles, set the intensity, compare with the original, and download a styled photo.