ICONYZ
English
File icon from Prime Icons

File icon

prime:file

The File icon (prime:file) is a free SVG icon from the Prime Icons set by PrimeTek. It is drawn on a 24 × 24 grid. Prime Icons are released under the MIT 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
Prime Icons
Author
PrimeTek
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M18.53 9L13 3.47a.75.75 0 0 0-.53-.22H8A2.75 2.75 0 0 0 5.25 6v12A2.75 2.75 0 0 0 8 20.75h8A2.75 2.75 0 0 0 18.75 18V9.5a.75.75 0 0 0-.22-.5m-5.28-3.19l2.94 2.94h-2.94ZM16 19.25H8A1.25 1.25 0 0 1 6.75 18V6A1.25 1.25 0 0 1 8 4.75h3.75V9.5a.76.76 0 0 0 .75.75h4.75V18A1.25 1.25 0 0 1 16 19.25"/></svg>

How to use the File icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Prime Icons

File icon in other icon sets

File icon FAQ

Is the File icon free for commercial use?

Yes. Prime Icons are released under the MIT 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="prime: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/prime/file.svg" alt="File icon">, or paste the SVG code inline to style it with CSS.

Browse all Prime Icons →