Skip to main content
unraster

SVG favicon from image. Trace, clean, paste the code.

Trace a PNG, JPG or WebP into an SVG favicon, free in your browser, then paste the link code into your page.

or drop images ·

Basic SVG is free in your browser · Advanced SVG 1 credit · Pricing →

A sample icon, traced as Basic and Advanced SVG.

A made-up 1024 × 1024 px icon (a teal tile, a white ring and an orange dot), converted in Basic and in Advanced with no manual cleanup. The sections below turn that trace into a favicon.

CompareBasic is free · Advanced is 1 credit
Original image
Original ring-and-dot icon
Basic SVG Free · in your browser
ring-and-dot icon as a Basic SVG
Advanced SVG 1 credit to convert
ring-and-dot icon as an Advanced SVG

Both SVGs are real output from the source image above. Downloading an example is free; making your own Advanced SVG costs 1 credit.

How to make an SVG favicon from an image

Flat icons with a thick, simple mark work best. Gradients become flat bands, and small lettering may break.

One image: free Basic SVG in your browser (no upload). Advanced SVG is 1 credit; free allowances apply. The output is an SVG, not a .ico file.

  1. Start from a simple, square image

    Use a bold mark with two or three flat colours and plenty of size (512 px or more). Fine lines, gradients and small text vanish at tab size.

  2. Run Basic SVG and look at the corners

    Choose, drop or paste a PNG, JPG or WebP up to 20 MB. Basic traces it in your browser, costs nothing and never uploads the file. Check whether the page background came out as a shape.

  3. Clean up the file in a text or vector editor

    Delete the background and corner shapes, crop the viewBox to the artwork so it fills the tab with no padding, and save the result as favicon.svg. On the sample this took the file from 5,787 to 2,475 bytes.

  4. Add the link tags and test at 16 and 32 px

    Upload favicon.svg to your site root, add the code below to the head of your pages, and look at the icon at its real size in a few browsers. A favicon.ico or PNG set is a separate step if you need one.

What to check on a traced favicon

Background and corners
On the sample, Basic drew a full-canvas teal square and a white frame over its corners. Delete the frame, replace the square with one rounded rectangle, and the tile has real transparent corners. Without this, a dark tab strip shows a white box.
Small-size legibility
At 16 px the sample is a ring on a tile with a dot of about 2 to 3 px: still readable, but the teal gap between the ring and the dot is under 2 px and blurs. Keep to two or three shapes and make them thick.
Extra edge shapes
Anti-aliased edges left one pale teal sliver (#1E848D) in the trace. It is invisible at 32 px, but delete it so the file holds only your real colours; the cleaned favicon.svg below has it removed.
Traced letters are shapes
A letter in your image becomes filled paths, not a font. That is fine for a favicon, but a single letter should be bold and at least about a third of the icon height to survive 16 px.

SVG favicon facts

What this page does, what it does not, and what browsers do with the file.

Output
An SVG file only, not a .ico file or a PNG icon set. For PNG sizes, open the SVG in the free SVG to PNG converter, which exports the cleaned sample at 16, 32, 48 and 180 px, each with transparent corners.
Upload and price
Basic SVG runs in your browser, is free and never uploads the image. Advanced SVG sends the image to our conversion service and costs 1 credit, charged only when the file is delivered; a failed conversion is not charged. Downloads are free.
Browser support
SVG favicons work in Chrome and Edge 80+, Firefox 41+, Opera 67+ and Samsung Internet 13+, and in Safari (macOS and iOS) from 26.0. Safari 18.7 and earlier, and Internet Explorer, do not support them, so keep an .ico or PNG fallback for those. Checked Nov 30, 2026.
Dark mode
An SVG can switch colours with a prefers-color-scheme media query inside its own style tag. It works in Firefox and Chromium-based browsers; Safari may ignore it (see the dark-mode section).

The HTML for an SVG favicon

Put these in the head of every page, with favicon.svg at your site root.

Minimum: SVG only
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
With fallbacks for browsers without SVG favicons
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"> <!-- 180x180 PNG -->

When several rel="icon" links are present, the browser picks the most suitable by type and sizes, and falls back to the next if the first is unusable. Use sizes="32x32" on the .ico link: it stops Chrome choosing the .ico over the SVG (sizes="any" is also in use, but Chrome may then download both). iOS ignores rel="icon" and uses apple-touch-icon.

What the trace looks like at 16, 32 and 48 px

The sample icon at real favicon sizes, as exported and after cleanup, on a light and a dark tab colour.

The traced icon on a dark background with white corners, then the cleaned favicon on a light and a dark background, each at 16, 32, 48 and 180 px
Left: the trace as exported, with white corners on a dark tab. Middle and right: favicon.svg after cleanup, on a light and a dark tab. At 16 px (the smallest icon in each strip) the ring and dot are still distinct, and the orange dot is about 2 to 3 px wide. Tabs look different in every browser, so check yours.

Download the cleaned favicon.svg (2,475 bytes) and compare it with the Basic trace above.

A dark-mode SVG favicon

A mark with a dark ink colour can disappear on a dark tab strip. A style block inside the SVG can swap the colour.

mark-adaptive.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
  <style>
    .ring { stroke: #0E7C86; }
    @media (prefers-color-scheme: dark) { .ring { stroke: #7FE3EC; } }
  </style>
  <circle class="ring" cx="16" cy="16" r="11" fill="none" stroke-width="5"/>
  <circle cx="16" cy="16" r="4" fill="#FD8B28"/>
</svg>
A ring icon with a fixed dark teal ring on a dark background, then the same icon with a lighter ring in dark scheme and the original ring in light scheme
A hand-written ring icon, not a trace. Left: a fixed dark teal ring on a dark tab. Middle: the same icon in dark scheme, with a lighter ring. Right: the original ring in light scheme. The fixed teal ring has a 3.3:1 contrast ratio against a #202124 dark tab; the lighter #7FE3EC ring has 10.8:1.

The query follows the colour scheme of the operating system or browser, not the colour of the tab, so pick colours that stay visible on both. Browsers differ: Firefox and Chromium-based browsers apply it, while Safari may show only the default colours. Treat the default (light) colours as the version everyone sees, and keep a PNG or .ico fallback.

Sources

Browser support and markup advice on this page, as read on Nov 30, 2026.

Basic SVG is free. Advanced SVG is 1 credit.

You pay only when you get the file. Need editable slides instead? Image to PowerPoint.

Credit pack No subscription

A few files a month · no subscription

$9.90one-time

  • Covers 15 Advanced SVGs, one at a time
  • Batch up to 10 SVGs as a .zip: 2 credits each, against 1 credit for a single SVG. A subscription batches at the single-file price.
  • $0.66 per credit
  • Credits last 12 months

Subscription

Regular decks, every month

$19.90/ month

Billed monthly

  • Covers 50 Advanced SVGs every month
  • Batch up to 10 SVGs as a .zip at the single-file price: 1 credit each.
  • $0.40 per credit
  • Each month’s credits last 90 days

Prices in USD. Optional AI Clean-up is 1 credit. Free Advanced conversions: 1 per device without an account (once it is used, log in), 1 more with a Google login. Email-only accounts pay 1 credit. Cancel or change plans anytime in Credits & billing.

Secure checkout by Stripe

Questions

Anything else? Email us.

Can I use an SVG as a favicon?

Yes. Link it with <link rel="icon" type="image/svg+xml" href="/favicon.svg">. Chrome and Edge 80+, Firefox 41+ and Safari 26+ support it; Safari 18.7 and earlier and Internet Explorer do not, so add an .ico or PNG link as a fallback if you need them.

Does this make a favicon.ico file?

No. This page produces an SVG only. For PNG sizes such as 32 and 180 px, use the SVG to PNG converter; an .ico file needs a separate converter, which Unraster does not offer.

Do I still need a favicon.ico if I have an SVG favicon?

It depends on your audience. Common guides still list a small .ico or PNG fallback and a 180 px apple-touch-icon next to the SVG, mainly for browsers that lack SVG favicon support.

How do I make a favicon from a PNG or JPG?

Trace it to SVG here with Basic (free, in your browser), delete the background shapes in an editor, crop the viewBox to the artwork, save it as favicon.svg and add the link tag. Start from a bold, square image: thin lines and small text do not survive 16 px.

What size should the source image be?

The SVG scales to any size, but the original should be square and at least 512 px so the trace has clean edges. Judge the result at 16, 32 and 48 px, where tabs and bookmarks use it, and export a 180 px PNG for the touch icon.

Why does my traced favicon have a white square behind it?

Basic traces the whole image, including a white page, so the page can come back as a shape of its own. In the sample, a full-canvas square plus a white corner frame appeared. Delete the frame and replace the square with a rounded rectangle.

Can an SVG favicon change colour in dark mode?

Yes, by adding a prefers-color-scheme: dark media query to a style block inside the SVG. Firefox and Chromium-based browsers apply it; Safari may not, so keep the default colours readable on both light and dark tabs.

My new favicon does not show. What should I check?

Browsers cache favicons aggressively, so open the page in a private window or clear the site data first. Then check that the file loads at its URL, is served as image/svg+xml, and that the link is in the head of the page.

Is my image uploaded, and what does it cost?

Basic SVG is free and runs in your browser, so the image is not uploaded. Advanced SVG costs 1 credit, charged only when delivered; guests get one free Advanced conversion per device, then one more after signing in with Google, or two when signing in with Google directly. Failed conversions are not charged.

Turn your icon into an SVG favicon that stays sharp.

Or drop one PNG, JPG or WebP anywhere on this page.

My files

Pick up where you left off. Saved on this browser.

A fresh canvas awaits.

Images you convert will appear here.

Clearing browser data removes this history.