On this page (6)
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:
viewBoxsets the drawing’s coordinate system. Keep it, and change onlywidthandheightto 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 anaria-label. If it’s pure decoration, usearia-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 ♥ 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.