# hierarchy-square icon

Hierarchy square. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/hierarchy-square

- Category: Business & office
- Built from: variant of hierarchy
- Tags: hierarchy, org-chart, organization, structure, tree, parent, child, reporting-line, square nodes
- Family: hierarchy
- Component name: HierarchySquareIcon
- Added: 2026-10-15

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

The SVG of every style: https://gentleface.com/icons/hierarchy-square.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="M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z"/></svg>
```

### React

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

export function HierarchySquareIcon(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="M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "hierarchy-square" (line-round), MIT. https://gentleface.com/icons/hierarchy-square -->
<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="M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "hierarchy-square" (line-round), MIT. https://gentleface.com/icons/hierarchy-square -->
<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="M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "hierarchy-square" (line-round), MIT. https://gentleface.com/icons/hierarchy-square. Takes the text color. */
.icon-hierarchy-square {
  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='M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 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='M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 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='M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct HierarchySquareIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 9.707, y: 5.707))
        p.addCurve(to: CGPoint(x: 9, y: 6), control1: CGPoint(x: 9.512, y: 5.902), control2: CGPoint(x: 9.276, y: 6))
        p.addLine(to: CGPoint(x: 8, y: 6))
        p.addLine(to: CGPoint(x: 8, y: 8))
        p.addLine(to: CGPoint(x: 11.5, y: 8))
        p.addCurve(to: CGPoint(x: 11.856, y: 8.144), control1: CGPoint(x: 11.641, y: 8), control2: CGPoint(x: 11.759, y: 8.048))
        p.addCurve(to: CGPoint(x: 12, y: 8.5), control1: CGPoint(x: 11.952, y: 8.241), control2: CGPoint(x: 12, y: 8.359))
        p.addLine(to: CGPoint(x: 12, y: 10))
        p.addLine(to: CGPoint(x: 13, y: 10))
        p.addCurve(to: CGPoint(x: 13.707, y: 10.293), control1: CGPoint(x: 13.276, y: 10), control2: CGPoint(x: 13.512, y: 10.098))
        p.addCurve(to: CGPoint(x: 14, y: 11), control1: CGPoint(x: 13.902, y: 10.488), control2: CGPoint(x: 14, y: 10.724))
        p.addLine(to: CGPoint(x: 14, y: 14))
        p.addCurve(to: CGPoint(x: 13.707, y: 14.707), control1: CGPoint(x: 14, y: 14.276), control2: CGPoint(x: 13.902, y: 14.512))
        p.addCurve(to: CGPoint(x: 13, y: 15), control1: CGPoint(x: 13.512, y: 14.902), control2: CGPoint(x: 13.276, y: 15))
        p.addLine(to: CGPoint(x: 10, y: 15))
        p.addCurve(to: CGPoint(x: 9.293, y: 14.707), control1: CGPoint(x: 9.724, y: 15), control2: CGPoint(x: 9.488, y: 14.902))
        p.addCurve(to: CGPoint(x: 9, y: 14), control1: CGPoint(x: 9.098, y: 14.512), control2: CGPoint(x: 9, y: 14.276))
        p.addLine(to: CGPoint(x: 9, y: 11))
        p.addCurve(to: CGPoint(x: 9.293, y: 10.293), control1: CGPoint(x: 9, y: 10.724), control2: CGPoint(x: 9.098, y: 10.488))
        p.addCurve(to: CGPoint(x: 10, y: 10), control1: CGPoint(x: 9.488, y: 10.098), control2: CGPoint(x: 9.724, y: 10))
        p.addLine(to: CGPoint(x: 11, y: 10))
        p.addLine(to: CGPoint(x: 11, y: 9))
        p.addLine(to: CGPoint(x: 4, y: 9))
        p.addLine(to: CGPoint(x: 4, y: 10))
        p.addLine(to: CGPoint(x: 5, y: 10))
        p.addCurve(to: CGPoint(x: 5.707, y: 10.293), control1: CGPoint(x: 5.276, y: 10), control2: CGPoint(x: 5.512, y: 10.098))
        p.addCurve(to: CGPoint(x: 6, y: 11), control1: CGPoint(x: 5.902, y: 10.488), control2: CGPoint(x: 6, y: 10.724))
        p.addLine(to: CGPoint(x: 6, y: 14))
        p.addCurve(to: CGPoint(x: 5.707, y: 14.707), control1: CGPoint(x: 6, y: 14.276), control2: CGPoint(x: 5.902, y: 14.512))
        p.addCurve(to: CGPoint(x: 5, y: 15), control1: CGPoint(x: 5.512, y: 14.902), control2: CGPoint(x: 5.276, y: 15))
        p.addLine(to: CGPoint(x: 2, y: 15))
        p.addCurve(to: CGPoint(x: 1.293, y: 14.707), control1: CGPoint(x: 1.724, y: 15), control2: CGPoint(x: 1.488, y: 14.902))
        p.addCurve(to: CGPoint(x: 1, y: 14), control1: CGPoint(x: 1.098, y: 14.512), control2: CGPoint(x: 1, y: 14.276))
        p.addLine(to: CGPoint(x: 1, y: 11))
        p.addCurve(to: CGPoint(x: 1.293, y: 10.293), control1: CGPoint(x: 1, y: 10.724), control2: CGPoint(x: 1.098, y: 10.488))
        p.addCurve(to: CGPoint(x: 2, y: 10), control1: CGPoint(x: 1.488, y: 10.098), control2: CGPoint(x: 1.724, y: 10))
        p.addLine(to: CGPoint(x: 3, y: 10))
        p.addLine(to: CGPoint(x: 3, y: 8.5))
        p.addCurve(to: CGPoint(x: 3.144, y: 8.144), control1: CGPoint(x: 3, y: 8.359), control2: CGPoint(x: 3.048, y: 8.241))
        p.addCurve(to: CGPoint(x: 3.5, y: 8), control1: CGPoint(x: 3.241, y: 8.048), control2: CGPoint(x: 3.359, y: 8))
        p.addLine(to: CGPoint(x: 7, y: 8))
        p.addLine(to: CGPoint(x: 7, y: 6))
        p.addLine(to: CGPoint(x: 6, y: 6))
        p.addCurve(to: CGPoint(x: 5.293, y: 5.707), control1: CGPoint(x: 5.724, y: 6), control2: CGPoint(x: 5.488, y: 5.902))
        p.addCurve(to: CGPoint(x: 5, y: 5), control1: CGPoint(x: 5.098, y: 5.512), control2: CGPoint(x: 5, y: 5.276))
        p.addLine(to: CGPoint(x: 5, y: 2))
        p.addCurve(to: CGPoint(x: 5.293, y: 1.293), control1: CGPoint(x: 5, y: 1.724), control2: CGPoint(x: 5.098, y: 1.488))
        p.addCurve(to: CGPoint(x: 6, y: 1), control1: CGPoint(x: 5.488, y: 1.098), control2: CGPoint(x: 5.724, y: 1))
        p.addLine(to: CGPoint(x: 9, y: 1))
        p.addCurve(to: CGPoint(x: 9.707, y: 1.293), control1: CGPoint(x: 9.276, y: 1), control2: CGPoint(x: 9.512, y: 1.098))
        p.addCurve(to: CGPoint(x: 10, y: 2), control1: CGPoint(x: 9.902, y: 1.488), control2: CGPoint(x: 10, y: 1.724))
        p.addLine(to: CGPoint(x: 10, y: 5))
        p.addCurve(to: CGPoint(x: 9.707, y: 5.707), control1: CGPoint(x: 10, y: 5.276), control2: CGPoint(x: 9.902, y: 5.512))
        p.closeSubpath()
        p.move(to: CGPoint(x: 9, y: 5))
        p.addLine(to: CGPoint(x: 9, y: 2))
        p.addLine(to: CGPoint(x: 6, y: 2))
        p.addLine(to: CGPoint(x: 6, y: 5))
        p.addLine(to: CGPoint(x: 9, y: 5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2, y: 14))
        p.addLine(to: CGPoint(x: 5, y: 14))
        p.addLine(to: CGPoint(x: 5, y: 11))
        p.addLine(to: CGPoint(x: 2, y: 11))
        p.addLine(to: CGPoint(x: 2, y: 14))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10, y: 14))
        p.addLine(to: CGPoint(x: 13, y: 14))
        p.addLine(to: CGPoint(x: 13, y: 11))
        p.addLine(to: CGPoint(x: 10, y: 11))
        p.addLine(to: CGPoint(x: 10, y: 14))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "hierarchy-square" (line-round), MIT. https://gentleface.com/icons/hierarchy-square
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 HierarchySquareIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "hierarchy-square", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_hierarchy_square.xml · Gentleface "hierarchy-square" (line-round), MIT. https://gentleface.com/icons/hierarchy-square -->
<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="M9.707 5.707C9.512 5.902 9.276 6 9 6L8 6L8 8L11.5 8C11.641 8 11.759 8.048 11.856 8.144C11.952 8.241 12 8.359 12 8.5L12 10L13 10C13.276 10 13.512 10.098 13.707 10.293C13.902 10.488 14 10.724 14 11L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L10 15C9.724 15 9.488 14.902 9.293 14.707C9.098 14.512 9 14.276 9 14L9 11C9 10.724 9.098 10.488 9.293 10.293C9.488 10.098 9.724 10 10 10L11 10L11 9L4 9L4 10L5 10C5.276 10 5.512 10.098 5.707 10.293C5.902 10.488 6 10.724 6 11L6 14C6 14.276 5.902 14.512 5.707 14.707C5.512 14.902 5.276 15 5 15L2 15C1.724 15 1.488 14.902 1.293 14.707C1.098 14.512 1 14.276 1 14L1 11C1 10.724 1.098 10.488 1.293 10.293C1.488 10.098 1.724 10 2 10L3 10L3 8.5C3 8.359 3.048 8.241 3.144 8.144C3.241 8.048 3.359 8 3.5 8L7 8L7 6L6 6C5.724 6 5.488 5.902 5.293 5.707C5.098 5.512 5 5.276 5 5L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L9 1C9.276 1 9.512 1.098 9.707 1.293C9.902 1.488 10 1.724 10 2L10 5C10 5.276 9.902 5.512 9.707 5.707ZM9 5L9 2L6 2L6 5L9 5ZM2 14L5 14L5 11L2 11L2 14ZM10 14L13 14L13 11L10 11L10 14Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(9.707, 5.707)
      ..cubicTo(9.512, 5.902, 9.276, 6, 9, 6)
      ..lineTo(8, 6)
      ..lineTo(8, 8)
      ..lineTo(11.5, 8)
      ..cubicTo(11.641, 8, 11.759, 8.048, 11.856, 8.144)
      ..cubicTo(11.952, 8.241, 12, 8.359, 12, 8.5)
      ..lineTo(12, 10)
      ..lineTo(13, 10)
      ..cubicTo(13.276, 10, 13.512, 10.098, 13.707, 10.293)
      ..cubicTo(13.902, 10.488, 14, 10.724, 14, 11)
      ..lineTo(14, 14)
      ..cubicTo(14, 14.276, 13.902, 14.512, 13.707, 14.707)
      ..cubicTo(13.512, 14.902, 13.276, 15, 13, 15)
      ..lineTo(10, 15)
      ..cubicTo(9.724, 15, 9.488, 14.902, 9.293, 14.707)
      ..cubicTo(9.098, 14.512, 9, 14.276, 9, 14)
      ..lineTo(9, 11)
      ..cubicTo(9, 10.724, 9.098, 10.488, 9.293, 10.293)
      ..cubicTo(9.488, 10.098, 9.724, 10, 10, 10)
      ..lineTo(11, 10)
      ..lineTo(11, 9)
      ..lineTo(4, 9)
      ..lineTo(4, 10)
      ..lineTo(5, 10)
      ..cubicTo(5.276, 10, 5.512, 10.098, 5.707, 10.293)
      ..cubicTo(5.902, 10.488, 6, 10.724, 6, 11)
      ..lineTo(6, 14)
      ..cubicTo(6, 14.276, 5.902, 14.512, 5.707, 14.707)
      ..cubicTo(5.512, 14.902, 5.276, 15, 5, 15)
      ..lineTo(2, 15)
      ..cubicTo(1.724, 15, 1.488, 14.902, 1.293, 14.707)
      ..cubicTo(1.098, 14.512, 1, 14.276, 1, 14)
      ..lineTo(1, 11)
      ..cubicTo(1, 10.724, 1.098, 10.488, 1.293, 10.293)
      ..cubicTo(1.488, 10.098, 1.724, 10, 2, 10)
      ..lineTo(3, 10)
      ..lineTo(3, 8.5)
      ..cubicTo(3, 8.359, 3.048, 8.241, 3.144, 8.144)
      ..cubicTo(3.241, 8.048, 3.359, 8, 3.5, 8)
      ..lineTo(7, 8)
      ..lineTo(7, 6)
      ..lineTo(6, 6)
      ..cubicTo(5.724, 6, 5.488, 5.902, 5.293, 5.707)
      ..cubicTo(5.098, 5.512, 5, 5.276, 5, 5)
      ..lineTo(5, 2)
      ..cubicTo(5, 1.724, 5.098, 1.488, 5.293, 1.293)
      ..cubicTo(5.488, 1.098, 5.724, 1, 6, 1)
      ..lineTo(9, 1)
      ..cubicTo(9.276, 1, 9.512, 1.098, 9.707, 1.293)
      ..cubicTo(9.902, 1.488, 10, 1.724, 10, 2)
      ..lineTo(10, 5)
      ..cubicTo(10, 5.276, 9.902, 5.512, 9.707, 5.707)
      ..close()
      ..moveTo(9, 5)
      ..lineTo(9, 2)
      ..lineTo(6, 2)
      ..lineTo(6, 5)
      ..lineTo(9, 5)
      ..close()
      ..moveTo(2, 14)
      ..lineTo(5, 14)
      ..lineTo(5, 11)
      ..lineTo(2, 11)
      ..lineTo(2, 14)
      ..close()
      ..moveTo(10, 14)
      ..lineTo(13, 14)
      ..lineTo(13, 11)
      ..lineTo(10, 11)
      ..lineTo(10, 14)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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