# octahedron icon

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

- Category: Shapes
- Use it for: octahedron, polyhedron
- Tags: octahedron, polyhedron, 3d, shape, solid, geometry, crystal, d8
- Family: octahedron-turned
- Component name: OctahedronIcon
- Added: 2026-11-12

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

The SVG of every style: https://gentleface.com/icons/octahedron.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="M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z"/></svg>
```

### React

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

export function OctahedronIcon(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.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "octahedron" (line-round), MIT. https://gentleface.com/icons/octahedron -->
<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="M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "octahedron" (line-round), MIT. https://gentleface.com/icons/octahedron -->
<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="M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "octahedron" (line-round), MIT. https://gentleface.com/icons/octahedron. Takes the text color. */
.icon-octahedron {
  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='M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z'/%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='M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z'/%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='M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct OctahedronIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 8.207, y: 13.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 13.793), control1: CGPoint(x: 8.012, y: 13.695), control2: CGPoint(x: 7.776, y: 13.793))
        p.addCurve(to: CGPoint(x: 6.793, y: 13.5), control1: CGPoint(x: 7.224, y: 13.793), control2: CGPoint(x: 6.988, y: 13.695))
        p.addLine(to: CGPoint(x: 1.5, y: 8.207))
        p.addCurve(to: CGPoint(x: 1.207, y: 7.5), control1: CGPoint(x: 1.305, y: 8.012), control2: CGPoint(x: 1.207, y: 7.776))
        p.addCurve(to: CGPoint(x: 1.5, y: 6.793), control1: CGPoint(x: 1.207, y: 7.224), control2: CGPoint(x: 1.305, y: 6.988))
        p.addLine(to: CGPoint(x: 6.793, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 1.207), control1: CGPoint(x: 6.988, y: 1.305), control2: CGPoint(x: 7.224, y: 1.207))
        p.addCurve(to: CGPoint(x: 8.207, y: 1.5), control1: CGPoint(x: 7.776, y: 1.207), control2: CGPoint(x: 8.012, y: 1.305))
        p.addLine(to: CGPoint(x: 13.5, y: 6.793))
        p.addCurve(to: CGPoint(x: 13.793, y: 7.5), control1: CGPoint(x: 13.695, y: 6.988), control2: CGPoint(x: 13.793, y: 7.224))
        p.addCurve(to: CGPoint(x: 13.5, y: 8.207), control1: CGPoint(x: 13.793, y: 7.776), control2: CGPoint(x: 13.695, y: 8.012))
        p.addLine(to: CGPoint(x: 8.207, y: 13.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.541, y: 7.167))
        p.addLine(to: CGPoint(x: 6.596, y: 7.842))
        p.addCurve(to: CGPoint(x: 7, y: 7.895), control1: CGPoint(x: 6.731, y: 7.865), control2: CGPoint(x: 6.865, y: 7.882))
        p.addLine(to: CGPoint(x: 7, y: 2.707))
        p.addLine(to: CGPoint(x: 2.541, y: 7.167))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.404, y: 7.842))
        p.addLine(to: CGPoint(x: 12.459, y: 7.167))
        p.addLine(to: CGPoint(x: 8, y: 2.707))
        p.addLine(to: CGPoint(x: 8, y: 7.895))
        p.addCurve(to: CGPoint(x: 8.404, y: 7.842), control1: CGPoint(x: 8.135, y: 7.882), control2: CGPoint(x: 8.269, y: 7.865))
        p.closeSubpath()
        p.move(to: CGPoint(x: 6.431, y: 8.829))
        p.addLine(to: CGPoint(x: 2.957, y: 8.25))
        p.addLine(to: CGPoint(x: 7, y: 12.293))
        p.addLine(to: CGPoint(x: 7, y: 8.898))
        p.addCurve(to: CGPoint(x: 6.431, y: 8.829), control1: CGPoint(x: 6.81, y: 8.884), control2: CGPoint(x: 6.621, y: 8.86))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.569, y: 8.829))
        p.addCurve(to: CGPoint(x: 8, y: 8.898), control1: CGPoint(x: 8.379, y: 8.86), control2: CGPoint(x: 8.19, y: 8.884))
        p.addLine(to: CGPoint(x: 8, y: 12.293))
        p.addLine(to: CGPoint(x: 12.043, y: 8.25))
        p.addLine(to: CGPoint(x: 8.569, y: 8.829))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "octahedron" (line-round), MIT. https://gentleface.com/icons/octahedron
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 OctahedronIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "octahedron", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_octahedron.xml · Gentleface "octahedron" (line-round), MIT. https://gentleface.com/icons/octahedron -->
<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="M8.207 13.5C8.012 13.695 7.776 13.793 7.5 13.793C7.224 13.793 6.988 13.695 6.793 13.5L1.5 8.207C1.305 8.012 1.207 7.776 1.207 7.5C1.207 7.224 1.305 6.988 1.5 6.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L13.5 6.793C13.695 6.988 13.793 7.224 13.793 7.5C13.793 7.776 13.695 8.012 13.5 8.207L8.207 13.5ZM2.541 7.167L6.596 7.842C6.731 7.865 6.865 7.882 7 7.895L7 2.707L2.541 7.167ZM8.404 7.842L12.459 7.167L8 2.707L8 7.895C8.135 7.882 8.269 7.865 8.404 7.842ZM6.431 8.829L2.957 8.25L7 12.293L7 8.898C6.81 8.884 6.621 8.86 6.431 8.829ZM8.569 8.829C8.379 8.86 8.19 8.884 8 8.898L8 12.293L12.043 8.25L8.569 8.829Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(8.207, 13.5)
      ..cubicTo(8.012, 13.695, 7.776, 13.793, 7.5, 13.793)
      ..cubicTo(7.224, 13.793, 6.988, 13.695, 6.793, 13.5)
      ..lineTo(1.5, 8.207)
      ..cubicTo(1.305, 8.012, 1.207, 7.776, 1.207, 7.5)
      ..cubicTo(1.207, 7.224, 1.305, 6.988, 1.5, 6.793)
      ..lineTo(6.793, 1.5)
      ..cubicTo(6.988, 1.305, 7.224, 1.207, 7.5, 1.207)
      ..cubicTo(7.776, 1.207, 8.012, 1.305, 8.207, 1.5)
      ..lineTo(13.5, 6.793)
      ..cubicTo(13.695, 6.988, 13.793, 7.224, 13.793, 7.5)
      ..cubicTo(13.793, 7.776, 13.695, 8.012, 13.5, 8.207)
      ..lineTo(8.207, 13.5)
      ..close()
      ..moveTo(2.541, 7.167)
      ..lineTo(6.596, 7.842)
      ..cubicTo(6.731, 7.865, 6.865, 7.882, 7, 7.895)
      ..lineTo(7, 2.707)
      ..lineTo(2.541, 7.167)
      ..close()
      ..moveTo(8.404, 7.842)
      ..lineTo(12.459, 7.167)
      ..lineTo(8, 2.707)
      ..lineTo(8, 7.895)
      ..cubicTo(8.135, 7.882, 8.269, 7.865, 8.404, 7.842)
      ..close()
      ..moveTo(6.431, 8.829)
      ..lineTo(2.957, 8.25)
      ..lineTo(7, 12.293)
      ..lineTo(7, 8.898)
      ..cubicTo(6.81, 8.884, 6.621, 8.86, 6.431, 8.829)
      ..close()
      ..moveTo(8.569, 8.829)
      ..cubicTo(8.379, 8.86, 8.19, 8.884, 8, 8.898)
      ..lineTo(8, 12.293)
      ..lineTo(12.043, 8.25)
      ..lineTo(8.569, 8.829)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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