# diff icon

Diff. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/diff

- Category: Development
- Use it for: diff, patch, view diff
- Tags: diff, patch, changes, plus-minus, compare, additions, deletions, version-control, developer
- Family: diff-modified, git-branch, git-branch-alert, git-branch-check, git-branch-pencil, git-branch-plus, git-branch-shield, git-branch-sync, git-branch-x, git-commit, git-compare, git-fork, git-merge, git-pull-request, git-pull-request-closed, git-pull-request-draft, git-pull-request-plus
- Component name: DiffIcon
- Added: 2026-10-15

## Alternatives

- `file-diff`: a diff or patch file (patch-file)
- `git-compare`: compare two branches (compare-branches)
- `compare`: compare two items side by side (compare)

## Don't confuse with

- `plus-minus`: the math ± operator (toggle-sign)

## Also fits

- compare: the changes between two texts or files
- compare branches: the changes themselves (diff)
- file diff: a diff or patch without the file (diff)

## 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/diff.svg · PNG https://gentleface.com/png/line-round/16/diff.png · https://gentleface.com/png/line-round/32/diff.png · https://gentleface.com/png/line-round/48/diff.png
- line-soft: https://gentleface.com/svg/line-soft/16/diff.svg · PNG https://gentleface.com/png/line-soft/16/diff.png · https://gentleface.com/png/line-soft/32/diff.png · https://gentleface.com/png/line-soft/48/diff.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/diff.svg · PNG https://gentleface.com/png/line-sharp/16/diff.png · https://gentleface.com/png/line-sharp/32/diff.png · https://gentleface.com/png/line-sharp/48/diff.png
- solid-round: https://gentleface.com/svg/solid-round/16/diff.svg · PNG https://gentleface.com/png/solid-round/16/diff.png · https://gentleface.com/png/solid-round/32/diff.png · https://gentleface.com/png/solid-round/48/diff.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/diff.svg · PNG https://gentleface.com/png/solid-soft/16/diff.png · https://gentleface.com/png/solid-soft/32/diff.png · https://gentleface.com/png/solid-soft/48/diff.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/diff.svg · PNG https://gentleface.com/png/solid-sharp/16/diff.png · https://gentleface.com/png/solid-sharp/32/diff.png · https://gentleface.com/png/solid-sharp/48/diff.png

The SVG of every style: https://gentleface.com/icons/diff.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="M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z"/></svg>
```

### React

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

export function DiffIcon(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="M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff -->
<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="M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff -->
<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="M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff. 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/diff.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff. Takes the text color. */
.icon-diff {
  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='M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z'/%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='M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z'/%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='M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff
     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#diff"/></svg>
```

### SwiftUI

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

struct DiffIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12.5, y: 6))
        p.addCurve(to: CGPoint(x: 12.856, y: 6.144), control1: CGPoint(x: 12.641, y: 6), control2: CGPoint(x: 12.759, y: 6.048))
        p.addCurve(to: CGPoint(x: 13, y: 6.5), control1: CGPoint(x: 12.952, y: 6.241), control2: CGPoint(x: 13, y: 6.359))
        p.addCurve(to: CGPoint(x: 12.856, y: 6.856), control1: CGPoint(x: 13, y: 6.641), control2: CGPoint(x: 12.952, y: 6.759))
        p.addCurve(to: CGPoint(x: 12.5, y: 7), control1: CGPoint(x: 12.759, y: 6.952), control2: CGPoint(x: 12.641, y: 7))
        p.addLine(to: CGPoint(x: 8, y: 7))
        p.addLine(to: CGPoint(x: 8, y: 11.5))
        p.addCurve(to: CGPoint(x: 7.856, y: 11.856), control1: CGPoint(x: 8, y: 11.641), control2: CGPoint(x: 7.952, y: 11.759))
        p.addCurve(to: CGPoint(x: 7.5, y: 12), control1: CGPoint(x: 7.759, y: 11.952), control2: CGPoint(x: 7.641, y: 12))
        p.addCurve(to: CGPoint(x: 7.144, y: 11.856), control1: CGPoint(x: 7.359, y: 12), control2: CGPoint(x: 7.241, y: 11.952))
        p.addCurve(to: CGPoint(x: 7, y: 11.5), control1: CGPoint(x: 7.048, y: 11.759), control2: CGPoint(x: 7, y: 11.641))
        p.addLine(to: CGPoint(x: 7, y: 7))
        p.addLine(to: CGPoint(x: 2.5, y: 7))
        p.addCurve(to: CGPoint(x: 2.144, y: 6.856), control1: CGPoint(x: 2.359, y: 7), control2: CGPoint(x: 2.241, y: 6.952))
        p.addCurve(to: CGPoint(x: 2, y: 6.5), control1: CGPoint(x: 2.048, y: 6.759), control2: CGPoint(x: 2, y: 6.641))
        p.addCurve(to: CGPoint(x: 2.144, y: 6.144), control1: CGPoint(x: 2, y: 6.359), control2: CGPoint(x: 2.048, y: 6.241))
        p.addCurve(to: CGPoint(x: 2.5, y: 6), control1: CGPoint(x: 2.241, y: 6.048), control2: CGPoint(x: 2.359, y: 6))
        p.addLine(to: CGPoint(x: 7, y: 6))
        p.addLine(to: CGPoint(x: 7, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.144, y: 1.144), control1: CGPoint(x: 7, y: 1.359), control2: CGPoint(x: 7.048, y: 1.241))
        p.addCurve(to: CGPoint(x: 7.5, y: 1), control1: CGPoint(x: 7.241, y: 1.048), control2: CGPoint(x: 7.359, y: 1))
        p.addCurve(to: CGPoint(x: 7.856, y: 1.144), control1: CGPoint(x: 7.641, y: 1), control2: CGPoint(x: 7.759, y: 1.048))
        p.addCurve(to: CGPoint(x: 8, y: 1.5), control1: CGPoint(x: 7.952, y: 1.241), control2: CGPoint(x: 8, y: 1.359))
        p.addLine(to: CGPoint(x: 8, y: 6))
        p.addLine(to: CGPoint(x: 12.5, y: 6))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2, y: 14.5))
        p.addCurve(to: CGPoint(x: 2.144, y: 14.144), control1: CGPoint(x: 2, y: 14.359), control2: CGPoint(x: 2.048, y: 14.241))
        p.addCurve(to: CGPoint(x: 2.5, y: 14), control1: CGPoint(x: 2.241, y: 14.048), control2: CGPoint(x: 2.359, y: 14))
        p.addLine(to: CGPoint(x: 12.5, y: 14))
        p.addCurve(to: CGPoint(x: 12.856, y: 14.144), control1: CGPoint(x: 12.641, y: 14), control2: CGPoint(x: 12.759, y: 14.048))
        p.addCurve(to: CGPoint(x: 13, y: 14.5), control1: CGPoint(x: 12.952, y: 14.241), control2: CGPoint(x: 13, y: 14.359))
        p.addCurve(to: CGPoint(x: 12.856, y: 14.856), control1: CGPoint(x: 13, y: 14.641), control2: CGPoint(x: 12.952, y: 14.759))
        p.addCurve(to: CGPoint(x: 12.5, y: 15), control1: CGPoint(x: 12.759, y: 14.952), control2: CGPoint(x: 12.641, y: 15))
        p.addLine(to: CGPoint(x: 2.5, y: 15))
        p.addCurve(to: CGPoint(x: 2.144, y: 14.856), control1: CGPoint(x: 2.359, y: 15), control2: CGPoint(x: 2.241, y: 14.952))
        p.addCurve(to: CGPoint(x: 2, y: 14.5), control1: CGPoint(x: 2.048, y: 14.759), control2: CGPoint(x: 2, y: 14.641))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff
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 DiffIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "diff", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_diff.xml · Gentleface "diff" (line-round), MIT. https://gentleface.com/icons/diff -->
<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="M12.5 6C12.641 6 12.759 6.048 12.856 6.144C12.952 6.241 13 6.359 13 6.5C13 6.641 12.952 6.759 12.856 6.856C12.759 6.952 12.641 7 12.5 7L8 7L8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12C7.359 12 7.241 11.952 7.144 11.856C7.048 11.759 7 11.641 7 11.5L7 7L2.5 7C2.359 7 2.241 6.952 2.144 6.856C2.048 6.759 2 6.641 2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6L7 6L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 6L12.5 6ZM2 14.5C2 14.359 2.048 14.241 2.144 14.144C2.241 14.048 2.359 14 2.5 14L12.5 14C12.641 14 12.759 14.048 12.856 14.144C12.952 14.241 13 14.359 13 14.5C13 14.641 12.952 14.759 12.856 14.856C12.759 14.952 12.641 15 12.5 15L2.5 15C2.359 15 2.241 14.952 2.144 14.856C2.048 14.759 2 14.641 2 14.5Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(12.5, 6)
      ..cubicTo(12.641, 6, 12.759, 6.048, 12.856, 6.144)
      ..cubicTo(12.952, 6.241, 13, 6.359, 13, 6.5)
      ..cubicTo(13, 6.641, 12.952, 6.759, 12.856, 6.856)
      ..cubicTo(12.759, 6.952, 12.641, 7, 12.5, 7)
      ..lineTo(8, 7)
      ..lineTo(8, 11.5)
      ..cubicTo(8, 11.641, 7.952, 11.759, 7.856, 11.856)
      ..cubicTo(7.759, 11.952, 7.641, 12, 7.5, 12)
      ..cubicTo(7.359, 12, 7.241, 11.952, 7.144, 11.856)
      ..cubicTo(7.048, 11.759, 7, 11.641, 7, 11.5)
      ..lineTo(7, 7)
      ..lineTo(2.5, 7)
      ..cubicTo(2.359, 7, 2.241, 6.952, 2.144, 6.856)
      ..cubicTo(2.048, 6.759, 2, 6.641, 2, 6.5)
      ..cubicTo(2, 6.359, 2.048, 6.241, 2.144, 6.144)
      ..cubicTo(2.241, 6.048, 2.359, 6, 2.5, 6)
      ..lineTo(7, 6)
      ..lineTo(7, 1.5)
      ..cubicTo(7, 1.359, 7.048, 1.241, 7.144, 1.144)
      ..cubicTo(7.241, 1.048, 7.359, 1, 7.5, 1)
      ..cubicTo(7.641, 1, 7.759, 1.048, 7.856, 1.144)
      ..cubicTo(7.952, 1.241, 8, 1.359, 8, 1.5)
      ..lineTo(8, 6)
      ..lineTo(12.5, 6)
      ..close()
      ..moveTo(2, 14.5)
      ..cubicTo(2, 14.359, 2.048, 14.241, 2.144, 14.144)
      ..cubicTo(2.241, 14.048, 2.359, 14, 2.5, 14)
      ..lineTo(12.5, 14)
      ..cubicTo(12.641, 14, 12.759, 14.048, 12.856, 14.144)
      ..cubicTo(12.952, 14.241, 13, 14.359, 13, 14.5)
      ..cubicTo(13, 14.641, 12.952, 14.759, 12.856, 14.856)
      ..cubicTo(12.759, 14.952, 12.641, 15, 12.5, 15)
      ..lineTo(2.5, 15)
      ..cubicTo(2.359, 15, 2.241, 14.952, 2.144, 14.856)
      ..cubicTo(2.048, 14.759, 2, 14.641, 2, 14.5)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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