icons/Octicons/heartOpen in browser →

heart · Octicons

Free SVG heart 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.

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

Tags

  • heart

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="M9 2c-.97 0-1.69.42-2.2 1c-.51.58-.78.92-.8 1c-.02-.08-.28-.42-.8-1c-.52-.58-1.17-1-2.2-1c-1.632.086-2.954 1.333-3 3c0 .52.09 1.52.67 2.67C1.25 8.82 3.01 10.61 6 13c2.98-2.39 4.77-4.17 5.34-5.33C11.91 6.51 12 5.5 12 5c-.047-1.69-1.342-2.913-3-3z" fill="currentColor"/></g></svg>
React
// Run: npx sant-icons get octicon-heart --format react
export function OcticonHeart(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="M9 2c-.97 0-1.69.42-2.2 1c-.51.58-.78.92-.8 1c-.02-.08-.28-.42-.8-1c-.52-.58-1.17-1-2.2-1c-1.632.086-2.954 1.333-3 3c0 .52.09 1.52.67 2.67C1.25 8.82 3.01 10.61 6 13c2.98-2.39 4.77-4.17 5.34-5.33C11.91 6.51 12 5.5 12 5c-.047-1.69-1.342-2.913-3-3z" fill="currentColor"/></g></svg>
  );
}
CLI
npx sant-icons get octicon-heart

Properties

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

heart in other libraries

Related from Octicons

The heart icon ships with Octicons, an open-source icon set licensed under MIT. Search for it as "octicons heart", "heart svg", or any of its tagged terms (heart). 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-heart directly into your project. No browser context-switch.