How to Add a Favicon in WordPress

WordPress calls it a Site Icon and handles every size for you. Here's the 60-second walkthrough.

3 min read

Check favicons on any website

Install the FetchFavicon Chrome Extension to extract, preview, and validate favicons instantly.

Install Chrome Extension

Via the Customizer

Appearance → Customize → Site Identity → Site Icon. Upload a square 512×512+ PNG and click Publish.

Via your theme

For custom control, override get_site_icon_url() in functions.php. Useful when you want different icons per site section.

Why isn't my favicon updating?

Browsers cache favicons aggressively. Hard-refresh, or append ?v=2 to the favicon URL once to bust the cache.

Platform Dimension Specifications & Compression Benchmark

Standard dimension requirements across search engines, mobile OS, and WebAssembly Oxipng lossless byte reduction.

WebAssembly Oxipng Lossless
Platform Dimension Specifications & Compression Benchmark
Target Platform / OSRequired DimensionsFormat & DeliveryOxipng Wasm WeightByte Savings
Google Search SERP48×48 px (multiples of 48).ico, .png4.6 KB-68.9%
Apple iOS / iPadOS Safari180×180 px.png (apple-touch-icon)14.8 KB-67.9%
Android Chrome & PWA192×192 px & 512×512 px.png (site.webmanifest)59.1 KB-69.3%
Windows Edge & Desktop16×16, 32×32, 48×48 pxMulti-resolution .ico8.8 KB-69.5%
Legacy Web Browsers32×32 px / 16×16 px.ico (/favicon.ico)3.1 KB-67.0%

* Benchmark measurements based on lossless RGBA Oxipng WebAssembly compression executing locally in modern web browsers.

FAQ

How do I add a favicon in WordPress without code?

Go to Appearance → Customize → Site Identity → Site Icon. Upload a square 512×512+ PNG and click Publish.

What favicon size does WordPress require?

WordPress asks for at least 512×512 pixels. It auto-generates smaller sizes from your upload.

Why is my WordPress favicon not updating?

Browsers cache favicons heavily. Hard-refresh or append ?v=2 to the favicon URL once after uploading a new icon.

Related guides

Try the tools

Continue reading