Inkscape, a powerful and free vector graphics editor, offers a variety of methods for manipulating paths and shapes. While the concept of "erasing" might immediately bring to mind raster image editors, Inkscape provides distinct vector-based approaches to achieve similar results. This tutorial delves into several techniques for removing or isolating parts of lines and shapes, addressing common user challenges and offering clear explanations for achieving desired outcomes. Whether you're a beginner seeking to understand fundamental operations or an experienced user looking to refine your workflow, this guide will illuminate the path to precise path editing in Inkscape.
Understanding Vector Path Fundamentals
Before diving into specific tools, it's crucial to grasp the underlying principles of vector graphics in Inkscape. Unlike raster images, which are composed of pixels, vector graphics are defined by mathematical equations that describe lines, curves, and shapes. This means that vector objects can be scaled infinitely without losing quality.
In Inkscape, lines and strokes are often represented as "open paths" - essentially a series of connected nodes that define a line's trajectory. Shapes, on the other hand, are typically "closed paths," where the start and end nodes are connected, forming a contiguous boundary. The distinction is important because different tools and operations interact with these path types in unique ways.

The Eraser Tool: Nuances and Applications
The Eraser Tool (shortcut: Shift + E) in Inkscape is a versatile, albeit sometimes misunderstood, tool for modifying vector objects. It's important to recognize that while conceptually similar to a raster eraser, its behavior in Inkscape is rooted in vector path manipulation. The effectiveness of the Eraser Tool often hinges on understanding its three distinct operational modes, accessible through the tool's control bar at the top of the canvas.
Option 1: Delete Objects Touched by Eraser
This is the most straightforward application of the Eraser Tool. When this option is selected, any object that the eraser stroke intersects will be entirely deleted. Imagine drawing a line across an ellipse; if this mode is active, the entire ellipse will vanish. This mode is a quick way to remove whole objects from your canvas without needing to select them individually. It's akin to a digital sweep-and-destroy for entire elements.
Option 2: Cut Out from Paths and Shapes
This mode offers a more nuanced approach, allowing you to "carve" into existing paths and shapes. When you draw an eraser stroke across a path or shape with this option enabled, the stroke itself is effectively removed from the object, leaving behind a cut. The result is that the original object is broken into two separate paths where the eraser stroke passed through.
A particularly useful feature within this option is "Break Apart Cut Items." If your eraser stroke completely traverses a shape, enabling this setting will result in the shape being divided into two distinct, independent objects. This is incredibly useful for creating intricate cut-out designs, such as snowflakes or lace-like patterns, where a single stroke can divide a shape into multiple components.
Eraser Tool - Inkscape Tutorial
Option 3: Clip from Objects
This mode functions differently from the other two. Instead of removing the stroked area, it uses the eraser stroke as a "clipping mask." The original shape remains intact, but only the portion not covered by the eraser stroke will be visible. This is a powerful way to selectively reveal or hide parts of an object.
Furthermore, this option integrates with Inkscape's broader clipping functionalities. By navigating to Object > Clip > Set Inverse, you can invert the clipping mask. This means that the area covered by your eraser stroke becomes visible, while the rest of the original object is hidden. This offers a flexible way to control visibility and create complex visual effects.
It is important to note that the Eraser Tool can be used with various vector objects, including shapes and paths, and even imported vector files like SVGs. However, it cannot be used with raster image formats such as PNG or JPEG, as these are pixel-based and do not possess the vector path structure that the Eraser Tool manipulates.
Beyond the Eraser: Node Tool and Path Operations
While the Eraser Tool can be effective, many Inkscape users find that the "vector way" to edit paths involves more direct manipulation using the Node Tool or leveraging Inkscape's powerful path operations. These methods often provide greater precision and control, especially for complex edits.
The Node Tool: Direct Path Editing
The Node Tool (shortcut: N) is the fundamental tool for manipulating the individual points (nodes) that define a path. With the Node Tool selected, you can:
- Select Nodes: Click on a node to select it. You can select multiple nodes by holding Shift or by dragging a selection box around them.
- Move Nodes: Click and drag a selected node to reposition it. This directly alters the shape of the path.
- Add Nodes: Double-click on a path segment to add a new node.
- Delete Nodes: Select a node and press the Delete key to remove it.
- Convert Nodes: Nodes can be converted between different types (e.g., sharp corner to smooth curve) to refine the path's curvature.
- Join Nodes: Select two open nodes and use the "Join selected nodes" button in the control bar to connect them into a single path.
- Break Path: Select a node and use the "Break path at selected nodes" button to split a path into two separate paths at that point.
By directly manipulating nodes, you can precisely trim, extend, or reshape any part of a path without needing an "eraser" stroke. For example, to remove a section of a line, you could select the two nodes at the ends of the unwanted section and delete them.

Path Operations (Boolean Operations)
Inkscape's Path Operations, often referred to as Boolean operations, provide powerful ways to combine and subtract shapes. These operations work on closed paths, and importantly, they often require strokes to be converted to paths first.
The common operations include:
- Union: Combines selected objects into a single, larger object.
- Difference: Subtracts the second object from the first. This is the operation that most closely resembles "cutting out" a shape.
- Intersection: Creates a new object that is the overlapping area of the selected objects.
- Exclusion: Creates a new object from the areas where the selected objects do not overlap.
- Division: Splits selected objects into separate components based on their overlaps.
Using "Difference" for Cutting
A common scenario where "Difference" is used is when you want to cut a hole in a shape using another shape. For instance, to create a circular hole in a square:
- Draw a square and a circle.
- Ensure the circle is on top of the square (use
Object > Raise SelectionorObject > Lower Selection). - Select both the square and the circle.
- Go to
Path > Difference. The circle will be subtracted from the square, leaving a square with a circular hole.
A Common Pitfall: Users often encounter issues when trying to use "Difference" with stroked paths directly. The problem is that a stroked path is not a filled area in the same way a closed shape is. To use "Difference" effectively with strokes, you must first convert the stroke to a path.
Converting Strokes to Paths
This is a crucial step for many path operations. To convert a stroke to a path:
- Select the object with the stroke you want to convert.
- Go to
Path > Stroke to Path(or use the shortcutCtrl + Alt + C).
Once a stroke is converted to a path, it becomes a closed object that can be used in Boolean operations. This is why the user's initial attempts with Path > Stroke to Path followed by Path > Difference were conceptually correct, but the outcome might have been unexpected due to the nature of the "line" used for cutting.
Clipping: An Alternative to Boolean Operations
Clipping in Inkscape offers another method for controlling the visibility of objects, similar to Option 3 of the Eraser Tool but with more explicit control. A clipping path acts like a stencil, defining which parts of an object (or group of objects) are visible.
How Clipping Works
- Create the Clipping Object: This is the object that will define the boundaries of what is visible. It must be a closed path. If you are using a stroke as your clipping boundary, you will need to convert it to a path first (
Path > Stroke to Path). - Create the Object to be Clipped: This is the object whose visibility you want to control.
- Positioning: The clipping object must be placed on top of the object to be clipped.
- Apply Clipping: Select both the clipping object and the object to be clipped. Go to
Object > Clip > Set.
The result is that the object below will only be visible within the boundaries of the clipping object.
Common Issues with Clipping:
- Clip Object Not on Top: If the clipping object is not the topmost selected item, clipping will not work as expected.
- Clip Object Not a Closed Path: The clipping object must be a closed path. A simple un-converted stroke will not work as a clipping path.
- Multiple Objects: If you have multiple objects to be clipped, group them together (
Object > Group) before applying the clip.
Inverse Clipping
As mentioned with the Eraser Tool, Inkscape also supports inverse clipping. After setting a clip, you can go to Object > Clip > Set Inverse. This flips the clipping behavior, making the area outside the clipping path visible and the area inside hidden.
Workarounds and Specific Scenarios
The initial problem described by a user - "I dragged the erase tool down over the part of the line I want erased or cut, but when I let go of the mouse button, my whole line is erased" - points to a misunderstanding of the Eraser Tool's default behavior (Option 1: Delete Objects Touched by Eraser). To achieve a cut, Option 2 or Option 3 would be necessary.
Another user's experience: "I then select the object, the shift select the other object. I then select Object > Path to stroke. I then select Object > Clip > Set. But it leaves the line I drew, not the other line I want clipped." This indicates that the "line I drew" was likely intended to be the clipping object, but it was not a closed path, or it was not correctly positioned on top. If the intention was to cut a section out of the "other line," then the Path > Difference operation after converting the cutting line to a path would be more appropriate.
The user's successful workaround: "I ended up drawing the line where I want the object cut/clipped. I then select the line and the object below it. I then select Path > Stroke to path. And lastly I select Path > Difference. And then line I drew disappears along with the section below it that I wanted clipped." This is a classic application of the Difference operation. The line drawn acts as the shape to be subtracted. When Path > Difference is applied, the subtracting shape (the line, now converted to a path) is removed, and the area it occupied is cut from the object below. The line itself disappears because it was part of the operation.
Masking as an Alternative
Masking is another powerful technique in Inkscape that can achieve similar results to clipping, but with more flexibility. A mask uses the luminance (brightness) of an object to determine the transparency of another object. Unlike clipping, which simply hides areas, masking allows for graded transparency. A mask can be an open path, a group of objects, or even a raster image. This makes it a very versatile tool for complex effects.
Conclusion
Mastering path manipulation in Inkscape, whether through the Eraser Tool, the Node Tool, Boolean operations, or clipping and masking, is fundamental to creating sophisticated vector artwork. While the Eraser Tool offers quick solutions, understanding its modes is key. For precision and control, the Node Tool and path operations are invaluable. Remembering to convert strokes to paths before applying Boolean operations or using them as clipping objects is a common requirement that often resolves user difficulties. By exploring these techniques, users can confidently tackle the task of precisely editing and shaping their vector designs.