You upload a perfect PNG with a transparent background for your Apple Touch Icon. On desktop, it looks crisp. On your iPhone, Safari shows a white square around your logo. It looks like a sticker on a white piece of paper.

I've been there. It's frustrating because you did everything right — or so you thought. The fix is simpler than you'd expect, and it doesn't require redesigning your icon.

Quick Fix: Add the Correct HTML Tag

The most common reason your apple touch icon transparent background shows as a white square is that iOS Safari is falling back to a default icon. You're probably missing the rel='apple-touch-icon' tag, or you're using the wrong size.

Here's the exact HTML you need:

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

That's it. One line. The sizes='180x180' attribute tells iOS to use this specific file. Without it, Safari might ignore your icon and render a white placeholder.

Why 180x180?

Apple recommends 180x180 pixels for modern iPhones (iPhone 6s and later). Older devices fall back gracefully. If you're generating multiple sizes, read our Apple Touch Icon Sizes Guide — but honestly, 180x180 covers almost everything.

Root Cause: Why Transparency Breaks

Even with the correct HTML, you might still see a white background. Here are the three real culprits:

How to Verify Your PNG's Transparency

Open your icon in a browser. If you see a checkerboard pattern, your transparency is intact. If you see a solid white or gray background, your PNG has a problem. Re-export from your design tool with 'Transparency' checked.

Prevention Tips: Stop the White Square Forever

Once you fix it, you don't want it to break again. Here's my battle-tested approach:

Use SVG for Apple Touch Icons (Yes, It Works)

iOS 14+ supports SVG for Apple Touch Icons. SVG handles transparency natively — no white squares, no alpha channel issues. Here's the tag:

<link rel='apple-touch-icon' sizes='180x180' href='/apple-touch-icon.svg' type='image/svg+xml'>

I switched to SVG on my personal site six months ago. Zero issues. The only catch: older iOS versions (iOS 13 and below) ignore SVG. Keep a PNG fallback.

Cache-Busting: Rename Your File

Every time you update your icon, change the filename. Instead of apple-touch-icon.png, use apple-touch-icon-v2.png. This forces iOS to download the new file instead of serving the cached white-background version.

Test on a Real Device

Don't trust the simulator. Add your site to the iPhone home screen and check the icon. If it shows a white square, you'll know immediately. For a full checklist, see our Apple Touch Icon Complete Setup Guide.

What About the 'precomposed' Attribute?

You might see old tutorials recommending rel='apple-touch-icon-precomposed'. This was for iOS 6 and earlier, which added a glossy effect to icons. Modern iOS ignores it. Don't use it — it's dead weight.

The white square problem is almost always a missing tag, a cached old icon, or a non-transparent PNG. Fix those three things, and your icon will look native on every iPhone.