Gentleface › Files & folders › file-diff
file-diff icon
file-diffFile diff: file diff, patch file, file changes. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.42 4.713 12.63 5.028 12.778 5.385C12.926 5.742 13 6.114 13 6.5L13 13C13 13.254 12.953 13.5 12.86 13.736C12.758 13.993 12.609 14.219 12.414 14.414C12.219 14.609 11.993 14.758 11.736 14.86C11.5 14.953 11.254 15 11 15L5 15C4.692 15 4.4 14.933 4.124 14.798C3.999 14.737 3.915 14.642 3.87 14.511C3.825 14.381 3.833 14.253 3.893 14.129C3.917 14.08 3.946 14.037 3.981 14L11 14C11.276 14 11.512 13.902 11.707 13.707C11.902 13.512 12 13.276 12 13L12 6.5C12 6.329 11.978 6.162 11.934 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 4.5C4 4.641 3.952 4.759 3.856 4.856C3.759 4.952 3.641 5 3.5 5C3.359 5 3.241 4.952 3.144 4.856C3.048 4.759 3 4.641 3 4.5L3 3C3 2.746 3.047 2.5 3.14 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.707ZM6.856 8.144C6.952 8.241 7 8.359 7 8.5C7 8.641 6.952 8.759 6.856 8.856C6.759 8.952 6.641 9 6.5 9L5 9L5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11C4.359 11 4.241 10.952 4.144 10.856C4.048 10.759 4 10.641 4 10.5L4 9L2.5 9C2.359 9 2.241 8.952 2.144 8.856C2.048 8.759 2 8.641 2 8.5C2 8.359 2.048 8.241 2.144 8.144C2.241 8.048 2.359 8 2.5 8L4 8L4 6.5C4 6.359 4.048 6.241 4.144 6.144C4.241 6.048 4.359 6 4.5 6C4.641 6 4.759 6.048 4.856 6.144C4.952 6.241 5 6.359 5 6.5L5 8L6.5 8C6.641 8 6.759 8.048 6.856 8.144ZM2.144 12.144C2.241 12.048 2.359 12 2.5 12L6.5 12C6.641 12 6.759 12.048 6.856 12.144C6.952 12.241 7 12.359 7 12.5C7 12.641 6.952 12.759 6.856 12.856C6.759 12.952 6.641 13 6.5 13L2.5 13C2.359 13 2.241 12.952 2.144 12.856C2.048 12.759 2 12.641 2 12.5C2 12.359 2.048 12.241 2.144 12.144Z"/></svg>
// Gentleface "file-diff" (line-round), MIT. https://gentleface.com/icons/file-diff
import type { SVGProps } from 'react';
export function FileDiffIcon(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="M8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.42 4.713 12.63 5.028 12.778 5.385C12.926 5.742 13 6.114 13 6.5L13 13C13 13.254 12.953 13.5 12.86 13.736C12.758 13.993 12.609 14.219 12.414 14.414C12.219 14.609 11.993 14.758 11.736 14.86C11.5 14.953 11.254 15 11 15L5 15C4.692 15 4.4 14.933 4.124 14.798C3.999 14.737 3.915 14.642 3.87 14.511C3.825 14.381 3.833 14.253 3.893 14.129C3.917 14.08 3.946 14.037 3.981 14L11 14C11.276 14 11.512 13.902 11.707 13.707C11.902 13.512 12 13.276 12 13L12 6.5C12 6.329 11.978 6.162 11.934 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 4.5C4 4.641 3.952 4.759 3.856 4.856C3.759 4.952 3.641 5 3.5 5C3.359 5 3.241 4.952 3.144 4.856C3.048 4.759 3 4.641 3 4.5L3 3C3 2.746 3.047 2.5 3.14 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.707ZM6.856 8.144C6.952 8.241 7 8.359 7 8.5C7 8.641 6.952 8.759 6.856 8.856C6.759 8.952 6.641 9 6.5 9L5 9L5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11C4.359 11 4.241 10.952 4.144 10.856C4.048 10.759 4 10.641 4 10.5L4 9L2.5 9C2.359 9 2.241 8.952 2.144 8.856C2.048 8.759 2 8.641 2 8.5C2 8.359 2.048 8.241 2.144 8.144C2.241 8.048 2.359 8 2.5 8L4 8L4 6.5C4 6.359 4.048 6.241 4.144 6.144C4.241 6.048 4.359 6 4.5 6C4.641 6 4.759 6.048 4.856 6.144C4.952 6.241 5 6.359 5 6.5L5 8L6.5 8C6.641 8 6.759 8.048 6.856 8.144ZM2.144 12.144C2.241 12.048 2.359 12 2.5 12L6.5 12C6.641 12 6.759 12.048 6.856 12.144C6.952 12.241 7 12.359 7 12.5C7 12.641 6.952 12.759 6.856 12.856C6.759 12.952 6.641 13 6.5 13L2.5 13C2.359 13 2.241 12.952 2.144 12.856C2.048 12.759 2 12.641 2 12.5C2 12.359 2.048 12.241 2.144 12.144Z" />
</svg>
);
}Vue: see /icons/file-diff.md
Svelte: see /icons/file-diff.md
HTML img: see /icons/file-diff.md
CSS: see /icons/file-diff.md
Data URL: see /icons/file-diff.md
Sprite: see /icons/file-diff.md
SwiftUI: see /icons/file-diff.md
Compose: see /icons/file-diff.md
Android XML: see /icons/file-diff.md
Flutter: see /icons/file-diff.md
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. 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. More in how to use.
Meaning
- Use it for
- file diff, patch file, file changes
- Alternatives
diff: a diff or patch without the file (diff)git-compare: compare two branches (compare-branches)compare: compare two items side by side (compare)
- Also fits
- diff: a diff or patch file (patch-file)
- Tags
- document, diff, patch, changes, compare, plus-minus, git, file
- Category
- Files & folders
- Component name
FileDiffIcon- History
- added
Family 42
More files & folders icons
archive archive-arrow-up archive-clock archive-lock archive-search book book-arrow-down book-bookmark book-check book-clock book-open book-plus book-search book-x folder folder-alert · all files & folders icons
For agents
Metadata: /icons/file-diff.json · Markdown: /icons/file-diff.md · SVG: https://gentleface.com/svg/{style}/16/file-diff.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/file-diff.png