A barn with its door and loft window, for farms, rural stays, storage and the countryside. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.

MapsNewv2.3.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 21L2 10.3508C2 10.1237 2.0773 9.9034 2.2191 9.7261L5.8683 5.1646C5.9551 5.0561 6.0637 4.9668 6.1869 4.9026L11.5378 2.1133C11.8274 1.9623 12.1726 1.9623 12.4622 2.1133L17.8131 4.9026C17.9363 4.9668 18.0449 5.0561 18.1317 5.1646L21.7809 9.7261C21.9227 9.9034 22 10.1237 22 10.3508L22 21C22 21.5523 21.5523 22 21 22L3 22C2.4477 22 2 21.5523 2 21ZM8 22L8 16.5C8 16.2239 8.2239 16 8.5 16L15.5 16C15.7761 16 16 16.2239 16 16.5L16 22M16 22L8.1464 16.1464M11 8L13 8C13.5523 8 14 8.4477 14 9L14 11C14 11.5523 13.5523 12 13 12L11 12C10.4477 12 10 11.5523 10 11L10 9C10 8.4477 10.4477 8 11 8Z" fill="none"/>
</svg>

Also called

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

  • farm
  • farmhouse
  • countryside
  • rural
  • stable
  • agriculture

Related icons

The rest of the barn family first, then the Maps shelf.

FAQ

Answered from barn's own facts: its shelf, the weights it was drawn in, its siblings and its dates.

What is the barn icon for?
A barn with its door and loft window, for farms, rural stays, storage and the countryside. It is filed under Maps in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as farm, farmhouse, countryside, rural, stable and agriculture, and the browser's search matches all of those.
What styles does the barn 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 barn?
No. barn is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with barn?
anchor, anchor-2, building, buildings, castle and compass, and 12 more, all shown below. They are the Maps shelf: nothing else in the set is named after barn.
How do I import barn in React?
<Barn /> is the component, and the weight 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 <Barn size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the barn SVG?
icons/stroke/barn.svg, icons/two-tone/barn.svg, icons/duotone/barn.svg and icons/fill/barn.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 barn added to the set?
Added 30 Oct 2026. It ships in v2.3.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.