Lines objects up on a shared vertical centre in a design tool toolbar. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.

LayoutNewv2.6.0Added
Drawn byKeyline Icons
16
20
24 px
32
24px
2px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M2 12H4M10 12H14M20 12H22M6 8H8C9.1046 8 10 8.8954 10 10V14C10 15.1046 9.1046 16 8 16H6C4.8954 16 4 15.1046 4 14V10C4 8.8954 4.8954 8 6 8ZM16 4H18C19.1045 4 20 4.8954 20 6V18C20 19.1046 19.1046 20 18 20H16C14.8955 20 14 19.1046 14 18V6C14 4.8954 14.8954 4 16 4Z"/>
</svg>

Also called

What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.

  • align center
  • centre horizontally
  • align objects
  • center x
  • layout
  • arrange

Related icons

The rest of the align family first, then the Layout shelf.

FAQ

Answered from align-center-horizontal's own facts: its shelf, the styles it was drawn in, its siblings and its dates.

What is the align-center-horizontal icon for?
Lines objects up on a shared vertical centre in a design tool toolbar. It is filed under Layout in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as align center, centre horizontally, align objects, center x, layout and arrange, and the browser's search matches all of those.
What styles does the align-center-horizontal icon come in?
All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
Is there a square or circle version of align-center-horizontal?
No. align-center-horizontal is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with align-center-horizontal?
align-center-vertical, align-end-horizontal, align-end-vertical, align-horizontal-distribute-center, align-horizontal-distribute-end and align-horizontal-distribute-start, and 12 more, all shown below. The align family is listed first, then the rest of the Layout shelf, so the row under this one is the useful one even where a shelf runs long.
How do I import align-center-horizontal in React?
<AlignCenterHorizontal /> is the component, and the style decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <AlignCenterHorizontal size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the align-center-horizontal SVG?
icons/stroke/align-center-horizontal.svg, icons/two-tone/align-center-horizontal.svg, icons/duotone/align-center-horizontal.svg and icons/fill/align-center-horizontal.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
When was align-center-horizontal added to the set?
Added 8 Nov 2026. It ships in v2.6.0, so an install at that version or later has it.

Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.