# heading icon

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

- Category: Text & formatting
- Use it for: heading, title, headline
- Tags: heading, title, header, headline, h1, text, format, letter, h
- Family: bold, case-lower, case-sensitive, heading-1, heading-2, heading-3, italic, letter-spacing, pilcrow, spell-check, strikethrough, subscript, superscript, text-color, text-size, text-size-decrease, text-size-increase, type, type-plus, type-x, underline
- Component name: HeadingIcon
- Added: 2026-10-15

## Alternatives

- `type`: plain text (text)
- `text-size`: the font size (font-size)

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

The SVG of every style: https://gentleface.com/icons/heading.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="M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z"/></svg>
```

### React

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

export function HeadingIcon(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="M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "heading" (line-round), MIT. https://gentleface.com/icons/heading -->
<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="M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "heading" (line-round), MIT. https://gentleface.com/icons/heading -->
<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="M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "heading" (line-round), MIT. https://gentleface.com/icons/heading. Takes the text color. */
.icon-heading {
  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='M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z'/%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='M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z'/%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='M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct HeadingIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 11, y: 7))
        p.addLine(to: CGPoint(x: 11, y: 2.5))
        p.addCurve(to: CGPoint(x: 11.144, y: 2.144), control1: CGPoint(x: 11, y: 2.359), control2: CGPoint(x: 11.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 11.5, y: 2), control1: CGPoint(x: 11.241, y: 2.048), control2: CGPoint(x: 11.359, y: 2))
        p.addCurve(to: CGPoint(x: 11.856, y: 2.144), control1: CGPoint(x: 11.641, y: 2), control2: CGPoint(x: 11.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 12, y: 2.5), control1: CGPoint(x: 11.952, y: 2.241), control2: CGPoint(x: 12, y: 2.359))
        p.addLine(to: CGPoint(x: 12, y: 12.5))
        p.addCurve(to: CGPoint(x: 11.856, y: 12.856), control1: CGPoint(x: 12, y: 12.641), control2: CGPoint(x: 11.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 11.5, y: 13), control1: CGPoint(x: 11.759, y: 12.952), control2: CGPoint(x: 11.641, y: 13))
        p.addCurve(to: CGPoint(x: 11.144, y: 12.856), control1: CGPoint(x: 11.359, y: 13), control2: CGPoint(x: 11.241, y: 12.952))
        p.addCurve(to: CGPoint(x: 11, y: 12.5), control1: CGPoint(x: 11.048, y: 12.759), control2: CGPoint(x: 11, y: 12.641))
        p.addLine(to: CGPoint(x: 11, y: 8))
        p.addLine(to: CGPoint(x: 5, y: 8))
        p.addLine(to: CGPoint(x: 5, y: 12.5))
        p.addCurve(to: CGPoint(x: 4.856, y: 12.856), control1: CGPoint(x: 5, y: 12.641), control2: CGPoint(x: 4.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 4.5, y: 13), control1: CGPoint(x: 4.759, y: 12.952), control2: CGPoint(x: 4.641, y: 13))
        p.addCurve(to: CGPoint(x: 4.144, y: 12.856), control1: CGPoint(x: 4.359, y: 13), control2: CGPoint(x: 4.241, y: 12.952))
        p.addCurve(to: CGPoint(x: 4, y: 12.5), control1: CGPoint(x: 4.048, y: 12.759), control2: CGPoint(x: 4, y: 12.641))
        p.addLine(to: CGPoint(x: 4, y: 2.5))
        p.addCurve(to: CGPoint(x: 4.144, y: 2.144), control1: CGPoint(x: 4, y: 2.359), control2: CGPoint(x: 4.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 4.5, y: 2), control1: CGPoint(x: 4.241, y: 2.048), control2: CGPoint(x: 4.359, y: 2))
        p.addCurve(to: CGPoint(x: 4.856, y: 2.144), control1: CGPoint(x: 4.641, y: 2), control2: CGPoint(x: 4.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 5, y: 2.5), control1: CGPoint(x: 4.952, y: 2.241), control2: CGPoint(x: 5, y: 2.359))
        p.addLine(to: CGPoint(x: 5, y: 7))
        p.addLine(to: CGPoint(x: 11, y: 7))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "heading" (line-round), MIT. https://gentleface.com/icons/heading
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 HeadingIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "heading", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_heading.xml · Gentleface "heading" (line-round), MIT. https://gentleface.com/icons/heading -->
<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="M11 7L11 2.5C11 2.359 11.048 2.241 11.144 2.144C11.241 2.048 11.359 2 11.5 2C11.641 2 11.759 2.048 11.856 2.144C11.952 2.241 12 2.359 12 2.5L12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13C11.359 13 11.241 12.952 11.144 12.856C11.048 12.759 11 12.641 11 12.5L11 8L5 8L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 2.5C4 2.359 4.048 2.241 4.144 2.144C4.241 2.048 4.359 2 4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5L5 7L11 7Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(11, 7)
      ..lineTo(11, 2.5)
      ..cubicTo(11, 2.359, 11.048, 2.241, 11.144, 2.144)
      ..cubicTo(11.241, 2.048, 11.359, 2, 11.5, 2)
      ..cubicTo(11.641, 2, 11.759, 2.048, 11.856, 2.144)
      ..cubicTo(11.952, 2.241, 12, 2.359, 12, 2.5)
      ..lineTo(12, 12.5)
      ..cubicTo(12, 12.641, 11.952, 12.759, 11.856, 12.856)
      ..cubicTo(11.759, 12.952, 11.641, 13, 11.5, 13)
      ..cubicTo(11.359, 13, 11.241, 12.952, 11.144, 12.856)
      ..cubicTo(11.048, 12.759, 11, 12.641, 11, 12.5)
      ..lineTo(11, 8)
      ..lineTo(5, 8)
      ..lineTo(5, 12.5)
      ..cubicTo(5, 12.641, 4.952, 12.759, 4.856, 12.856)
      ..cubicTo(4.759, 12.952, 4.641, 13, 4.5, 13)
      ..cubicTo(4.359, 13, 4.241, 12.952, 4.144, 12.856)
      ..cubicTo(4.048, 12.759, 4, 12.641, 4, 12.5)
      ..lineTo(4, 2.5)
      ..cubicTo(4, 2.359, 4.048, 2.241, 4.144, 2.144)
      ..cubicTo(4.241, 2.048, 4.359, 2, 4.5, 2)
      ..cubicTo(4.641, 2, 4.759, 2.048, 4.856, 2.144)
      ..cubicTo(4.952, 2.241, 5, 2.359, 5, 2.5)
      ..lineTo(5, 7)
      ..lineTo(11, 7)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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