ICONYZ
English
File icon from Font Awesome 4

File icon

fa:file

The File icon (fa:file) is a free SVG icon from the Font Awesome 4 set by Dave Gandy. It is drawn on a 1536 × 1792 grid. Font Awesome 4 icons are released under the Open Font 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
Font Awesome 4
Author
Dave Gandy
License
OFL-1.1
Size
1536 × 1792
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="1536" height="1792" viewBox="0 0 1536 1792"><path fill="currentColor" d="M1024 512V40q22 14 36 28l408 408q14 14 28 36zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28H96q-40 0-68-28t-28-68V96q0-40 28-68T96 0h800z"/></svg>

How to use the File icon

React

import { Icon } from "@iconify/react";

<Icon icon="fa:file" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="fa:file" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="fa:file" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[fa--file]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/fa -->
<div class="i-fa:file"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="fa:file"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fa/file.svg" alt="File icon" width="24" height="24">

Related icons in Font Awesome 4

File icon in other icon sets

File icon FAQ

Is the File icon free for commercial use?

Yes. Font Awesome 4 icons are released under the Open Font License, which allows use in personal and commercial projects.

How do I use the File icon in React?

Install @iconify/react and render <Icon icon="fa:file" />, or use “Copy code” on this page to get a standalone React component.

How do I add the File icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fa/file.svg" alt="File icon">, or paste the SVG code inline to style it with CSS.

Browse all Font Awesome 4 icons →