Introduction to Selections in GIMP
Selections are the most powerful concept in raster editing. Once you master how to select exactly what you want, every other GIMP operation becomes precise and controllable. This guide covers all seven selection tools, how to combine them, and how to refine selections for professional results.
Why Selections Matter
In GIMP, a selection defines the region of the canvas that subsequent operations will affect. When you paint, fill, apply a filter, delete pixels, or run a colour correction, it happens only within the selected area. Everything outside the selection is protected and untouched.
Consider the practical implications: to change the sky in a landscape photo from white to blue, you first select the sky, then apply your colour change. Without a selection, the colour change would affect the entire image. With a precise selection, only the sky pixels are modified. This principle underlies almost every non-trivial image editing task - From removing a background to compositing multiple images together.
GIMP represents the active selection with an animated dashed border called "marching ants." This border shows the boundary of the selected region. Pixels inside the boundary are selected; pixels outside are not. In reality, GIMP stores selections as grayscale masks where 255 (white) means fully selected, 0 (black) means not selected, and intermediate values represent partial selection - Which is what feathering and anti-aliasing take advantage of. For a deeper look at working with selections as masks, see the guide on layer masks.
The Selection Workflow Pattern
Most editing workflows follow this pattern: (1) make a selection, (2) refine the selection, (3) apply the edit. The time you invest in making an accurate selection is almost always worth it - A good selection makes the subsequent edit look natural, while a poor selection gives away the manipulation immediately.
Rectangle Select (R) and Ellipse Select (E)
These two tools are the simplest selection methods in GIMP and the right choice whenever the object you want to select is roughly rectangular or circular. Click and drag on the canvas to draw the selection shape. The selection boundary appears as soon as you release the mouse button.
Key Modifiers
- Hold Shift while dragging to constrain Rectangle Select to a square, or Ellipse Select to a circle.
- Hold Ctrl while drawing to expand the selection from its centre point outward.
- After drawing, click inside the selection and drag to reposition it without resizing.
- Use the arrow keys to nudge the selection boundary one pixel at a time after drawing it.
Fixed Size and Fixed Ratio
In the Tool Options panel, set the "Fixed" dropdown to Aspect Ratio or Size to constrain the selection to specific proportions or exact pixel dimensions. For example, set "Fixed" to "Size" and enter 800 x 600 px to always select exactly that region wherever you click - Extremely useful for cropping multiple images to the same dimensions.
Free Select / Lasso Tool - F
The Free Select tool (also called the Lasso) lets you define a selection by drawing its boundary. It works in two modes depending on how you interact with the canvas:
- Click-and-release (polygonal mode): Each click places an anchor point. Straight line segments connect consecutive points. This is precise and well-suited for objects with flat or gently curved edges.
- Click-and-drag (freehand mode): The selection boundary follows the mouse exactly as you drag, producing smooth curves. Requires a steady hand; easier with a graphics tablet.
You can mix both modes in a single selection - Click to set a straight-edge anchor, then click-and-drag for a curved portion. Close the selection by clicking on the first anchor point or pressing Enter. Press Backspace to remove the last anchor point while you are still drawing.
Free Select is the right choice for selecting objects with clearly defined but irregular boundaries, such as a piece of furniture, a sign, or a geometric shape that is neither rectangular nor elliptical. For objects with complex edges (hair, fur, foliage), use Foreground Select instead.
Fuzzy Select (Magic Wand) - U
Fuzzy Select examines the colour of the pixel you click, then automatically grows the selection outward to include all adjacent pixels that are similar in colour, up to the Threshold you specify. When you reach a pixel that differs enough in colour from the original, the selection stops growing at that edge.
The Threshold slider in Tool Options is the key control. A value of 15 selects only very similar colours - Good for flat-colour areas like solid backgrounds. A threshold of 60–80 grabs a broader range, which helps when the background has some gradient or noise but is still clearly distinct from the subject. All selection tools can be found in the GIMP toolbox, along with their keyboard shortcuts.
Practical Use: Removing a White Background
-
1Open the image. Add an alpha channel if the layer does not already have one: Layer → Transparency → Add Alpha Channel.
-
2Activate Fuzzy Select (U). Set Threshold to around 30. Click the white background area.
-
3Check the selection. To add more areas, hold Shift and click unselected white spots. To remove over-selected areas, hold Ctrl and click.
-
4Press Delete to erase the selected background to transparency.
Select by Color - Shift+O
Select by Color works the same way as Fuzzy Select in terms of the Threshold control, but with one critical difference: it selects all matching pixels across the entire image simultaneously, not just those contiguous (touching) with the clicked pixel.
If you click on a red element, Select by Color will select every red pixel in the image regardless of whether they are in the same connected region. This is perfect for selecting all the red elements in a logo, all the blue sky patches visible through foliage, or all the white pixels scattered across a pattern.
The "Sample Merged" checkbox in Tool Options, when enabled, considers pixels from all visible layers rather than just the active layer. This is useful when your image is a composite of multiple layers and you want to select based on the final visual appearance rather than a single layer's content.
Intelligent Scissors - I
The Intelligent Scissors tool uses image analysis to help you place a selection boundary along edges automatically. As you click to place control points around an object, GIMP analyses the pixel contrast between each pair of points and snaps the path between them to the nearest visible edge.
To use it: click once to start, then click around the object's border. Between each pair of clicks, GIMP draws a red line showing where it has detected the edge. If the line deviates from the actual edge, add more control points in that area to guide the algorithm more precisely. When you have circled the entire object, click on your first point to close the selection, then click inside the selection outline to convert it to a marching-ants selection.
When Intelligent Scissors Works Well
This tool performs best when there is clear colour or luminosity contrast between the object and its background. It struggles with low-contrast edges, very detailed boundaries like hair, and areas where the object colour matches the background. In those cases, use Foreground Select or paint a layer mask manually.
Foreground Select
Foreground Select is GIMP's most sophisticated selection tool. It uses colour and texture analysis to extract objects with complex edges - Including hair, fur, and foliage - That other selection tools handle poorly. The tool works in two steps:
Step 1: Rough Outline
Draw a rough freehand outline around the subject - It does not need to be exact, just encompass the entire object. A border of 20-50 pixels around the object is fine. The area outside this outline is treated as definite background.
Step 2: Paint the Foreground
The canvas is shown in blue tint, indicating "unknown" areas. Paint with a brush over the foreground subject to mark what you want to keep. As you paint, GIMP analyses the colours and adjusts the selection. Paint multiple areas across the foreground - Try to cover its full range of colours and tones. Press Enter when satisfied to convert to a selection.
The brush size for Step 2 matters. Use a large brush to cover broad foreground areas quickly, then switch to a small brush to paint over fine details near the edges. Use [ and ] to change brush size without leaving the tool.
Selection Operations - Add, Subtract, Intersect
A single click of a selection tool creates a new selection, replacing any existing one. But you rarely get a perfect selection on the first try. GIMP provides four selection modes to combine selections, accessible via Tool Options or keyboard modifiers:
Replace (default)
Each new selection replaces the previous one. This is the default when you click without any modifier key held.
Add - Hold Shift
Adds the new selection to the existing selection. The result is the union of both. Use this to extend a selection to cover more area.
Subtract - Hold Ctrl
Removes the new selection area from the existing selection. Use this to cut away portions you selected accidentally or do not want.
Intersect - Hold Shift+Ctrl
Keeps only the overlapping area where both the existing selection and the new selection coincide. Useful for narrowing a selection to a precise region.
In practice, a typical workflow for removing a background uses Fuzzy Select with Add and Subtract to iteratively refine the selection: first select most of the background with a single click, then Shift+click to add missed patches, and Ctrl+click to remove any foreground areas that were incorrectly included. For portrait retouching, combining these selection techniques with the Heal tool produces seamless results.
Feathering & Anti-Aliasing
A selection boundary in GIMP does not have to be a hard, binary on-or-off edge. Two tools soften the boundary to create more natural-looking results when the selected area is edited or removed.
Anti-Aliasing
Anti-aliasing uses partial transparency at the edges of a selection to smooth the staircase (jagged) effect that appears when a curved edge is expressed in a pixel grid. It is a yes/no toggle in Tool Options (enabled by default for tools that support it). Always leave anti-aliasing enabled unless you are doing pixel art where you explicitly want hard edges.
Feathering
Feathering adds a soft gradient to the selection boundary. Instead of a sharp line between "selected" and "not selected," feathering creates a zone that transitions gradually from fully selected (255) to not selected (0). The Feather Radius setting in Tool Options controls how many pixels wide this transition zone is.
A feather radius of 1-2 px makes selections blend seamlessly when pasting onto a new background. A radius of 20-30 px creates a soft vignette effect when you darken or brighten the selected area. Feathering can also be applied after the fact via Select → Feather (enter the radius in the dialog).
When to Feather
Grow, Shrink, Border, and Feather from the Select Menu
The Select menu contains several operations that modify an existing selection without replacing it. These are invaluable for refining selections after the initial creation.
| Menu Item | What It Does | Typical Use |
|---|---|---|
| Select All | Selects every pixel on the canvas | Copy the entire canvas, or fill the whole image |
| Select None | Removes the active selection entirely | After finishing a selective edit; also Shift+Ctrl+A |
| Invert | Swaps selected and unselected regions | Select background, then invert to get the subject; also Ctrl+I |
| Grow | Expands the selection outward by N pixels | Ensure you capture every edge pixel; fix a slightly too-tight selection |
| Shrink | Contracts the selection inward by N pixels | Avoid including background pixels around edges; reduce halo |
| Border | Creates a new selection around the edge of the current selection (a ring) | Select just the edge for strokes, outlines, or border effects |
| Feather | Applies a feather radius to the current selection | Soften a selection edge after the fact |
| Sharpen | Hardens a feathered selection back toward a crisp edge | Tighten a feathered selection that is too soft |
| Round Rectangle | Converts a rectangular selection to one with rounded corners | UI mockups, rounded badge shapes |
| To Path | Converts the selection boundary to a vector path | Create a path from a selection for precise editing or export |
| From Path | Converts an existing path back into a selection | Use a carefully drawn path as a selection boundary |
Saving Selections as Channels
GIMP allows you to save the current selection as a named channel so you can reload it at any time. This is essential for complex selections that took significant time to create, and for selections you need to reuse across multiple editing sessions.
How to Save a Selection
-
1With an active selection (marching ants visible), go to Select → Save to Channel. A new channel entry appears in the Channels panel.
-
2Double-click the channel in the Channels panel to rename it (e.g., "Sky selection" or "Subject mask"). The channel is stored in the .xcf file and will be there next time you open it.
-
3To reload the selection later, open the Channels panel, right-click the saved channel, and choose Channel to Selection. The selection is restored exactly as saved.
Channels are stored as grayscale images. You can actually paint on a channel directly to add or remove parts of the saved selection - Paint with white to add to the selection, black to remove, or gray for partial selection (feathered areas). Access the channel for painting by clicking its thumbnail in the Channels panel.
Quick Mask - Shift+Q
Quick Mask is a powerful way to see and paint a selection as a visual overlay rather than the abstract marching-ants boundary. Press Shift+Q to enter Quick Mask mode - The canvas shows a red semi-transparent overlay covering the unselected areas, while the selected area appears as normal.
In Quick Mask mode, you paint to edit the selection: paint with white to add to the selection (removes red), paint with black to remove from the selection (adds red), and paint with gray for partially selected (feathered) areas. You have access to all of GIMP's paint tools, including soft-edge brushes, which means you can create extremely precise and smooth selection boundaries that would be impossible to achieve with any single selection tool.
Press Shift+Q again to exit Quick Mask mode and convert your painted mask back into a standard selection. The marching ants boundary will now reflect precisely the mask you painted.
Quick Mask Workflow for Hair Extraction
Quick Mask is the professional way to extract subjects with fine detail. Start with a rough Fuzzy Select, enter Quick Mask (Shift+Q), then refine with a small soft brush in white to recover individual hair strands. Exit Quick Mask for the final selection.
Selection Tool Comparison
No single selection tool is best for every situation. The table and radar chart below summarise each tool's strengths and the types of subjects it handles best.
| Tool | Speed | Precision | Edge Quality | Best Use Case |
|---|---|---|---|---|
| Rectangle Select | Very fast | Exact pixel control with fixed size | Hard edge (anti-aliased) | Rectangular objects, banner crops, UI screenshots |
| Ellipse Select | Very fast | Exact pixel control with fixed size | Smooth anti-aliased curve | Circular objects, portrait vignettes |
| Free Select / Lasso | Moderate | Good for polygonal shapes | Depends on drawing accuracy | Irregular polygons, objects with defined straight edges |
| Fuzzy Select | Fast | Moderate - Limited by threshold | Follows colour boundaries | Solid-colour backgrounds, flat areas with consistent colour |
| Select by Color | Fast | Moderate - Limited by threshold | Follows colour boundaries | Removing a colour throughout the image; coloured logos |
| Intelligent Scissors | Moderate | Good for objects with clear contrast | Follows detected edges | Objects against contrasting backgrounds; product photos |
| Foreground Select | Slower (2-step) | High - Handles complex edges | Excellent for hair/fur | People, animals, complex foreground subjects |
| Quick Mask (paint) | Slow (manual) | Pixel-perfect | Any quality you paint | Final refinement; any subject where other tools fall short |
Selection Tool Comparison - Radar Chart (Speed / Precision / Ease / Edge Quality)
Scores from 1 to 10 across four dimensions. Rectangle and Ellipse excel at speed and ease; Foreground Select and Quick Mask win on edge quality and precision but require more time.
Photo Editing in GIMP
Learn colour correction, exposure adjustments, background removal, skin retouching, and compositing techniques for photographic work.
Read next →