Image Tools

Image Border

Add custom-colored borders to your images with adjustable width and hex colors.

Run tool

Add a solid border around any picture with customized thickness and color. This tool takes your image data and applies an even outer frame directly around the edges of the original graphic. You can set the exact border thickness in pixels to match your presentation requirements, from a subtle one-pixel outline to a thick framing border. The default border width is 10 pixels, and the default color is standard black (#000000). To customize the color, enter a six-digit hexadecimal color code such as #FFFFFF for white, #FF0000 for red, or #003366 for navy blue. The leading hash symbol is optional. Once processed, the tool displays the new image dimensions alongside the updated graphic, preserving the original file format whenever possible or outputting as a standard PNG. It provides a clean, predictable way to prepare product photos, thumbnails, and website graphics without complex editing software.

Instructions

  1. Supply your image data as an encoded image string.
  2. Set the desired border width in pixels, or keep the default value of 10.
  3. Enter a six-character hexadecimal border color, such as #000000 or #FFFFFF.
  4. Run the tool to generate the bordered image and review the updated dimensions.

Examples

  • Add a 15-pixel red border (#FF0000) around an uploaded 400x300 product photo to produce a 430x330 framed image.
  • Apply a clean 2-pixel dark gray border (#333333) to a 100x100 avatar graphic, expanding the overall dimensions to 104x104.

FAQ

What color format does the tool accept?

The tool accepts standard six-digit hexadecimal RGB color codes, such as #000000 for black, #FFFFFF for white, or #FF5733 for orange. The leading # symbol is optional.

How does adding a border change image dimensions?

The border width is added to all four edges of the image. For example, adding a 10-pixel border to an 800x600 image increases its total width and height by 20 pixels, resulting in an 820x620 image.

Which image format will the output use?

The tool retains the original image format whenever it is available. If the original format is not detected, the bordered graphic is returned as a PNG.

What happens if the image data field is left empty?

Although the input field is not strictly marked mandatory in the form schema, processing requires valid image data. Submitting an empty field causes the tool to display a message that image data is required.

Embed this tool

Add this working SmartPlusLab tool to your website with the code below.