Heart SVG Icons & Code

A heart SVG is a heart drawn as vector code, so it stays sharp at any size and usually weighs less than 1 KB. Choose a shape above (classic, rounded, outline, broken, double or sparkle), pick a color, then copy the SVG code for your website or download a .svg file for Cricut, Canva or Figma.

Updated
Color
Classic heart
Rounded heart
Pointed heart
Outline heart
Broken heart
Two hearts
Sparkling heart
On this page (6)
  1. What is a heart SVG?
  2. How to use a heart SVG in HTML
  3. Styling a heart SVG with CSS
  4. Using heart SVGs in Cricut, Canva and Figma
  5. Scaling heart SVGs without losing quality
  6. Free to use

What is a heart SVG?

SVG stands for Scalable Vector Graphics, an open web standard for images described as code. Instead of storing pixels, a heart SVG stores instructions, like “start at the bottom point, curve up to the left, arc over the top”, so the browser or app redraws it perfectly at whatever size you need.

That gives heart SVG icons three big advantages:

  • Sharp at any size. The same file works as a 16-pixel icon and a poster-sized print.
  • Tiny files. A simple heart is usually under 1 KB, far smaller than a PNG.
  • Easy to edit. Change the color, stroke or size by editing a word or two of code.

How to use a heart SVG in HTML

The quickest method is to paste the SVG code straight into your HTML. Here’s a minimal classic heart:

<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor" role="img" aria-label="Heart">
  <path d="M12 21C12 21 3 15 3 8.5A4.5 4.5 0 0 1 12 8.5A4.5 4.5 0 0 1 21 8.5C21 15 12 21 12 21Z"/>
</svg>

A few things worth knowing:

  • viewBox sets the drawing’s coordinate system. Keep it, and change only width and height to resize.
  • fill="currentColor" makes the heart use the text color around it, so CSS controls it.
  • Accessibility: if the heart means something (like a “like” button), keep role="img" and an aria-label. If it’s pure decoration, use aria-hidden="true" instead.

You can also save the file and load it like any image: <img src="heart.svg" alt="Heart" width="24" height="24">.

Styling a heart SVG with CSS

With currentColor in place, color and size are one line of CSS each:

.heart { color: #e11d48; width: 2em; height: 2em; transition: transform .2s; }
.heart:hover { transform: scale(1.15); }

To use an SVG file as a background, try background-image: url("heart.svg"). To recolor a heart file without editing it, modern browsers support masking: mask: url("heart.svg") center / contain no-repeat; combined with background-color: currentColor.

If you only need a heart character rather than an icon, the heart symbol HTML codes page covers &hearts; and the CSS content property.

Using heart SVGs in Cricut, Canva and Figma

App How to add the heart
Cricut Design Space Upload → Upload Image → choose the .svg. It imports as a cut-ready shape.
Canva Uploads → Upload files. Canva often lets you recolor simple SVGs after upload.
Figma Drag the .svg onto the canvas, or paste the copied SVG code directly. It becomes an editable vector.
Illustrator, Inkscape Open the .svg directly and edit every point.
PowerPoint, Word (Microsoft 365) Insert → Pictures, then pick the .svg.
Google Slides Doesn’t accept SVG uploads, so use a heart PNG instead.

For layered crafts, the outline heart works well as a border cut, and the double heart gives you two nested pieces. Menu names can change between app versions, but the upload step is always the place to start.

Scaling heart SVGs without losing quality

Because an SVG is redrawn rather than stretched, you can scale it endlessly. Set any width and keep the viewBox, and the proportions stay correct. The same heart can be a favicon, a button icon, a 12-inch vinyl decal and a T-shirt print with no quality loss.

The one thing to watch is stroke width on outline hearts. Strokes scale with the drawing, so a hairline outline that looks delicate at poster size can disappear at 16 pixels. For tiny icons, the classic or rounded filled hearts read best.

Free to use

The vector heart shapes here are drawn by this site and free for personal and commercial use. Emoji designs are a different story: they belong to their makers, so for logos and products stick to these shapes. Want hearts as text instead of images? Browse the heart Unicode guide or the full list of heart emoji.

Frequently asked questions

Is this heart SVG free for commercial use?

Yes. The heart shapes on this page are drawn by this site and free to use in personal and commercial projects, including websites, apps, printables, cut files and products you sell. You can recolor, resize and edit them however you like.

How do I change the color of a heart SVG?

Use the color picker before you copy or download. To change it later, edit the fill value in the code, for example to a hex color like #e11d48. On a website, set fill to currentColor and the heart takes the CSS color of its parent, so you can restyle it, including on hover, without touching the SVG.

How do I use a heart SVG in Cricut Design Space?

Download the .svg file, open Design Space, start a new project and choose Upload, then Upload Image, and select the file. It comes in as a cut-ready shape you can resize freely. For broken and double hearts, use Attach to keep the pieces in position, or Weld to merge overlapping parts into one cut.

What's the difference between SVG and PNG?

A PNG is a grid of pixels, so it blurs if you enlarge it past its size. An SVG describes the shape with math, so it's sharp at every size and easy to recolor. Use SVG for websites, logos, cutting machines and print; use a heart PNG for social media, chats and apps that don't accept SVG.

Can I animate a heart SVG?

Yes. Inline SVGs can be animated with CSS, for example a gentle scale transform on hover or a repeating pulse with @keyframes for a heartbeat effect. Keep the motion subtle, and respect the prefers-reduced-motion setting. For a ready-made beating heart, try the animated heart maker.

Related pages

Your text — tap hearts to add0