# control icon

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

- Category: Devices & hardware
- Use it for: control key, ctrl key, ctrl
- Tags: control, ctrl, key, keyboard, mac, modifier, shortcut, caret
- Component name: ControlIcon
- Added: 2026-11-12

## Alternatives

- `command`: the Mac command key (command-key)

## Don't confuse with

- `chevron-up`: collapse or close a menu (collapse); the control legend sits high

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

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

The SVG of every style: https://gentleface.com/icons/control.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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z"/></svg>
```

### React

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

export function ControlIcon(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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "control" (line-round), MIT. https://gentleface.com/icons/control -->
<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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "control" (line-round), MIT. https://gentleface.com/icons/control -->
<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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "control" (line-round), MIT. https://gentleface.com/icons/control. Takes the text color. */
.icon-control {
  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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z'/%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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z'/%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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct ControlIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 7.146, y: 2.146))
        p.addCurve(to: CGPoint(x: 7.5, y: 2), control1: CGPoint(x: 7.244, y: 2.049), control2: CGPoint(x: 7.362, y: 2))
        p.addCurve(to: CGPoint(x: 7.854, y: 2.146), control1: CGPoint(x: 7.638, y: 2), control2: CGPoint(x: 7.756, y: 2.049))
        p.addLine(to: CGPoint(x: 13.854, y: 8.146))
        p.addCurve(to: CGPoint(x: 14.003, y: 8.5), control1: CGPoint(x: 13.953, y: 8.246), control2: CGPoint(x: 14.003, y: 8.364))
        p.addCurve(to: CGPoint(x: 13.854, y: 8.854), control1: CGPoint(x: 14.003, y: 8.636), control2: CGPoint(x: 13.953, y: 8.754))
        p.addCurve(to: CGPoint(x: 13.5, y: 9.003), control1: CGPoint(x: 13.754, y: 8.953), control2: CGPoint(x: 13.636, y: 9.003))
        p.addCurve(to: CGPoint(x: 13.146, y: 8.854), control1: CGPoint(x: 13.364, y: 9.003), control2: CGPoint(x: 13.246, y: 8.953))
        p.addLine(to: CGPoint(x: 7.5, y: 3.207))
        p.addLine(to: CGPoint(x: 1.854, y: 8.854))
        p.addCurve(to: CGPoint(x: 1.5, y: 9), control1: CGPoint(x: 1.756, y: 8.951), control2: CGPoint(x: 1.638, y: 9))
        p.addCurve(to: CGPoint(x: 1.146, y: 8.854), control1: CGPoint(x: 1.362, y: 9), control2: CGPoint(x: 1.244, y: 8.951))
        p.addCurve(to: CGPoint(x: 0.997, y: 8.5), control1: CGPoint(x: 1.047, y: 8.754), control2: CGPoint(x: 0.997, y: 8.636))
        p.addCurve(to: CGPoint(x: 1.146, y: 8.146), control1: CGPoint(x: 0.997, y: 8.364), control2: CGPoint(x: 1.047, y: 8.246))
        p.addLine(to: CGPoint(x: 7.146, y: 2.146))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "control" (line-round), MIT. https://gentleface.com/icons/control
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 ControlIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "control", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M7.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_control.xml · Gentleface "control" (line-round), MIT. https://gentleface.com/icons/control -->
<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.146 2.146C7.244 2.049 7.362 2 7.5 2C7.638 2 7.756 2.049 7.854 2.146L13.854 8.146C13.953 8.246 14.003 8.364 14.003 8.5C14.003 8.636 13.953 8.754 13.854 8.854C13.754 8.953 13.636 9.003 13.5 9.003C13.364 9.003 13.246 8.953 13.146 8.854L7.5 3.207L1.854 8.854C1.756 8.951 1.638 9 1.5 9C1.362 9 1.244 8.951 1.146 8.854C1.047 8.754 0.997 8.636 0.997 8.5C0.997 8.364 1.047 8.246 1.146 8.146L7.146 2.146Z"/>
</vector>
```

### Flutter

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

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

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

class _ControlIconPainter extends CustomPainter {
  _ControlIconPainter(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.146, 2.146)
      ..cubicTo(7.244, 2.049, 7.362, 2, 7.5, 2)
      ..cubicTo(7.638, 2, 7.756, 2.049, 7.854, 2.146)
      ..lineTo(13.854, 8.146)
      ..cubicTo(13.953, 8.246, 14.003, 8.364, 14.003, 8.5)
      ..cubicTo(14.003, 8.636, 13.953, 8.754, 13.854, 8.854)
      ..cubicTo(13.754, 8.953, 13.636, 9.003, 13.5, 9.003)
      ..cubicTo(13.364, 9.003, 13.246, 8.953, 13.146, 8.854)
      ..lineTo(7.5, 3.207)
      ..lineTo(1.854, 8.854)
      ..cubicTo(1.756, 8.951, 1.638, 9, 1.5, 9)
      ..cubicTo(1.362, 9, 1.244, 8.951, 1.146, 8.854)
      ..cubicTo(1.047, 8.754, 0.997, 8.636, 0.997, 8.5)
      ..cubicTo(0.997, 8.364, 1.047, 8.246, 1.146, 8.146)
      ..lineTo(7.146, 2.146)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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