Skip to content

Install generated favicon packages by URL

Published

On 2026-11-18, Favicon.now published an installation procedure for the icon package produced by a favicon generator. The procedure puts files at public URLs, copies the generator’s declarations into the document head, checks icon paths inside the web app manifest, and fetches the deployed resources before judging the browser UI (Favicon.now).

Impact of missing icon files on deployment

Section titled “Impact of missing icon files on deployment”

A generated package can contain an ICO file, PNG files at several sizes, an SVG favicon, an Apple touch icon, maskable artwork, a web app manifest, and an HTML snippet. The exact set depends on the generator. Installing one file while leaving the snippet and manifest pointed at others creates requests that cannot return the intended artwork (Favicon.now).

The report describes two layouts: files at the site root or files in a dedicated directory such as /icons/. Both require the HTML and manifest paths to match the deployed locations. It also recommends keeping /favicon.ico at the root as a fallback when the rest of the set lives in a directory (Favicon.now).

HTML icon declarations use the icon link type and an href; sizes and type can help a browser select among resources. MDN says browsers choose the most appropriate icon from multiple declarations and may fetch another when the selected resource is inappropriate. Verify each retained declaration because the browser can select from them (MDN link types).

Manifest icon entries have their own src, sizes, type, and purpose members. MDN says src is required and resolves relative to the manifest URL. Moving manifest.webmanifest while keeping relative icon paths unchanged can therefore change the requested icon locations (MDN manifest icons).

Maskable artwork needs safe space around important content because an operating system can apply an icon mask. web.dev’s maskable icon guidance shows that content outside the safe zone can be cropped and recommends testing the result with a maskable-icon tool (web.dev maskable icons).

Google Search has a separate favicon pipeline. Its documentation requires one favicon per hostname, allows a favicon URL to stay stable, and says crawling can take from a few days to a few weeks. A deployed icon appearing in a browser tab does not establish when Google Search will show it (Google Search Central).

Inventory the package before copying files

Section titled “Inventory the package before copying files”

Unpack the generator output in a staging directory and list the files referenced by its HTML snippet and manifest. Preserve the filenames unless you also edit all declarations. The source warns against leaving a second, older icon set under different names because caches, bookmarks, or crawlers can continue to request the old paths (Favicon.now).

Choose a public location served without authentication. The report explains that browsers, crawlers, and home-screen consumers request these resources outside the application’s front-end router and can do so without its cookies. A private build directory or temporary deployment URL does not satisfy those requests (Favicon.now).

A root installation can use declarations like these when the generated files have the matching names (Favicon.now, MDN link types).

<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">
<link rel="manifest" href="/manifest.webmanifest">

The manifest can then use root-relative URLs so moving the manifest does not silently rebase them (MDN manifest icons).

{
"name": "Example application",
"icons": [
{
"src": "/icons/app-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icons/app-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}

MDN defines purpose: "any" as an icon usable in any context and purpose: "maskable" as artwork designed with masks and the safe zone in mind. The sizes above illustrate a declaration shape. Use the sizes and files actually produced by the generator; empty placeholders do not represent those resources (MDN manifest icons).

Place the link elements in the shared document head so production pages emit them. View the served source after deployment; a local template edit does not prove that a build, content management system, or theme retained the tags. The source explicitly calls for inspecting a published page (Favicon.now).

Verify responses before inspecting browser chrome

Section titled “Verify responses before inspecting browser chrome”

Check status and media type for the declared resources. This loop fails on HTTP errors, stores headers, and prints the final status plus Content-Type for each URL (Favicon.now).

Terminal window
site_origin="https://example.com"
work_dir="$(mktemp -d)"
for path in \
/favicon.ico \
/favicon.svg \
/apple-touch-icon.png \
/manifest.webmanifest \
/icons/app-192.png \
/icons/app-512-maskable.png
do
key="$(printf '%s' "$path" | tr '/.' '__')"
headers="$work_dir/$key.headers"
curl --fail-with-body --silent --show-error \
--dump-header "$headers" --output "$work_dir/$key.body" \
"$site_origin$path"
awk -v path="$path" '/^HTTP\// { code=$2 } END { print path, "status=" code }' "$headers"
awk -v path="$path" 'tolower($0) ~ /^content-type:/ { print path, $0 }' "$headers"
done
printf 'responses=%s\n' "$work_dir"

The expected illustrative observations are successful statuses, image media types for the icon files, and a manifest media type for the manifest. A response body containing an HTML error page is not a valid icon even if a front-end router returned status 200. Inspect the saved bodies when the media type does not match the file you requested (Favicon.now).

Parse the manifest as JSON and print each declared field (MDN manifest icons).

Terminal window
manifest_url="https://example.com/manifest.webmanifest"
manifest_file="$(mktemp)"
curl --fail-with-body --silent --show-error \
--output "$manifest_file" "$manifest_url"
python3 -m json.tool "$manifest_file" >/dev/null
python3 - "$manifest_file" <<'PY'
import json, sys
manifest = json.load(open(sys.argv[1], encoding="utf-8"))
for icon in manifest.get("icons", []):
print(icon.get("src"), icon.get("sizes"), icon.get("type"), icon.get("purpose"))
PY

The expected illustrative output lists the same paths, sizes, media types, and purposes as the deployed files. If parsing fails, repair the manifest JSON before testing installation. If a printed path differs from the copied file, change either the deployment path or src, deploy again, and rerun both checks (MDN manifest icons).

Relative src values need one extra check because they resolve from the manifest URL. Open each resolved URL directly. Converting a package to root-relative icon paths can make this relationship explicit, but preserve any path layout required by the application (MDN manifest icons).

Inspect each consuming surface with fresh state

Section titled “Inspect each consuming surface with fresh state”

After response checks pass, open a newly launched private browser window and visit the deployed page. Confirm the page source has the declarations, then inspect the tab icon. The source recommends a hard refresh, private window, or different browser because favicon caches can preserve an earlier image (Favicon.now).

For a home-screen check, remove an existing shortcut before adding the site again. The report calls out saved Apple touch icons on iOS as persistent and advises a fresh add. Record the device, operating-system version, browser version, chosen icon, and visible crop so that the result can be traced to a specific test environment (Favicon.now).

Inspect maskable artwork under more than one mask. The important mark must stay inside the safe area described by web.dev. If it is cropped, regenerate the maskable file with more padding and keep the ordinary icon as a separate purpose: "any" entry (web.dev maskable icons, MDN manifest icons).

For Google Search, keep the favicon URL crawlable and stable, make sure the home page links to it, and wait for recrawling after a correction. Google says a favicon is not guaranteed to appear even when its guidelines are met and that recrawling can take days to weeks. Repeated local refreshes cannot accelerate that process (Google Search Central).

If the tab shows the old icon while direct URLs return the new files, repeat in a fresh browser profile before renaming production files. If the manifest icon is missing, resolve its src entries against the manifest URL and fetch them. If a home-screen icon is cropped, replace the maskable artwork; changing only its declared purpose leaves the artwork unchanged. If Search shows a generic mark, verify Google’s documented requirements and leave the stable URL available for recrawl (Favicon.now, MDN manifest icons, web.dev maskable icons, Google Search Central).

Do not use a query-string cache buster as the final configuration without checking the consumer’s rules. The source suggests a temporary query string during diagnosis and says to remove it afterward. Google separately recommends a stable favicon URL (Favicon.now, Google Search Central).

Whether the command results reproduce on a particular deployment remains unverified. Apply the checks to the actual icon URLs, then record the visual tab, home-screen, and Search observations separately (Favicon.now).

  • Capabilities: follow this entry for the capability catalog and support records.
  • Performance: follow this entry for image delivery and loading performance topics.
  • Storage: follow this entry for browser storage and cache references.

The report says package contents vary by generator (Favicon.now).

Whether a deployed icon has replaced an earlier cached favicon on every browser profile and bookmark, and how long replacement takes across browsers, remains unverified until those stored states are tested (Favicon.now).

Whether Google Search will display an eligible favicon remains unverified even after the technical requirements pass. Google explicitly says appearance is not guaranteed (Google Search Central).

Whether the sample maskable artwork stays legible under a particular operating system’s mask remains unverified until that generated file is previewed or installed. The safe zone constrains the artwork, while the manifest declaration alone cannot prove the pixels satisfy it (web.dev maskable icons).