Contents
  1. The short answer
  2. Why a star suits a favicon, and where it can fail
  3. Step 1: Construct the star geometry
  4. Step 2: Choose the red and the background
  5. Step 3: Write the SVG favicon
  6. Step 4: Export the fallback files
  7. Step 5: Reference the files in your HTML
  8. Step 6: Verify the result
  9. If you are sourcing a red star rather than drawing one
  10. Gaps in this guide

The short answer

A red star is a strong favicon symbol because it is a single, compact silhouette that stays recognizable when shrunk to the size of a browser tab. To make it work, build the star as one closed vector path with a solid red fill and no stroke, keep the points blunt enough to survive small pixel sizes, check its contrast against both light and dark browser interfaces, and export it as an SVG plus raster fallbacks. Then verify it at actual display size, not zoomed in.

A few terms used in this guide: a vector path is a shape described by mathematical points and curves rather than pixels, so it can be scaled without losing sharpness. Anchor points are the points that define a path's corners and curves. A fill is the color inside a closed path; a stroke is an outline drawn along the path. A favicon is the small icon a browser shows in tabs, bookmarks and history lists.

Why a star suits a favicon, and where it can fail

Favicons are displayed far smaller than a typical logo, so detail disappears first. A star depends on its outline rather than on internal detail, which is why it reads well at small sizes. Its weak points are the tips: thin, sharp points can collapse into one or two faint pixels, making the star look like a blurry blob. A five-pointed star also tends to look off-center because its mass sits higher than its lower points suggest, so it usually needs optical adjustment rather than strict mathematical centering.

Before committing, consider meaning as well as form. A red star carries strong historical and political associations in many countries, and it is also a common generic shape used by many organizations. Decide whether those associations fit your brand and audience, and whether a plain star will be distinctive enough to identify your site among other open tabs.

Step 1: Construct the star geometry

A regular five-pointed star is built from two concentric circles: an outer circle that holds the five tips and an inner circle that holds the five inner corners. The points alternate between the two circles every 36 degrees, starting with a tip at the top. In a mathematically regular star, the inner radius is about 0.382 of the outer radius, a ratio that comes from the golden ratio. Raising that ratio makes the star fatter, with blunter tips; lowering it makes the tips longer and sharper.

For a favicon, a slightly fatter star than the regular proportion is a reasonable design choice, because wider tips hold more pixels at small sizes. This is a recommendation, not a requirement; test both versions at real size and choose the one that stays clearer.

  • Draw the star as a single closed path with ten anchor points, not as overlapping triangles.
  • Use a fill only; remove any stroke, because strokes can render inconsistently and change the shape's weight when scaled.
  • Merge or flatten any compound shapes so the final artwork is one clean path.
  • If you round the tips, keep the rounding small and consistent on all five points.
  • Shift the star slightly downward within its square canvas so it looks centered, since a geometrically centered star leaves more empty space below than above.

Step 2: Choose the red and the background

Use your brand's defined red if one exists. No specific color values were supplied for this guide, so any value shown in the example below is a placeholder. Whatever red you choose, check it against the two common contexts a favicon appears in: light browser chrome and dark browser chrome. Many reds are clearly visible on white but lose contrast on dark gray tab bars.

There are two practical approaches. A transparent background shows only the red star and relies on the red contrasting with whatever the browser displays behind it. A filled tile, such as a white or dark square or circle behind the star, gives you control over contrast in every context at the cost of a slightly heavier look. If a transparent star disappears in dark mode, a tile or a thin light inner shape is usually the more reliable fix than changing the red.

Step 3: Write the SVG favicon

An SVG favicon keeps the star sharp at any size where the browser supports it. The example below uses a 100 by 100 coordinate space defined by the viewBox, a star built with the regular inner-to-outer ratio, and a downward shift for optical centering. Replace the placeholder fill color with your own red.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
  <path fill="#D62828"
        d="M50 6.5 L60.8 39.7 L95.7 39.7 L67.4 60.2 L78.2 93.3
           L50 72.8 L21.8 93.3 L32.6 60.2 L4.3 39.7 L39.2 39.7 Z"/>
</svg>

The namespace value in the svg element is a fixed identifier required by the SVG format, not a link to visit. If you want the star to adapt to dark mode, SVG favicons can contain a CSS media query for the user's color-scheme preference, but browser support for this varies, so treat it as an enhancement and keep a version that works without it.

Step 4: Export the fallback files

Not every browser or platform uses an SVG favicon, so a complete set normally includes raster versions as well. The sizes below are widely documented conventions; check current browser and platform documentation before release, because requirements change over time.

File | Purpose | Common size
favicon.svg | Scalable icon for browsers that support SVG favicons | Vector, any size
favicon.ico | Legacy fallback, can hold several sizes in one file | 16×16 and 32×32
apple-touch-icon.png | Home-screen icon on Apple devices | 180×180
Web app manifest icons | Installed web apps and some Android contexts | 192×192 and 512×512

Export the smallest raster sizes directly from the vector artwork rather than shrinking a large PNG, and inspect them pixel by pixel. At 16 pixels, nudging the path so the tips and inner corners land on whole pixels can make the star noticeably crisper; this manual adjustment is called pixel snapping or hinting. Home-screen icons are usually shown with their own rounded mask and benefit from a solid background tile and some padding around the star.

Step 5: Reference the files in your HTML

<link rel="icon" href="favicon.ico" sizes="any">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="apple-touch-icon.png">

Adjust the file paths to match where the files live on your site. If you also provide a web app manifest, list the larger PNG icons there.

Step 6: Verify the result

  • View the favicon in an actual browser tab at normal zoom, not in your design tool at magnified size.
  • Check it in both light and dark browser themes and confirm the star stays visible in each.
  • Compare it beside other open tabs to judge whether it is distinctive enough to find quickly.
  • Convert a copy to grayscale; if the star's shape is still clear, it does not depend on color alone.
  • Open the SVG in a text editor and confirm it contains only vector paths, with no embedded raster image, hidden layers or editor metadata you do not need.
  • If the old icon still appears, clear the browser cache or test in a private window, since browsers cache favicons aggressively.

The text-editor check matters because a file extension alone does not prove what a file contains: an SVG can wrap a pixel image, and an editable-looking file is not necessarily clean, scalable artwork.

If you are sourcing a red star rather than drawing one

A basic star is a common geometric shape and is simple to draw yourself, which avoids licensing questions. If you download star artwork or adapt an existing logo, check the license terms for commercial and logo use, because a downloadable file does not grant permission to use it as your brand mark. Avoid closely copying an existing organization's red star logo, and seek qualified advice if trademark clearance matters for your project.

Gaps in this guide

No brand-specific information, color specifications, browser test results or platform measurements were provided for this article. The geometry ratio and file sizes above are general, verifiable conventions; the advice on star proportions, backgrounds and optical centering consists of design recommendations that should be confirmed by testing your own artwork in the browsers and devices your audience uses.