Facebook icon
uil:facebook
The Facebook icon (uil:facebook) is a free SVG icon from the Unicons set by Iconscout. It is drawn on a 24 × 24 grid. Unicons are released under the Apache 2.0 license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Unicons
- Author
- Iconscout
- License
- Apache-2.0
- Size
- 24 × 24
- Category
- Brand Logos
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20.9 2H3.1A1.1 1.1 0 0 0 2 3.1v17.8A1.1 1.1 0 0 0 3.1 22h9.58v-7.75h-2.6v-3h2.6V9a3.64 3.64 0 0 1 3.88-4a20 20 0 0 1 2.33.12v2.7H17.3c-1.26 0-1.5.6-1.5 1.47v1.93h3l-.39 3H15.8V22h5.1a1.1 1.1 0 0 0 1.1-1.1V3.1A1.1 1.1 0 0 0 20.9 2"/></svg>How to use the Facebook icon
React
import { Icon } from "@iconify/react";
<Icon icon="uil:facebook" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="uil:facebook" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="uil:facebook" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[uil--facebook]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/uil -->
<div class="i-uil:facebook"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="uil:facebook"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/uil/facebook.svg" alt="Facebook icon" width="24" height="24">Related icons in Unicons
Facebook icon in other icon sets
Facebook icon FAQ
Is the Facebook icon free for commercial use?
Yes. Unicons are released under the Apache 2.0 license, which allows use in personal and commercial projects.
How do I use the Facebook icon in React?
Install @iconify/react and render <Icon icon="uil:facebook" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Facebook icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/uil/facebook.svg" alt="Facebook icon">, or paste the SVG code inline to style it with CSS.