# usb-drive icon

Usb drive. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/usb-drive

- Category: Devices & hardware
- Use it for: usb drive, flash drive, thumb drive, usb stick, pen drive, memory stick
- Tags: usb, usb-drive, flash-drive, thumb-drive, usb-stick, pen-drive, memory-stick, storage, removable, portable
- Component name: UsbDriveIcon
- Added: 2026-10-29
- Since: version 0.2.0
- npm: `import { UsbDriveIcon } from '@gentleface/react';` (@gentleface/react 0.2.0)
- Changed: 2026-10-30 (added)

## Alternatives

- `usb`: a USB connection (usb-connection)
- `sd-card`: a memory card (memory-card)

## Also fits

- usb: a USB stick (usb-drive)
- hard drive: a removable USB stick (usb-drive)

## Not for

- security key (use `security-key`): a USB storage drive

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

The SVG of every style: https://gentleface.com/icons/usb-drive.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="M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z"/></svg>
```

### React

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

export function UsbDriveIcon(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="M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "usb-drive" (line-round), MIT. https://gentleface.com/icons/usb-drive -->
<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="M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "usb-drive" (line-round), MIT. https://gentleface.com/icons/usb-drive -->
<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="M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "usb-drive" (line-round), MIT. https://gentleface.com/icons/usb-drive. Takes the text color. */
.icon-usb-drive {
  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='M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z'/%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='M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z'/%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='M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct UsbDriveIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 10.707, y: 5.293))
        p.addCurve(to: CGPoint(x: 11, y: 6), control1: CGPoint(x: 10.902, y: 5.488), control2: CGPoint(x: 11, y: 5.724))
        p.addLine(to: CGPoint(x: 11, y: 14))
        p.addCurve(to: CGPoint(x: 10.707, y: 14.707), control1: CGPoint(x: 11, y: 14.276), control2: CGPoint(x: 10.902, y: 14.512))
        p.addCurve(to: CGPoint(x: 10, y: 15), control1: CGPoint(x: 10.512, y: 14.902), control2: CGPoint(x: 10.276, y: 15))
        p.addLine(to: CGPoint(x: 5, y: 15))
        p.addCurve(to: CGPoint(x: 4.293, y: 14.707), control1: CGPoint(x: 4.724, y: 15), control2: CGPoint(x: 4.488, y: 14.902))
        p.addCurve(to: CGPoint(x: 4, y: 14), control1: CGPoint(x: 4.098, y: 14.512), control2: CGPoint(x: 4, y: 14.276))
        p.addLine(to: CGPoint(x: 4, y: 6))
        p.addCurve(to: CGPoint(x: 4.293, y: 5.293), control1: CGPoint(x: 4, y: 5.724), control2: CGPoint(x: 4.098, y: 5.488))
        p.addCurve(to: CGPoint(x: 5, y: 5), control1: CGPoint(x: 4.488, y: 5.098), control2: CGPoint(x: 4.724, y: 5))
        p.addLine(to: CGPoint(x: 5, y: 1.5))
        p.addCurve(to: CGPoint(x: 5.144, y: 1.144), control1: CGPoint(x: 5, y: 1.359), control2: CGPoint(x: 5.048, y: 1.241))
        p.addCurve(to: CGPoint(x: 5.5, y: 1), control1: CGPoint(x: 5.241, y: 1.048), control2: CGPoint(x: 5.359, y: 1))
        p.addLine(to: CGPoint(x: 9.5, y: 1))
        p.addCurve(to: CGPoint(x: 9.856, y: 1.144), control1: CGPoint(x: 9.641, y: 1), control2: CGPoint(x: 9.759, y: 1.048))
        p.addCurve(to: CGPoint(x: 10, y: 1.5), control1: CGPoint(x: 9.952, y: 1.241), control2: CGPoint(x: 10, y: 1.359))
        p.addLine(to: CGPoint(x: 10, y: 5))
        p.addCurve(to: CGPoint(x: 10.707, y: 5.293), control1: CGPoint(x: 10.276, y: 5), control2: CGPoint(x: 10.512, y: 5.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 6, y: 2))
        p.addLine(to: CGPoint(x: 6, y: 5))
        p.addLine(to: CGPoint(x: 7, y: 5))
        p.addLine(to: CGPoint(x: 7, y: 2))
        p.addLine(to: CGPoint(x: 6, y: 2))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8, y: 2))
        p.addLine(to: CGPoint(x: 8, y: 5))
        p.addLine(to: CGPoint(x: 9, y: 5))
        p.addLine(to: CGPoint(x: 9, y: 2))
        p.addLine(to: CGPoint(x: 8, y: 2))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10, y: 14))
        p.addLine(to: CGPoint(x: 10, y: 6))
        p.addLine(to: CGPoint(x: 5, y: 6))
        p.addLine(to: CGPoint(x: 5, y: 14))
        p.addLine(to: CGPoint(x: 10, y: 14))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "usb-drive" (line-round), MIT. https://gentleface.com/icons/usb-drive
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 UsbDriveIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "usb-drive", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_usb_drive.xml · Gentleface "usb-drive" (line-round), MIT. https://gentleface.com/icons/usb-drive -->
<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="M10.707 5.293C10.902 5.488 11 5.724 11 6L11 14C11 14.276 10.902 14.512 10.707 14.707C10.512 14.902 10.276 15 10 15L5 15C4.724 15 4.488 14.902 4.293 14.707C4.098 14.512 4 14.276 4 14L4 6C4 5.724 4.098 5.488 4.293 5.293C4.488 5.098 4.724 5 5 5L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L9.5 1C9.641 1 9.759 1.048 9.856 1.144C9.952 1.241 10 1.359 10 1.5L10 5C10.276 5 10.512 5.098 10.707 5.293ZM6 2L6 5L7 5L7 2L6 2ZM8 2L8 5L9 5L9 2L8 2ZM10 14L10 6L5 6L5 14L10 14Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(10.707, 5.293)
      ..cubicTo(10.902, 5.488, 11, 5.724, 11, 6)
      ..lineTo(11, 14)
      ..cubicTo(11, 14.276, 10.902, 14.512, 10.707, 14.707)
      ..cubicTo(10.512, 14.902, 10.276, 15, 10, 15)
      ..lineTo(5, 15)
      ..cubicTo(4.724, 15, 4.488, 14.902, 4.293, 14.707)
      ..cubicTo(4.098, 14.512, 4, 14.276, 4, 14)
      ..lineTo(4, 6)
      ..cubicTo(4, 5.724, 4.098, 5.488, 4.293, 5.293)
      ..cubicTo(4.488, 5.098, 4.724, 5, 5, 5)
      ..lineTo(5, 1.5)
      ..cubicTo(5, 1.359, 5.048, 1.241, 5.144, 1.144)
      ..cubicTo(5.241, 1.048, 5.359, 1, 5.5, 1)
      ..lineTo(9.5, 1)
      ..cubicTo(9.641, 1, 9.759, 1.048, 9.856, 1.144)
      ..cubicTo(9.952, 1.241, 10, 1.359, 10, 1.5)
      ..lineTo(10, 5)
      ..cubicTo(10.276, 5, 10.512, 5.098, 10.707, 5.293)
      ..close()
      ..moveTo(6, 2)
      ..lineTo(6, 5)
      ..lineTo(7, 5)
      ..lineTo(7, 2)
      ..lineTo(6, 2)
      ..close()
      ..moveTo(8, 2)
      ..lineTo(8, 5)
      ..lineTo(9, 5)
      ..lineTo(9, 2)
      ..lineTo(8, 2)
      ..close()
      ..moveTo(10, 14)
      ..lineTo(10, 6)
      ..lineTo(5, 6)
      ..lineTo(5, 14)
      ..lineTo(10, 14)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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