Gentleface › Text & formatting › align-center
align-center icon
align-centerAlign center: align center, text align center, center text, centre text. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M1.144 3.856C1.048 3.759 1 3.641 1 3.5C1 3.359 1.048 3.241 1.144 3.144C1.241 3.048 1.359 3 1.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L1.5 4C1.359 4 1.241 3.952 1.144 3.856ZM4.144 6.856C4.048 6.759 4 6.641 4 6.5C4 6.359 4.048 6.241 4.144 6.144C4.241 6.048 4.359 6 4.5 6L11.5 6C11.641 6 11.759 6.048 11.856 6.144C11.952 6.241 12 6.359 12 6.5C12 6.641 11.952 6.759 11.856 6.856C11.759 6.952 11.641 7 11.5 7L4.5 7C4.359 7 4.241 6.952 4.144 6.856ZM14.856 9.144C14.952 9.241 15 9.359 15 9.5C15 9.641 14.952 9.759 14.856 9.856C14.759 9.952 14.641 10 14.5 10L1.5 10C1.359 10 1.241 9.952 1.144 9.856C1.048 9.759 1 9.641 1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L14.5 9C14.641 9 14.759 9.048 14.856 9.144ZM4.144 12.856C4.048 12.759 4 12.641 4 12.5C4 12.359 4.048 12.241 4.144 12.144C4.241 12.048 4.359 12 4.5 12L11.5 12C11.641 12 11.759 12.048 11.856 12.144C11.952 12.241 12 12.359 12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13L4.5 13C4.359 13 4.241 12.952 4.144 12.856Z"/></svg>
// Gentleface "align-center" (line-round), MIT. https://gentleface.com/icons/align-center
import type { SVGProps } from 'react';
export function AlignCenterIcon(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="M1.144 3.856C1.048 3.759 1 3.641 1 3.5C1 3.359 1.048 3.241 1.144 3.144C1.241 3.048 1.359 3 1.5 3L14.5 3C14.641 3 14.759 3.048 14.856 3.144C14.952 3.241 15 3.359 15 3.5C15 3.641 14.952 3.759 14.856 3.856C14.759 3.952 14.641 4 14.5 4L1.5 4C1.359 4 1.241 3.952 1.144 3.856ZM4.144 6.856C4.048 6.759 4 6.641 4 6.5C4 6.359 4.048 6.241 4.144 6.144C4.241 6.048 4.359 6 4.5 6L11.5 6C11.641 6 11.759 6.048 11.856 6.144C11.952 6.241 12 6.359 12 6.5C12 6.641 11.952 6.759 11.856 6.856C11.759 6.952 11.641 7 11.5 7L4.5 7C4.359 7 4.241 6.952 4.144 6.856ZM14.856 9.144C14.952 9.241 15 9.359 15 9.5C15 9.641 14.952 9.759 14.856 9.856C14.759 9.952 14.641 10 14.5 10L1.5 10C1.359 10 1.241 9.952 1.144 9.856C1.048 9.759 1 9.641 1 9.5C1 9.359 1.048 9.241 1.144 9.144C1.241 9.048 1.359 9 1.5 9L14.5 9C14.641 9 14.759 9.048 14.856 9.144ZM4.144 12.856C4.048 12.759 4 12.641 4 12.5C4 12.359 4.048 12.241 4.144 12.144C4.241 12.048 4.359 12 4.5 12L11.5 12C11.641 12 11.759 12.048 11.856 12.144C11.952 12.241 12 12.359 12 12.5C12 12.641 11.952 12.759 11.856 12.856C11.759 12.952 11.641 13 11.5 13L4.5 13C4.359 13 4.241 12.952 4.144 12.856Z" />
</svg>
);
}Vue: see /icons/align-center.md
Svelte: see /icons/align-center.md
HTML img: see /icons/align-center.md
CSS: see /icons/align-center.md
Data URL: see /icons/align-center.md
Sprite: see /icons/align-center.md
SwiftUI: see /icons/align-center.md
Compose: see /icons/align-center.md
Android XML: see /icons/align-center.md
Flutter: see /icons/align-center.md
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. 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. More in how to use.
Meaning
- Use it for
- align center, text align center, center text, centre text, align centre
- Alternatives
align-horizontal-center: align objects on a canvas to a common center (align-horizontal-centers)
- Not for
- align horizontal centers (use
align-horizontal-center): centers lines of text, not objects
- align horizontal centers (use
- Tags
- align, alignment, center, middle, paragraph, text, format
- Category
- Text & formatting
- Component name
AlignCenterIcon- History
- added
Family 5
More text & formatting icons
asterisk bold border-all border-bottom border-inner border-left border-none border-right border-top case-lower case-sensitive checklist copyright divider divider-vertical heading · all text & formatting icons
For agents
Metadata: /icons/align-center.json · Markdown: /icons/align-center.md · SVG: https://gentleface.com/svg/{style}/16/align-center.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/align-center.png