SVG stroke-linejoin: Miter vs Round vs Bevel

The SVG stroke-linejoin property defines the shape used to join two intersecting line segments or path subpaths. This article breaks down the visual and functional differences among its three core values—miter, round, and bevel—explaining how each handles corners, alters path geometry, and impacts the overall aesthetic of scalable vector graphics.


What Is stroke-linejoin?

When a path or polygon changes direction, a corner is formed. The stroke-linejoin attribute determines how the outside edges of the two meeting lines connect. Without defining a join style, SVG renderers default to standard angular joins, but customizing this property gives you precise control over sharp, soft, or truncated corners.


1. Miter (stroke-linejoin="miter")

The miter value is the default setting in SVG.


2. Round (stroke-linejoin="round")

The round value softens the transition between intersecting strokes.


3. Bevel (stroke-linejoin="bevel")

The bevel value creates a flat, angled corner.


Quick Comparison

Value Corner Style Best Used For
miter Sharp, pointed Standard geometric shapes, sharp-edged icons, right angles
round Smooth, curved Friendly UI icons, organic shapes, bubbly illustrations
bevel Flat, sliced Industrial graphics, technical diagrams, acute-angle containment