# space icon

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

- Category: Text & formatting
- Use it for: space, whitespace, spacebar, space bar
- Tags: space, whitespace, spacebar, blank, gap, character, text
- Component name: SpaceIcon
- Added: 2026-10-15

## Not for

- planet (use `planet`): space is whitespace or the space bar

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

The SVG of every style: https://gentleface.com/icons/space.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="M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z"/></svg>
```

### React

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

export function SpaceIcon(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="M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "space" (line-round), MIT. https://gentleface.com/icons/space -->
<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="M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "space" (line-round), MIT. https://gentleface.com/icons/space -->
<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="M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "space" (line-round), MIT. https://gentleface.com/icons/space. Takes the text color. */
.icon-space {
  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='M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 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='M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 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='M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct SpaceIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 13, y: 9))
        p.addLine(to: CGPoint(x: 13, y: 6.5))
        p.addCurve(to: CGPoint(x: 13.144, y: 6.144), control1: CGPoint(x: 13, y: 6.359), control2: CGPoint(x: 13.048, y: 6.241))
        p.addCurve(to: CGPoint(x: 13.5, y: 6), control1: CGPoint(x: 13.241, y: 6.048), control2: CGPoint(x: 13.359, y: 6))
        p.addCurve(to: CGPoint(x: 13.856, y: 6.144), control1: CGPoint(x: 13.641, y: 6), control2: CGPoint(x: 13.759, y: 6.048))
        p.addCurve(to: CGPoint(x: 14, y: 6.5), control1: CGPoint(x: 13.952, y: 6.241), control2: CGPoint(x: 14, y: 6.359))
        p.addLine(to: CGPoint(x: 14, y: 9.5))
        p.addCurve(to: CGPoint(x: 13.856, y: 9.856), control1: CGPoint(x: 14, y: 9.641), control2: CGPoint(x: 13.952, y: 9.759))
        p.addCurve(to: CGPoint(x: 13.5, y: 10), control1: CGPoint(x: 13.759, y: 9.952), control2: CGPoint(x: 13.641, y: 10))
        p.addLine(to: CGPoint(x: 2.5, y: 10))
        p.addCurve(to: CGPoint(x: 2.144, y: 9.856), control1: CGPoint(x: 2.359, y: 10), control2: CGPoint(x: 2.241, y: 9.952))
        p.addCurve(to: CGPoint(x: 2, y: 9.5), control1: CGPoint(x: 2.048, y: 9.759), control2: CGPoint(x: 2, y: 9.641))
        p.addLine(to: CGPoint(x: 2, y: 6.5))
        p.addCurve(to: CGPoint(x: 2.144, y: 6.144), control1: CGPoint(x: 2, y: 6.359), control2: CGPoint(x: 2.048, y: 6.241))
        p.addCurve(to: CGPoint(x: 2.5, y: 6), control1: CGPoint(x: 2.241, y: 6.048), control2: CGPoint(x: 2.359, y: 6))
        p.addCurve(to: CGPoint(x: 2.856, y: 6.144), control1: CGPoint(x: 2.641, y: 6), control2: CGPoint(x: 2.759, y: 6.048))
        p.addCurve(to: CGPoint(x: 3, y: 6.5), control1: CGPoint(x: 2.952, y: 6.241), control2: CGPoint(x: 3, y: 6.359))
        p.addLine(to: CGPoint(x: 3, y: 9))
        p.addLine(to: CGPoint(x: 13, y: 9))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "space" (line-round), MIT. https://gentleface.com/icons/space
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 SpaceIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "space", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_space.xml · Gentleface "space" (line-round), MIT. https://gentleface.com/icons/space -->
<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="M13 9L13 6.5C13 6.359 13.048 6.241 13.144 6.144C13.241 6.048 13.359 6 13.5 6C13.641 6 13.759 6.048 13.856 6.144C13.952 6.241 14 6.359 14 6.5L14 9.5C14 9.641 13.952 9.759 13.856 9.856C13.759 9.952 13.641 10 13.5 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.5C2 6.359 2.048 6.241 2.144 6.144C2.241 6.048 2.359 6 2.5 6C2.641 6 2.759 6.048 2.856 6.144C2.952 6.241 3 6.359 3 6.5L3 9L13 9Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(13, 9)
      ..lineTo(13, 6.5)
      ..cubicTo(13, 6.359, 13.048, 6.241, 13.144, 6.144)
      ..cubicTo(13.241, 6.048, 13.359, 6, 13.5, 6)
      ..cubicTo(13.641, 6, 13.759, 6.048, 13.856, 6.144)
      ..cubicTo(13.952, 6.241, 14, 6.359, 14, 6.5)
      ..lineTo(14, 9.5)
      ..cubicTo(14, 9.641, 13.952, 9.759, 13.856, 9.856)
      ..cubicTo(13.759, 9.952, 13.641, 10, 13.5, 10)
      ..lineTo(2.5, 10)
      ..cubicTo(2.359, 10, 2.241, 9.952, 2.144, 9.856)
      ..cubicTo(2.048, 9.759, 2, 9.641, 2, 9.5)
      ..lineTo(2, 6.5)
      ..cubicTo(2, 6.359, 2.048, 6.241, 2.144, 6.144)
      ..cubicTo(2.241, 6.048, 2.359, 6, 2.5, 6)
      ..cubicTo(2.641, 6, 2.759, 6.048, 2.856, 6.144)
      ..cubicTo(2.952, 6.241, 3, 6.359, 3, 6.5)
      ..lineTo(3, 9)
      ..lineTo(13, 9)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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