Safari Pinned Tab “mask‑icon” (SVG) from Your Logo

Create a Safari pinned‑tab mask‑icon from an SVG logo

Safari supports a special monochrome icon for Pinned Tabs via <link rel="mask-icon">. You provide a pure‑black SVG (transparent background), then pick the tab color using the color attribute. Apple’s guide shows the exact markup; they recommend a single‑layer SVG and a viewBox of 0 0 16 16.

Note. Since Safari 12, pinned tabs can fall back to a regular favicon, so a mask‑icon is optional—but adding one still gives you full control over the appearance and color in Safari.

What you’ll do

Step‑by‑step in IconVectors

  1. Prepare a pure‑black glyph
    • Open/Create: File → Open… (Ctrl+O) or New Icon (Ctrl+N).
    • Flatten your logo to a single layer/path and set fills/strokes to black on a transparent background.
    • Set the root SVG to viewBox="0 0 16 16" (Apple’s guidance for pinned‑tab templates).
    Preparing a single‑color mask‑icon in IconVectors
    Keep the shape bold and centered; tiny details can disappear at pinned‑tab size.
  2. Export Minified SVG

    Choose File → Export → Export Minified (Shift+Ctrl+M). This writes a compact .svg with the right viewBox and no extra metadata—perfect for a mask‑icon.

  3. Add the link tag with your brand color

    Place this in your document’s <head> (update the path/color):

    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#0ea5e9">

    The color sets the display color of the black SVG. Apple accepts hex, RGB, or color keywords.

  4. Verify in Safari & handle fallbacks
    • Open your site in Safari, pin the tab (Control‑click a tab → Pin Tab), and confirm the icon matches your brand color.
    • If you don’t ship a mask‑icon, Safari can use your normal favicon for pinned tabs (Safari 12+). Mask‑icon remains useful if you want explicit branding.
    • If the icon doesn’t update, unpin/re‑pin; in stubborn cases, clear the cached “Template Icons” folder as noted by community workarounds.

Troubleshooting

Start Making SVG Icons Today with IconVectors

Download the fully-functional 30‑Day Free Trial and unlock your icon design workflow.

Version 1.10 - September 17, 2025