# line-cap-butt icon

Line cap butt. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/line-cap-butt

- Category: Design
- Use it for: butt cap, flat cap
- Tags: line cap, butt cap, flat cap, cap, stroke, stroke end, line end, linecap, stroke-linecap, butt, flat, figma, illustrator, design tool, vector
- Family: line-cap-round, line-cap-square, line-color, line-join-bevel, line-join-miter, line-join-round, line-style, line-weight
- Component name: LineCapButtIcon
- Added: 2026-10-29
- Since: version 0.2.0
- npm: `import { LineCapButtIcon } from '@gentleface/react';` (@gentleface/react 0.2.0)
- Changed: 2026-10-30 (added)

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/line-cap-butt.svg · PNG https://gentleface.com/png/line-round/16/line-cap-butt.png · https://gentleface.com/png/line-round/32/line-cap-butt.png · https://gentleface.com/png/line-round/48/line-cap-butt.png
- line-soft: https://gentleface.com/svg/line-soft/16/line-cap-butt.svg · PNG https://gentleface.com/png/line-soft/16/line-cap-butt.png · https://gentleface.com/png/line-soft/32/line-cap-butt.png · https://gentleface.com/png/line-soft/48/line-cap-butt.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/line-cap-butt.svg · PNG https://gentleface.com/png/line-sharp/16/line-cap-butt.png · https://gentleface.com/png/line-sharp/32/line-cap-butt.png · https://gentleface.com/png/line-sharp/48/line-cap-butt.png
- solid-round: https://gentleface.com/svg/solid-round/16/line-cap-butt.svg · PNG https://gentleface.com/png/solid-round/16/line-cap-butt.png · https://gentleface.com/png/solid-round/32/line-cap-butt.png · https://gentleface.com/png/solid-round/48/line-cap-butt.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/line-cap-butt.svg · PNG https://gentleface.com/png/solid-soft/16/line-cap-butt.png · https://gentleface.com/png/solid-soft/32/line-cap-butt.png · https://gentleface.com/png/solid-soft/48/line-cap-butt.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/line-cap-butt.svg · PNG https://gentleface.com/png/solid-sharp/16/line-cap-butt.png · https://gentleface.com/png/solid-sharp/32/line-cap-butt.png · https://gentleface.com/png/solid-sharp/48/line-cap-butt.png

The SVG of every style: https://gentleface.com/icons/line-cap-butt.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z"/></svg>
```

### React

```tsx
// Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt
import type { SVGProps } from 'react';

export function LineCapButtIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/line-cap-butt.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt. Takes the text color. */
.icon-line-cap-butt {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#line-cap-butt"/></svg>
```

### SwiftUI

```swift
// Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt
import SwiftUI

struct LineCapButtIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 3, y: 6))
        p.addLine(to: CGPoint(x: 4, y: 6))
        p.addLine(to: CGPoint(x: 4, y: 7))
        p.addLine(to: CGPoint(x: 14.5, y: 7))
        p.addCurve(to: CGPoint(x: 14.856, y: 7.144), control1: CGPoint(x: 14.641, y: 7), control2: CGPoint(x: 14.759, y: 7.048))
        p.addCurve(to: CGPoint(x: 15, y: 7.5), control1: CGPoint(x: 14.952, y: 7.241), control2: CGPoint(x: 15, y: 7.359))
        p.addCurve(to: CGPoint(x: 14.856, y: 7.856), control1: CGPoint(x: 15, y: 7.641), control2: CGPoint(x: 14.952, y: 7.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 8), control1: CGPoint(x: 14.759, y: 7.952), control2: CGPoint(x: 14.641, y: 8))
        p.addLine(to: CGPoint(x: 4, y: 8))
        p.addLine(to: CGPoint(x: 4, y: 9))
        p.addLine(to: CGPoint(x: 3, y: 9))
        p.addLine(to: CGPoint(x: 3, y: 11))
        p.addLine(to: CGPoint(x: 14.5, y: 11))
        p.addCurve(to: CGPoint(x: 14.856, y: 11.144), control1: CGPoint(x: 14.641, y: 11), control2: CGPoint(x: 14.759, y: 11.048))
        p.addCurve(to: CGPoint(x: 15, y: 11.5), control1: CGPoint(x: 14.952, y: 11.241), control2: CGPoint(x: 15, y: 11.359))
        p.addCurve(to: CGPoint(x: 14.856, y: 11.856), control1: CGPoint(x: 15, y: 11.641), control2: CGPoint(x: 14.952, y: 11.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 12), control1: CGPoint(x: 14.759, y: 11.952), control2: CGPoint(x: 14.641, y: 12))
        p.addLine(to: CGPoint(x: 2.5, y: 12))
        p.addCurve(to: CGPoint(x: 2.144, y: 11.856), control1: CGPoint(x: 2.359, y: 12), control2: CGPoint(x: 2.241, y: 11.952))
        p.addCurve(to: CGPoint(x: 2, y: 11.5), control1: CGPoint(x: 2.048, y: 11.759), control2: CGPoint(x: 2, y: 11.641))
        p.addLine(to: CGPoint(x: 2, y: 9))
        p.addLine(to: CGPoint(x: 1, y: 9))
        p.addLine(to: CGPoint(x: 1, y: 6))
        p.addLine(to: CGPoint(x: 2, y: 6))
        p.addLine(to: CGPoint(x: 2, y: 3.5))
        p.addCurve(to: CGPoint(x: 2.144, y: 3.144), control1: CGPoint(x: 2, y: 3.359), control2: CGPoint(x: 2.048, y: 3.241))
        p.addCurve(to: CGPoint(x: 2.5, y: 3), control1: CGPoint(x: 2.241, y: 3.048), control2: CGPoint(x: 2.359, y: 3))
        p.addLine(to: CGPoint(x: 14.5, y: 3))
        p.addCurve(to: CGPoint(x: 14.856, y: 3.144), control1: CGPoint(x: 14.641, y: 3), control2: CGPoint(x: 14.759, y: 3.048))
        p.addCurve(to: CGPoint(x: 15, y: 3.5), control1: CGPoint(x: 14.952, y: 3.241), control2: CGPoint(x: 15, y: 3.359))
        p.addCurve(to: CGPoint(x: 14.856, y: 3.856), control1: CGPoint(x: 15, y: 3.641), control2: CGPoint(x: 14.952, y: 3.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 4), control1: CGPoint(x: 14.759, y: 3.952), control2: CGPoint(x: 14.641, y: 4))
        p.addLine(to: CGPoint(x: 3, y: 4))
        p.addLine(to: CGPoint(x: 3, y: 6))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// LineCapButtIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val LineCapButtIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "line-cap-butt", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(LineCapButtIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_line_cap_butt.xml · Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M3 6L4 6L4 7L14.5 7C14.641 7 14.759 7.048 14.856 7.144C14.952 7.241 15 7.359 15 7.5C15 7.641 14.952 7.759 14.856 7.856C14.759 7.952 14.641 8 14.5 8L4 8L4 9L3 9L3 11L14.5 11C14.641 11 14.759 11.048 14.856 11.144C14.952 11.241 15 11.359 15 11.5C15 11.641 14.952 11.759 14.856 11.856C14.759 11.952 14.641 12 14.5 12L2.5 12C2.359 12 2.241 11.952 2.144 11.856C2.048 11.759 2 11.641 2 11.5L2 9L1 9L1 6L2 6L2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L3 4L3 6Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "line-cap-butt" (line-round), MIT. https://gentleface.com/icons/line-cap-butt
import 'package:flutter/widgets.dart';

class LineCapButtIcon extends StatelessWidget {
  const LineCapButtIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _LineCapButtIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _LineCapButtIconPainter extends CustomPainter {
  _LineCapButtIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(3, 6)
      ..lineTo(4, 6)
      ..lineTo(4, 7)
      ..lineTo(14.5, 7)
      ..cubicTo(14.641, 7, 14.759, 7.048, 14.856, 7.144)
      ..cubicTo(14.952, 7.241, 15, 7.359, 15, 7.5)
      ..cubicTo(15, 7.641, 14.952, 7.759, 14.856, 7.856)
      ..cubicTo(14.759, 7.952, 14.641, 8, 14.5, 8)
      ..lineTo(4, 8)
      ..lineTo(4, 9)
      ..lineTo(3, 9)
      ..lineTo(3, 11)
      ..lineTo(14.5, 11)
      ..cubicTo(14.641, 11, 14.759, 11.048, 14.856, 11.144)
      ..cubicTo(14.952, 11.241, 15, 11.359, 15, 11.5)
      ..cubicTo(15, 11.641, 14.952, 11.759, 14.856, 11.856)
      ..cubicTo(14.759, 11.952, 14.641, 12, 14.5, 12)
      ..lineTo(2.5, 12)
      ..cubicTo(2.359, 12, 2.241, 11.952, 2.144, 11.856)
      ..cubicTo(2.048, 11.759, 2, 11.641, 2, 11.5)
      ..lineTo(2, 9)
      ..lineTo(1, 9)
      ..lineTo(1, 6)
      ..lineTo(2, 6)
      ..lineTo(2, 3.5)
      ..cubicTo(2, 3.359, 2.048, 3.241, 2.144, 3.144)
      ..cubicTo(2.241, 3.048, 2.359, 3, 2.5, 3)
      ..lineTo(14.5, 3)
      ..cubicTo(14.641, 3, 14.759, 3.048, 14.856, 3.144)
      ..cubicTo(14.952, 3.241, 15, 3.359, 15, 3.5)
      ..cubicTo(15, 3.641, 14.952, 3.759, 14.856, 3.856)
      ..cubicTo(14.759, 3.952, 14.641, 4, 14.5, 4)
      ..lineTo(3, 4)
      ..lineTo(3, 6)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_LineCapButtIconPainter old) => old.color != color;
}
```
