Bought Pro? It is on your account. Sign in
SVG Creator Go Pro

Heart icon (free SVG)

In shortThe heart is the universal "like", favourite or save action. It also stands for health and care in wellness and charity products. Download this heart icon free in four styles as a 24×24 SVG that uses currentColor; every file is under 1 KB and free for commercial use.

Style collections: outline · filled · duotone · glyph · Updated 2026-10-21

Heart icon, outline style, on a light backgroundHeart icon, outline style, on a dark background
Outline · 320 bytes
Heart icon, filled style, on a light backgroundHeart icon, filled style, on a dark background
Filled · 328 bytes
Heart icon, duotone style, on a light backgroundHeart icon, duotone style, on a dark background
Duotone · 501 bytes
Heart icon, glyph style, on a light backgroundHeart icon, glyph style, on a dark background
Glyph · 256 bytes

Variations

The same heart drawn four ways. Open any of them in the editor to recolour it, change the stroke, rotate or export PNG.

Heart icon at 16 pixels
16px
Heart icon at 20 pixels
20px
Heart icon at 24 pixels
24px
Heart icon at 32 pixels
32px
Heart icon at 48 pixels
48px

Code

Inline SVG (HTML)

<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20s-7.5-4.6-9-9.2C2 7.4 4 4 7.4 4c2 0 3.6 1.1 4.6 2.7C13 5.1 14.6 4 16.6 4 20 4 22 7.4 21 10.8 19.5 15.4 12 20 12 20z"/></svg>

React component

export default function HeartIcon({ size = 24, color = "currentColor", ...props }) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      stroke={color}
      strokeWidth={2}
      strokeLinecap="round"
      strokeLinejoin="round"
      {...props}
    >
      <path d="M12 20s-7.5-4.6-9-9.2C2 7.4 4 4 7.4 4c2 0 3.6 1.1 4.6 2.7C13 5.1 14.6 4 16.6 4 20 4 22 7.4 21 10.8 19.5 15.4 12 20 12 20z" />
    </svg>
  );
}

CSS mask (recolour with color)

.icon-heart {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9-9.2C2 7.4 4 4 7.4 4c2 0 3.6 1.1 4.6 2.7C13 5.1 14.6 4 16.6 4 20 4 22 7.4 21 10.8 19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9-9.2C2 7.4 4 4 7.4 4c2 0 3.6 1.1 4.6 2.7C13 5.1 14.6 4 16.6 4 20 4 22 7.4 21 10.8 19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E") no-repeat center / contain;
}

Image tag

<img src="https://mumshadjawad.com/svg-creator/icons/heart-outline.svg" width="24" height="24" alt="">

Not sure which to use? See SVG icons in React, SVG icons in CSS and how to change an SVG icon's colour.

Details

Good for
like, favourite, wishlist, health, donate
Grid
24 × 24, viewBox="0 0 24 24", 2px safe area
Outline stroke
2px, round caps and joins
Shapes
1 element (outline, classic)
File sizes
outline 320 B · filled 328 B · duotone 501 B · glyph 256 B
Licence
Free for personal and commercial use, no attribution required
Collections
UI icons for apps and websites, e-commerce and shopping icons, media icons

Related icons

Need a different heart?

Describe it ("heart, minimal, rounded") and get four new variations.
Generate variations