icons/Octicons/fileOpen in browser →

file · Octicons

Free SVG file icon from Octicons. Rendered at 24×24 in the filled style and licensed under MIT. Copy directly as SVG, React (JSX), or Vue. Download as SVG or PNG. No login, no attribution required for MIT licensed icons.

file icon — OcticonsFree file SVG icon from Octicons, filled style, MIT licensed.

Tags

  • file

Code

HTML / SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><g transform="scale(1) translate(0 0)"><path fill-rule="evenodd" d="M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z" fill="currentColor"/></g></svg>
React
// Run: npx sant-icons get octicon-file --format react
export function OcticonFile(props) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" {...props}><g transform="scale(1) translate(0 0)"><path fill-rule="evenodd" d="M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z" fill="currentColor"/></g></svg>
  );
}
CLI
npx sant-icons get octicon-file

Properties

Name
file
Library
Octicons
Style
filled
License
MIT
Version
1.2.40
Identifier
octicon-file

file in other libraries

Related from Octicons

The file icon ships with Octicons, an open-source icon set licensed under MIT. Search for it as "octicons file", "file svg", or any of its tagged terms (file). The SVG is normalised to a 24×24 viewBox so you can drop it into any UI framework alongside the other icons here without scaling concerns.

Need this icon in your codebase fast? Install the MCP server for Claude Code (or any MCP-aware AI tool) and ask the model to fetch octicon-file directly into your project. No browser context-switch.