Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The image shown in a browser tab is called a favicon. Add a <link rel='icon'> element inside your document’s <head>, and point href to an image that your deployed site can serve:

<head>
  <meta charset='utf-8'>
  <title>Example site</title>
  <link rel='icon' href='/favicon.ico'>
</head>

The path must resolve to the actual image URL. You can declare PNG and SVG files explicitly, provide different sizes, and add separate icons for iOS home-screen bookmarks or an installable progressive web app.

1. Add the basic favicon link

Put the favicon link in the page’s <head>, not in the body. The rel='icon' value tells the browser that the linked image is the page icon used in browser UI such as tabs and bookmarks.

<!doctype html>
<html lang='en'>
<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1'>
  <title>Example site</title>
  <link rel='icon' href='/favicon.ico'>
</head>
<body>
  <h1>Welcome</h1>
</body>
</html>

A root-relative path such as /favicon.ico starts at the domain root. If the file is in a subdirectory, use that path instead, for example /assets/favicon.ico. The browser must be able to fetch the URL from the deployed site; a file that exists only on your development computer cannot appear to visitors.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

2. Choose an image format

ICO, PNG and SVG can all be declared with rel='icon'. Use the format that matches your asset pipeline, and state the format and dimensions when you publish more than one file.

Format Example declaration When it is useful
ICO <link rel='icon' href='/favicon.ico'> A straightforward single-file favicon and the canonical minimal example.
PNG <link rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png'> A raster icon when you have a specific pixel size.
SVG <link rel='icon' type='image/svg+xml' href='/favicon.svg'> A scalable vector asset that can be declared explicitly.

Keep the artwork recognizable at the small size used in a tab. If your source contains fine detail or text, inspect the actual 16–32 pixel rendering rather than relying on a large preview.

3. Declare several sizes or formats

You may include multiple rel='icon' links. Browsers use the media, type and sizes attributes to select the most appropriate candidate. If candidates are equally appropriate, the last matching link is used.

<link rel='icon' type='image/png' sizes='32x32' href='/favicon-32x32.png'>
<link rel='icon' type='image/png' sizes='16x16' href='/favicon-16x16.png'>
<link rel='icon' type='image/svg+xml' href='/favicon.svg'>

Use the dimensions that are true for each file. Do not label a 16-pixel image as 32×32. If you add a media condition, it becomes another input the browser can use when choosing an icon:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
<link rel='icon' media='(prefers-color-scheme: light)' href='/favicon-light.svg'>
<link rel='icon' media='(prefers-color-scheme: dark)' href='/favicon-dark.svg'>

When a single icon is sufficient, the one-line ICO or PNG declaration is easier to maintain. Multiple declarations are worthwhile when you actually ship different formats, dimensions or media variants.

4. Put the asset where production can serve it

  1. Create the image files. Name them consistently, such as favicon.ico, favicon-16x16.png and favicon-32x32.png.
  2. Copy them into the deployed site. A root-relative link expects the file at the corresponding location on the live host.
  3. Add the link to the shared head template. If your site has many pages, put the declaration in the common layout so every document receives it.
  4. Open the exact image URL. For example, visit https://your-domain.example/favicon-32x32.png directly and confirm that the intended image loads.
  5. Inspect the rendered HTML. View the deployed page source or DOM and verify that the link is inside <head> and that its href matches the live file location.

An image URL that works in a local preview but not on the deployed host will produce an empty or old tab icon. Check the final, public URL rather than only your project folder.

5. Add an iOS home-screen icon separately

iOS does not use the ordinary rel='icon' and sizes selection for a Web Clip. Add an apple-touch-icon link for a site saved to an iPhone or iPad home screen:

<link rel='apple-touch-icon' sizes='180x180' href='/apple-touch-icon-180x180.png'>

Apple also documents a site-wide PNG named apple-touch-icon.png in the root document folder. This relation is separate from the favicon declaration, so keep both when you want browser-tab and iOS home-screen coverage.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

6. Add icons for an installable PWA

An installable progressive web app has another icon mechanism: a web app manifest. Link the manifest from the document head:

<link rel='manifest' href='/app.webmanifest'>

The manifest can contain icon objects with src, sizes, type and purpose. Those entries provide the metadata a browser needs when installing the PWA, including its name and icon. A manifest does not replace the ordinary tab favicon link; use the mechanism appropriate to the context you are supporting.

7. Framework and CMS checks

Whether you use static HTML, a server-side template or a component framework, the result in the browser is the same: a valid <link rel='icon'> in the rendered head and a fetchable image URL.

  • Place the tag in the framework’s document or layout head rather than inside page content.
  • Use the path format expected by your deployment. A leading slash points to the domain root; a relative path is resolved from the current document URL.
  • Make sure the asset is copied by the build and deployment process. A source file that is excluded from the output directory cannot be fetched.
  • If a CMS offers a “site icon” field, inspect the generated HTML after saving. Confirm that it produced a real icon link and the expected public URL.

8. Troubleshoot a favicon that is missing or outdated

The icon never appears

  • Confirm that the link is in <head>, not below </body>.
  • Paste the href URL into a new browser tab. If it does not return the image, fix the path or deployment first.
  • Check spelling, capitalization and directory names. URLs can be case-sensitive on the production server.
  • For several candidates, add accurate type and sizes attributes so the browser can evaluate them.

The browser shows the old icon

Browsers can retain favicons in their cache after you replace a file. Test the deployed page in a fresh private window or another browser. If the new image appears there, clear the site’s cached data in the affected browser and reload. Keep the same URL when possible; changing the filename can make it easier to distinguish a new asset during troubleshooting.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Only some pages show the icon

Inspect a page that is missing it. Its head may come from a different template, or its relative path may resolve to a different directory. A root-relative path such as /favicon.png avoids that directory-dependent behavior when the asset is stored at the site root.

The wrong candidate is selected

Review the order and attributes of every rel='icon' link. The browser compares media, type and sizes; when two links are equally suitable, the later one wins. Remove stale declarations or move the intended fallback to the final position.

9. Verify the deployed result automatically

A screenshot of the live page is useful when you need to confirm what a visitor sees after deployment, especially when a cookie banner, popup or responsive layout could obscure the page. ScreenshotNeo is a website screenshot API and MCP server; it does not add a favicon to your HTML, but it can capture the deployed URL so you can inspect the tab-page result as part of a release check.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo accepts one GET request and returns a PNG, JPEG, WebP or PDF. Before the capture, it accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing, and the response identifies the page verdict and billing result in X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info and capture_pdf tools for Claude, Cursor and other MCP clients.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

See the ScreenshotNeo API documentation for all options, including full-page capture, lazy-image loading, CSS-selector element capture, dark mode, device presets, custom viewports, retina scale, PDF paper and margin controls, custom CSS and JavaScript, clicks, selector waits, delays, network-idle waits, request and resource blocking, headers, cookies, user agents, Authorization, timezone, geolocation, transparent backgrounds, resizing, cache TTLs, signed image links, asynchronous webhooks, bulk capture of up to 100 URLs per call, usage data and the OpenAPI specification. Existing parameter names used by other screenshot APIs also work, which can simplify migration.

cURL

curl -G 'https://api.screenshotneo.com/v1/shot' -d access_key=YOUR_API_KEY --data-urlencode url=https://your-domain.example -o page.webp

Python

import requests

r = requests.get(
    'https://api.screenshotneo.com/v1/shot',
    params={'access_key': 'YOUR_API_KEY', 'url': 'https://your-domain.example'},
    timeout=90,
)
r.raise_for_status()
open('page.webp', 'wb').write(r.content)

Node.js

const q = new URLSearchParams({
  access_key: 'YOUR_API_KEY',
  url: 'https://your-domain.example'
});
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`Screenshot failed: ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('page.webp', Buffer.from(await res.arrayBuffer()));

ScreenshotNeo has a free plan with 1,000 shots per month and no card required. Paid plans are $5 for 3,000 shots (Starter), $15 for 15,000 (Growth), $39 for 60,000 (Pro), $99 for 250,000 (Scale) and $249 for 1,000,000 (Business); yearly billing gives two months free, and every feature is included on every plan. Start at ScreenshotNeo, then sign up free for 1,000 screenshots a month with no card.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Frequently Asked Questions

Can the favicon link use a full URL instead of a root-relative path?

Yes. The href may be a public absolute URL or a root-relative path. Whichever form you use, the deployed browser must be able to fetch the image at that URL.

Do I need both a favicon and a web app manifest icon?

Use a favicon for ordinary browser tabs and bookmarks. Add manifest icons when your site is an installable PWA; they serve the installation context rather than replacing the tab declaration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why does changing the image file not change the tab immediately?

Favicons are commonly cached. Check the new deployment in a private window or another browser, then clear the affected site’s cached data if the old image remains.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.