# checkbox icon

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

- Category: Layout & interface
- Use it for: checkbox, checked, multi select, check box, tickbox
- Tags: checkbox, checked, check, tick, selected, option, form, multi-select, todo
- Family: checkbox-indeterminate, checkbox-off
- Component name: CheckboxIcon
- Added: 2026-10-15

## Alternatives

- `checkbox-off`: the empty, unchecked box
- `checkbox-indeterminate`: a partly selected group (mixed state)
- `radio-button`: pick exactly one option (single-select)
- `checklist`: a list of items with check marks (checklist)

## Don't confuse with

- `check`: check means done or approved, never selected

## Also fits

- selected: a checkbox the user toggles in a list or form
- select all: the select-all checkbox in a table header
- radio button: pick several options (multi-select)
- toggle: a check box in a form (checkbox)
- square: a ticked box in a form (checkbox)
- checklist: a single check box in a form (checkbox)

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

The SVG of every style: https://gentleface.com/icons/checkbox.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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z"/></svg>
```

### React

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

export function CheckboxIcon(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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "checkbox" (line-round), MIT. https://gentleface.com/icons/checkbox -->
<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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "checkbox" (line-round), MIT. https://gentleface.com/icons/checkbox -->
<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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "checkbox" (line-round), MIT. https://gentleface.com/icons/checkbox. Takes the text color. */
.icon-checkbox {
  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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z'/%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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z'/%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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct CheckboxIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12, y: 2))
        p.addCurve(to: CGPoint(x: 12.736, y: 2.14), control1: CGPoint(x: 12.254, y: 2), control2: CGPoint(x: 12.5, y: 2.047))
        p.addCurve(to: CGPoint(x: 13.414, y: 2.586), control1: CGPoint(x: 12.993, y: 2.242), control2: CGPoint(x: 13.219, y: 2.391))
        p.addCurve(to: CGPoint(x: 13.86, y: 3.264), control1: CGPoint(x: 13.609, y: 2.781), control2: CGPoint(x: 13.758, y: 3.007))
        p.addCurve(to: CGPoint(x: 14, y: 4), control1: CGPoint(x: 13.953, y: 3.5), control2: CGPoint(x: 14, y: 3.746))
        p.addLine(to: CGPoint(x: 14, y: 12))
        p.addCurve(to: CGPoint(x: 13.86, y: 12.736), control1: CGPoint(x: 14, y: 12.254), control2: CGPoint(x: 13.953, y: 12.5))
        p.addCurve(to: CGPoint(x: 13.414, y: 13.414), control1: CGPoint(x: 13.758, y: 12.993), control2: CGPoint(x: 13.609, y: 13.219))
        p.addCurve(to: CGPoint(x: 12.736, y: 13.86), control1: CGPoint(x: 13.219, y: 13.609), control2: CGPoint(x: 12.993, y: 13.758))
        p.addCurve(to: CGPoint(x: 12, y: 14), control1: CGPoint(x: 12.5, y: 13.953), control2: CGPoint(x: 12.254, y: 14))
        p.addLine(to: CGPoint(x: 4, y: 14))
        p.addCurve(to: CGPoint(x: 3.264, y: 13.86), control1: CGPoint(x: 3.746, y: 14), control2: CGPoint(x: 3.5, y: 13.953))
        p.addCurve(to: CGPoint(x: 2.586, y: 13.414), control1: CGPoint(x: 3.007, y: 13.758), control2: CGPoint(x: 2.781, y: 13.609))
        p.addCurve(to: CGPoint(x: 2.14, y: 12.736), control1: CGPoint(x: 2.391, y: 13.219), control2: CGPoint(x: 2.242, y: 12.993))
        p.addCurve(to: CGPoint(x: 2, y: 12), control1: CGPoint(x: 2.047, y: 12.5), control2: CGPoint(x: 2, y: 12.254))
        p.addLine(to: CGPoint(x: 2, y: 4))
        p.addCurve(to: CGPoint(x: 2.14, y: 3.264), control1: CGPoint(x: 2, y: 3.746), control2: CGPoint(x: 2.047, y: 3.5))
        p.addCurve(to: CGPoint(x: 2.586, y: 2.586), control1: CGPoint(x: 2.242, y: 3.007), control2: CGPoint(x: 2.391, y: 2.781))
        p.addCurve(to: CGPoint(x: 3.264, y: 2.14), control1: CGPoint(x: 2.781, y: 2.391), control2: CGPoint(x: 3.007, y: 2.242))
        p.addCurve(to: CGPoint(x: 4, y: 2), control1: CGPoint(x: 3.5, y: 2.047), control2: CGPoint(x: 3.746, y: 2))
        p.addLine(to: CGPoint(x: 12, y: 2))
        p.closeSubpath()
        p.move(to: CGPoint(x: 6.5, y: 9.793))
        p.addLine(to: CGPoint(x: 4.854, y: 8.146))
        p.addCurve(to: CGPoint(x: 4.146, y: 8.146), control1: CGPoint(x: 4.658, y: 7.951), control2: CGPoint(x: 4.342, y: 7.951))
        p.addCurve(to: CGPoint(x: 4.146, y: 8.854), control1: CGPoint(x: 3.951, y: 8.342), control2: CGPoint(x: 3.951, y: 8.658))
        p.addLine(to: CGPoint(x: 5.793, y: 10.5))
        p.addCurve(to: CGPoint(x: 6.5, y: 10.793), control1: CGPoint(x: 5.988, y: 10.695), control2: CGPoint(x: 6.224, y: 10.793))
        p.addCurve(to: CGPoint(x: 7.207, y: 10.5), control1: CGPoint(x: 6.776, y: 10.793), control2: CGPoint(x: 7.012, y: 10.695))
        p.addLine(to: CGPoint(x: 11.854, y: 5.854))
        p.addCurve(to: CGPoint(x: 12, y: 5.5), control1: CGPoint(x: 11.947, y: 5.76), control2: CGPoint(x: 12, y: 5.633))
        p.addCurve(to: CGPoint(x: 11.854, y: 5.146), control1: CGPoint(x: 12, y: 5.367), control2: CGPoint(x: 11.947, y: 5.24))
        p.addCurve(to: CGPoint(x: 11.146, y: 5.146), control1: CGPoint(x: 11.658, y: 4.951), control2: CGPoint(x: 11.342, y: 4.951))
        p.addLine(to: CGPoint(x: 6.5, y: 9.793))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "checkbox" (line-round), MIT. https://gentleface.com/icons/checkbox
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 CheckboxIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "checkbox", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_checkbox.xml · Gentleface "checkbox" (line-round), MIT. https://gentleface.com/icons/checkbox -->
<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 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2ZM6.5 9.793L4.854 8.146C4.658 7.951 4.342 7.951 4.146 8.146C3.951 8.342 3.951 8.658 4.146 8.854L5.793 10.5C5.988 10.695 6.224 10.793 6.5 10.793C6.776 10.793 7.012 10.695 7.207 10.5L11.854 5.854C11.947 5.76 12 5.633 12 5.5C12 5.367 11.947 5.24 11.854 5.146C11.658 4.951 11.342 4.951 11.146 5.146L6.5 9.793Z"/>
</vector>
```

### Flutter

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

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

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

class _CheckboxIconPainter extends CustomPainter {
  _CheckboxIconPainter(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, 2)
      ..cubicTo(12.254, 2, 12.5, 2.047, 12.736, 2.14)
      ..cubicTo(12.993, 2.242, 13.219, 2.391, 13.414, 2.586)
      ..cubicTo(13.609, 2.781, 13.758, 3.007, 13.86, 3.264)
      ..cubicTo(13.953, 3.5, 14, 3.746, 14, 4)
      ..lineTo(14, 12)
      ..cubicTo(14, 12.254, 13.953, 12.5, 13.86, 12.736)
      ..cubicTo(13.758, 12.993, 13.609, 13.219, 13.414, 13.414)
      ..cubicTo(13.219, 13.609, 12.993, 13.758, 12.736, 13.86)
      ..cubicTo(12.5, 13.953, 12.254, 14, 12, 14)
      ..lineTo(4, 14)
      ..cubicTo(3.746, 14, 3.5, 13.953, 3.264, 13.86)
      ..cubicTo(3.007, 13.758, 2.781, 13.609, 2.586, 13.414)
      ..cubicTo(2.391, 13.219, 2.242, 12.993, 2.14, 12.736)
      ..cubicTo(2.047, 12.5, 2, 12.254, 2, 12)
      ..lineTo(2, 4)
      ..cubicTo(2, 3.746, 2.047, 3.5, 2.14, 3.264)
      ..cubicTo(2.242, 3.007, 2.391, 2.781, 2.586, 2.586)
      ..cubicTo(2.781, 2.391, 3.007, 2.242, 3.264, 2.14)
      ..cubicTo(3.5, 2.047, 3.746, 2, 4, 2)
      ..lineTo(12, 2)
      ..close()
      ..moveTo(6.5, 9.793)
      ..lineTo(4.854, 8.146)
      ..cubicTo(4.658, 7.951, 4.342, 7.951, 4.146, 8.146)
      ..cubicTo(3.951, 8.342, 3.951, 8.658, 4.146, 8.854)
      ..lineTo(5.793, 10.5)
      ..cubicTo(5.988, 10.695, 6.224, 10.793, 6.5, 10.793)
      ..cubicTo(6.776, 10.793, 7.012, 10.695, 7.207, 10.5)
      ..lineTo(11.854, 5.854)
      ..cubicTo(11.947, 5.76, 12, 5.633, 12, 5.5)
      ..cubicTo(12, 5.367, 11.947, 5.24, 11.854, 5.146)
      ..cubicTo(11.658, 4.951, 11.342, 4.951, 11.146, 5.146)
      ..lineTo(6.5, 9.793)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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