How to Add a Border Outline to Text in GIMP
  John   |     14 Mar 2023

How to Add a Border Outline to Text in GIMP

Outlining text is a simple yet effective way to make your text stand out and draw attention to it.

This involves adding a border of a different color around all the characters of the text. It goes around the outside (and inside for those that have an inner side) of the characters, which adds some flair.

In this article, I will show you how to add a border outline on text in GIMP through a step-by-step process.

A step-by-step process for outlining text in GIMP

Here are the steps to outline text in GIMP:

Step 1: Open GIMP and Create a New Image

Open GIMP on your computer and create a new image through "File" > "New" or using the Ctrl+N keyboard shortcut. Choose the size of your canvas and click on "OK".

Alternatively, you can open an existing image via "File" > "Open" or using the Ctrl+O shortcut.

Creating image for text outline in GIMP

Step 2: Add and style your Text

Click on the Text Tool labeled "A" in the toolbox on the left column. Select your preferred font and set the size under the tool options panel. Set the foreground color that you want your text to take. Click anywhere on the image and type the text that you would want to outline.

Writing text for outline in GIMP

A new layer for the text will be created, which you can see in the layers' panel at the bottom right corner.

If you would want to change the position of text on the image, just select the Move tool in the toolbox, click on any character of the text, and drag it around to the position of your choice.

Step 3: Make a selection the Text

Next, you need to select all the text characters.

You can do this by right-clicking on the text layer in the layers panel and selecting the "Alpha to Selection" option.

Adding text layer to alpha selection in GIMP

Alternatively, click on the "Select by Color Tool" in the toolbox or use the Shift+O shortcut to activate it and click on any character/letter of the text. This will select all the text.

Text selected for outlining in GIMP

Step 4: Create a new transparent layer

Next, you will need to create a new transparent layer. This will enable you to make changes to the text without affecting the basic text layer.

Use the "Layer" menu then the "New Layer" option or use the Shift+Ctrl+N keyboard shortcut. In the New Layer dialog box, give the layer an identifiable name such as "Border layer", select the "Transparency" option for the "Fill with" field and click on the OK button.

Adding a transparent layer in GIMP

Step 5: Add a border outline to the text

This step has several ways of implementation. We will cover 3 methods:

  • Stroke selection
  • Grow selection then fill
  • Border selection then fill

Method 1: Stroke selection

Open the "Edit" menu and select the "Stroke Selection" option.

Stroking text selection in GIMP

In the "Stroke Selection" dialog box that opens, select the "Stroke line" and "Solid Color" options. In the "Line width" field, enter your preferred border outline width/thickness in pixels. Then click on the Stroke button.

Stroke style options in GIMP

You will now have your text with a border outline (filled with the selected foreground color) but still with the selection as shown below.

Stroked text with selection in GIMP

Use the Shift+Ctrl+A keyboard shortcut to get rid of the selection and you will have your outlined text as shown below.

A text outline through stroking in GIMP

Method 2: Grow selection then fill

The "Grow" select option extends the selection by a defined number of pixels outwards in every direction. This leads to a bigger version of the text selection created in step 3.

Open the "Select" menu and click on the "Grow" option.

Growing a text selection in GIMP

A small dialog box will open. Enter the number of pixels that you want to extend the selection with. This value will mostly depend on the size of the text and how thick or thin you want the border outline to be. For larger font sizes, you can enter a bigger value and vice versa. In my case, I enter 3px. Click on the OK button.

Applying text selection growth in GIMP

The selection will be extended with the number of pixels you entered. As you see below, there is now a small gap between the selection and the text.

Extended selection after growing in GIMP

Switch the foreground color to your preferred outline color on the text. Select the "Bucket Fill" tool and click on any character of the text. This will fill the extended text selection with the foreground color as shown below. The original color of the text will no longer be visible at this point.

Filling text selection with bucket fill in GIMP

Next, you will need to move the text layer on top of the border layer to have a border effect on the text. To do that, click and drag the text layer up in the layers panel.

Changing a layer position in GIMP

Use the Shift+Ctrl+A keyboard shortcut to get rid of the selection and you will have your text with a good border outline as shown below.

Making text border outline in GIMP

Method 3: Border selection then fill

The "Border" select option makes a new border selection along the edges of the text. This selection goes in both directions inwards and outwards of the original selection created in step 3 by a specified number of pixels.

Open the "Select" menu and click on the "Border" option.

Making a border selection on text in GIMP

A small dialog box will open. Enter the number of pixels that you want your border to go inwards and outwards. For example, if you want your border to have a thickness of 6px, enter 3px. This means it will go 3px inwards and 3px outwards making a total width of 6px. In my case, I enter 2px.

Leave the border style as default (smooth) or feathered to round out the border edges. Click on the OK button.

Applying text selection border in GIMP

This is how the new selection will look.

Text border selection in GIMP

Select the "Bucket Fill" tool. Make sure your preferred outline color is selected as the foreground color. Click on the text and the border selection will be filled with the foreground color as shown below.

Filling text border selection with bucket fill in GIMP

Now use the Shift+Ctrl+A keyboard shortcut to get rid of the border selection. You will have a text with a good outline as shown below.

A text border outline in GIMP

That's it! By following these steps, you have learned how to outline your text and give it a more visual interest in GIMP.

You can now experiment with different outline widths, colors, and styles to find the look that works best for your project.