# compare icon

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

- Category: Actions
- Use it for: compare, side by side comparison, comparison
- Tags: compare, comparison, side-by-side, versus, split, diff, versions
- Component name: CompareIcon
- Added: 2026-10-15

## Alternatives

- `git-compare`: compare branches or commits
- `diff`: the changes between two texts or files
- `image-compare`: before and after images

## Don't confuse with

- `columns`: a column layout, not a comparison

## Also fits

- diff: compare two items side by side (compare)
- file diff: compare two items side by side (compare)
- versus: compare two items side by side
- before after: compare items or versions in general (compare)

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

The SVG of every style: https://gentleface.com/icons/compare.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="M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z"/></svg>
```

### React

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

export function CompareIcon(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="M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "compare" (line-round), MIT. https://gentleface.com/icons/compare -->
<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="M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "compare" (line-round), MIT. https://gentleface.com/icons/compare -->
<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="M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "compare" (line-round), MIT. https://gentleface.com/icons/compare. Takes the text color. */
.icon-compare {
  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='M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z'/%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='M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z'/%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='M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct CompareIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 7.144, y: 1.144))
        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: 13.5))
        p.addCurve(to: CGPoint(x: 7.856, y: 13.856), control1: CGPoint(x: 8, y: 13.641), control2: CGPoint(x: 7.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 7.5, y: 14), control1: CGPoint(x: 7.759, y: 13.952), control2: CGPoint(x: 7.641, y: 14))
        p.addCurve(to: CGPoint(x: 7.144, y: 13.856), control1: CGPoint(x: 7.359, y: 14), control2: CGPoint(x: 7.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 7, y: 13.5), control1: CGPoint(x: 7.048, y: 13.759), control2: CGPoint(x: 7, y: 13.641))
        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.closeSubpath()
        p.move(to: CGPoint(x: 5.707, y: 5.293))
        p.addCurve(to: CGPoint(x: 6, y: 6), control1: CGPoint(x: 5.902, y: 5.488), control2: CGPoint(x: 6, y: 5.724))
        p.addLine(to: CGPoint(x: 6, y: 9))
        p.addCurve(to: CGPoint(x: 5.707, y: 9.707), control1: CGPoint(x: 6, y: 9.276), control2: CGPoint(x: 5.902, y: 9.512))
        p.addCurve(to: CGPoint(x: 5, y: 10), control1: CGPoint(x: 5.512, y: 9.902), control2: CGPoint(x: 5.276, y: 10))
        p.addLine(to: CGPoint(x: 2, y: 10))
        p.addCurve(to: CGPoint(x: 1.293, y: 9.707), control1: CGPoint(x: 1.724, y: 10), control2: CGPoint(x: 1.488, y: 9.902))
        p.addCurve(to: CGPoint(x: 1, y: 9), control1: CGPoint(x: 1.098, y: 9.512), control2: CGPoint(x: 1, y: 9.276))
        p.addLine(to: CGPoint(x: 1, y: 6))
        p.addCurve(to: CGPoint(x: 1.293, y: 5.293), control1: CGPoint(x: 1, y: 5.724), control2: CGPoint(x: 1.098, y: 5.488))
        p.addCurve(to: CGPoint(x: 2, y: 5), control1: CGPoint(x: 1.488, y: 5.098), control2: CGPoint(x: 1.724, y: 5))
        p.addLine(to: CGPoint(x: 5, y: 5))
        p.addCurve(to: CGPoint(x: 5.707, y: 5.293), control1: CGPoint(x: 5.276, y: 5), control2: CGPoint(x: 5.512, y: 5.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.707, y: 9.707))
        p.addCurve(to: CGPoint(x: 13, y: 10), control1: CGPoint(x: 13.512, y: 9.902), control2: CGPoint(x: 13.276, y: 10))
        p.addLine(to: CGPoint(x: 10, y: 10))
        p.addCurve(to: CGPoint(x: 9.293, y: 9.707), control1: CGPoint(x: 9.724, y: 10), control2: CGPoint(x: 9.488, y: 9.902))
        p.addCurve(to: CGPoint(x: 9, y: 9), control1: CGPoint(x: 9.098, y: 9.512), control2: CGPoint(x: 9, y: 9.276))
        p.addLine(to: CGPoint(x: 9, y: 6))
        p.addCurve(to: CGPoint(x: 9.293, y: 5.293), control1: CGPoint(x: 9, y: 5.724), control2: CGPoint(x: 9.098, y: 5.488))
        p.addCurve(to: CGPoint(x: 10, y: 5), control1: CGPoint(x: 9.488, y: 5.098), control2: CGPoint(x: 9.724, y: 5))
        p.addLine(to: CGPoint(x: 13, y: 5))
        p.addCurve(to: CGPoint(x: 13.707, y: 5.293), control1: CGPoint(x: 13.276, y: 5), control2: CGPoint(x: 13.512, y: 5.098))
        p.addCurve(to: CGPoint(x: 14, y: 6), control1: CGPoint(x: 13.902, y: 5.488), control2: CGPoint(x: 14, y: 5.724))
        p.addLine(to: CGPoint(x: 14, y: 9))
        p.addCurve(to: CGPoint(x: 13.707, y: 9.707), control1: CGPoint(x: 14, y: 9.276), control2: CGPoint(x: 13.902, y: 9.512))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2, y: 9))
        p.addLine(to: CGPoint(x: 5, y: 9))
        p.addLine(to: CGPoint(x: 5, y: 6))
        p.addLine(to: CGPoint(x: 2, y: 6))
        p.addLine(to: CGPoint(x: 2, y: 9))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13, y: 9))
        p.addLine(to: CGPoint(x: 13, y: 6))
        p.addLine(to: CGPoint(x: 10, y: 6))
        p.addLine(to: CGPoint(x: 10, y: 9))
        p.addLine(to: CGPoint(x: 13, y: 9))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "compare" (line-round), MIT. https://gentleface.com/icons/compare
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 CompareIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "compare", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_compare.xml · Gentleface "compare" (line-round), MIT. https://gentleface.com/icons/compare -->
<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="M7.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 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144ZM5.707 5.293C5.902 5.488 6 5.724 6 6L6 9C6 9.276 5.902 9.512 5.707 9.707C5.512 9.902 5.276 10 5 10L2 10C1.724 10 1.488 9.902 1.293 9.707C1.098 9.512 1 9.276 1 9L1 6C1 5.724 1.098 5.488 1.293 5.293C1.488 5.098 1.724 5 2 5L5 5C5.276 5 5.512 5.098 5.707 5.293ZM13.707 9.707C13.512 9.902 13.276 10 13 10L10 10C9.724 10 9.488 9.902 9.293 9.707C9.098 9.512 9 9.276 9 9L9 6C9 5.724 9.098 5.488 9.293 5.293C9.488 5.098 9.724 5 10 5L13 5C13.276 5 13.512 5.098 13.707 5.293C13.902 5.488 14 5.724 14 6L14 9C14 9.276 13.902 9.512 13.707 9.707ZM2 9L5 9L5 6L2 6L2 9ZM13 9L13 6L10 6L10 9L13 9Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(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, 13.5)
      ..cubicTo(8, 13.641, 7.952, 13.759, 7.856, 13.856)
      ..cubicTo(7.759, 13.952, 7.641, 14, 7.5, 14)
      ..cubicTo(7.359, 14, 7.241, 13.952, 7.144, 13.856)
      ..cubicTo(7.048, 13.759, 7, 13.641, 7, 13.5)
      ..lineTo(7, 1.5)
      ..cubicTo(7, 1.359, 7.048, 1.241, 7.144, 1.144)
      ..close()
      ..moveTo(5.707, 5.293)
      ..cubicTo(5.902, 5.488, 6, 5.724, 6, 6)
      ..lineTo(6, 9)
      ..cubicTo(6, 9.276, 5.902, 9.512, 5.707, 9.707)
      ..cubicTo(5.512, 9.902, 5.276, 10, 5, 10)
      ..lineTo(2, 10)
      ..cubicTo(1.724, 10, 1.488, 9.902, 1.293, 9.707)
      ..cubicTo(1.098, 9.512, 1, 9.276, 1, 9)
      ..lineTo(1, 6)
      ..cubicTo(1, 5.724, 1.098, 5.488, 1.293, 5.293)
      ..cubicTo(1.488, 5.098, 1.724, 5, 2, 5)
      ..lineTo(5, 5)
      ..cubicTo(5.276, 5, 5.512, 5.098, 5.707, 5.293)
      ..close()
      ..moveTo(13.707, 9.707)
      ..cubicTo(13.512, 9.902, 13.276, 10, 13, 10)
      ..lineTo(10, 10)
      ..cubicTo(9.724, 10, 9.488, 9.902, 9.293, 9.707)
      ..cubicTo(9.098, 9.512, 9, 9.276, 9, 9)
      ..lineTo(9, 6)
      ..cubicTo(9, 5.724, 9.098, 5.488, 9.293, 5.293)
      ..cubicTo(9.488, 5.098, 9.724, 5, 10, 5)
      ..lineTo(13, 5)
      ..cubicTo(13.276, 5, 13.512, 5.098, 13.707, 5.293)
      ..cubicTo(13.902, 5.488, 14, 5.724, 14, 6)
      ..lineTo(14, 9)
      ..cubicTo(14, 9.276, 13.902, 9.512, 13.707, 9.707)
      ..close()
      ..moveTo(2, 9)
      ..lineTo(5, 9)
      ..lineTo(5, 6)
      ..lineTo(2, 6)
      ..lineTo(2, 9)
      ..close()
      ..moveTo(13, 9)
      ..lineTo(13, 6)
      ..lineTo(10, 6)
      ..lineTo(10, 9)
      ..lineTo(13, 9)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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