Building icon
pepicons:building
The Building icon (pepicons:building) is a free SVG icon from the Pepicons set by CyCraft. It is drawn on a 20 × 20 grid. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="currentColor"><path d="M2 18.5a1 1 0 1 1 0-2h16a1 1 0 1 1 0 2H2Z"/><path d="M6.5 17a1 1 0 1 1-2 0V4.308C4.5 2.51 5.809 1 7.5 1h5c1.691 0 3 1.51 3 3.308V17a1 1 0 1 1-2 0V4.308c0-.752-.482-1.308-1-1.308h-5c-.518 0-1 .556-1 1.308V17Z"/><path d="M8 4h1a.5.5 0 0 1 .5.5v1A.5.5 0 0 1 9 6H8a.5.5 0 0 1-.5-.5v-1A.5.5 0 0 1 8 4Zm3 0h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1A.5.5 0 0 1 11 4Zm0 3h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1A.5.5 0 0 1 11 7Zm0 3h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5Zm0 3h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5ZM8 7h1a.5.5 0 0 1 .5.5v1A.5.5 0 0 1 9 9H8a.5.5 0 0 1-.5-.5v-1A.5.5 0 0 1 8 7Zm0 6h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5v-1A.5.5 0 0 1 8 13Zm0-3h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5v-1A.5.5 0 0 1 8 10Z"/></g></svg>How to use the Building icon
React
import { Icon } from "@iconify/react";
<Icon icon="pepicons:building" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="pepicons:building" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="pepicons:building" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[pepicons--building]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/pepicons -->
<div class="i-pepicons:building"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="pepicons:building"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/pepicons/building.svg" alt="Building icon" width="24" height="24">Related icons in Pepicons
Building icon in other icon sets
Building icon FAQ
Is the Building icon free for commercial use?
Yes. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Building icon in React?
Install @iconify/react and render <Icon icon="pepicons:building" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Building icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/pepicons/building.svg" alt="Building icon">, or paste the SVG code inline to style it with CSS.