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

Star icon (free SVG)

In shortA five-point star marks ratings, favourites, featured items and premium tiers. Use outline for "not starred" and filled for "starred". Download this star 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

Star icon, outline style, on a light backgroundStar icon, outline style, on a dark background
Outline · 293 bytes
Star icon, filled style, on a light backgroundStar icon, filled style, on a dark background
Filled · 301 bytes
Star icon, duotone style, on a light backgroundStar icon, duotone style, on a dark background
Duotone · 447 bytes
Star icon, glyph style, on a light backgroundStar icon, glyph style, on a dark background
Glyph · 229 bytes

Variations

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

Star icon at 16 pixels
16px
Star icon at 20 pixels
20px
Star icon at 24 pixels
24px
Star icon at 32 pixels
32px
Star 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"><polygon points="12 2.8 14.8 8.7 21.2 9.5 16.5 13.9 17.7 20.3 12 17.2 6.3 20.3 7.5 13.9 2.8 9.5 9.2 8.7"/></svg>

React component

export default function StarIcon({ 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}
    >
      <polygon points="12 2.8 14.8 8.7 21.2 9.5 16.5 13.9 17.7 20.3 12 17.2 6.3 20.3 7.5 13.9 2.8 9.5 9.2 8.7" />
    </svg>
  );
}

CSS mask (recolour with color)

.icon-star {
  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%3Cpolygon points='12 2.8 14.8 8.7 21.2 9.5 16.5 13.9 17.7 20.3 12 17.2 6.3 20.3 7.5 13.9 2.8 9.5 9.2 8.7'/%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%3Cpolygon points='12 2.8 14.8 8.7 21.2 9.5 16.5 13.9 17.7 20.3 12 17.2 6.3 20.3 7.5 13.9 2.8 9.5 9.2 8.7'/%3E%3C/svg%3E") no-repeat center / contain;
}

Image tag

<img src="https://mumshadjawad.com/svg-creator/icons/star-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
rating, favourite, featured, premium, bookmark
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 293 B · filled 301 B · duotone 447 B · glyph 229 B
Licence
Free for personal and commercial use, no attribution required
Collections
UI icons for apps and websites, e-commerce and shopping icons, space icons, media icons

Related icons

Need a different star?

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