Need a website that wins clients? Webteqno builds flat-price small business websites, live in 2–3 weeks. No retainer. Get a free quote →
Website guide

Website Header Logo Size: Resize Your Logo for Desktop, Mobile and Retina

The header logo is on every page of your site, so small mistakes multiply: a slightly blurry logo, a header that jumps as it loads, a mobile menu that crushes the name. This guide gives concrete display sizes, the export math for sharp screens, and platform-specific settings.

By Wamiq Hussain · Published · Updated · 4 min read

Website header with a horizontal logo on desktop and a smaller version on mobile

Short answer

Most website header logos display 40–80 px tall on desktop (roughly 150–300 px wide for a horizontal logo) and 32–48 px tall on mobile. Export an SVG if you have a vector, or a PNG/WebP at 2× the display size — for example 400 × 120 px for a logo shown at 200 × 60 — and always set width and height in the HTML so the header does not shift while loading.

Key takeaways

How big should a header logo be?

Header logos are best sized by height, because the header’s height is what you are designing around. These are common ranges we use for small-business sites:

ContextDisplay heightTypical width (3:1 logo)Export at 2×
Standard desktop header50–70 px150–210 px300–420 × 100–140
Tall/brand-led desktop header70–100 px210–300 px420–600 × 140–200
Compact / sticky header after scroll32–44 px96–132 pxSame file, scaled by CSS
Mobile header32–48 px96–144 pxSame file, scaled by CSS
Footer30–50 px90–150 pxOften the white version

Very wide logos (6:1 and wider) become thin at these heights. On mobile, a 6:1 logo at 40 px tall is 240 px wide and can collide with the menu button — consider a shorter lockup or the icon plus a shortened name.

The 2× rule for sharp logos

Phones and most modern laptops use high-density screens with 2 or 3 physical pixels per CSS pixel. A logo displayed at 200 × 60 CSS px is drawn with 400 × 120 or 600 × 180 physical pixels. If the file is only 200 × 60, it is enlarged and looks soft — the most common reason clients tell us their logo “looks blurry on my phone”.

Export at 2× and tell the browser the display size. 3× is rarely worth it for logos; the difference is hard to see and the file is heavier. An SVG is sharp at every density automatically — see PNG vs SVG for websites.

Diagram explaining that a 2x raster logo file has twice the pixel dimensions of its display size
File dimensions and display dimensions have different jobs: the file supplies pixels, the HTML sets the size.

Trim the padding before exporting

Many logo files include a wide transparent border — sometimes because they were exported from an artboard. When the theme sets the logo to 60 px tall, that 60 px includes the empty border, so the actual artwork may be only 40 px tall. Trim the canvas close to the artwork (a few pixels of margin is fine) and add spacing with CSS instead. The Logo Resizer lets you set padding to 0 and an exact canvas.

HTML that keeps the header fast and stable

<a href="/" class="site-logo" aria-label="Brightside Bakery home">
  <img src="/img/logo-400x120.png" width="200" height="60" alt="Brightside Bakery">
</a>

Transparent and sticky headers

Transparent headers sit on top of a hero image or video. Your normal dark logo may disappear on a dark photo, so themes often allow a second logo for the transparent state — upload a white version. If the hero image changes (sliders, different pages), test the logo on each.

Sticky headers shrink after scrolling. Scaling the same 2× file down with CSS is fine; just check the shrunken logo is still legible — around 32 px tall is the practical minimum for a wordmark.

Platform settings

WordPress

In classic themes: Appearance → Customize → Site Identity → Logo. WordPress shows a crop dialog — choose Skip cropping if your file is already trimmed and proportioned. Many themes add a “logo width/height” control in the header settings. In block themes: edit the header template part in the Site Editor and select the Site Logo block, which has a width setting. Uploading an SVG requires a sanitising plugin (see the SVG guide).

Squarespace

Upload the logo in the site header editor (Edit → header → Site title & logo), then adjust the logo height slider for desktop and mobile separately. Squarespace scales by height, so a file with transparent padding looks small — trim it first.

Wix

Add the logo as an image element in the header and resize it on the canvas; switch to the mobile editor to set a separate size. Upload a 2× PNG or an SVG (Wix supports SVG uploads as vector art).

Shopify

Covered in detail in our Shopify logo guide: upload at 2× the logo-width setting.

Checklist

Frequently asked questions

What size should a logo be on a website header?

Typically 50–70 px tall on desktop and 32–48 px tall on mobile, with the width following the logo’s proportions. Export the file at twice the display size, or use SVG.

Why is my website logo blurry on mobile?

Phones have high-density screens. If the logo file is exactly the display size, it gets enlarged. Upload a 2× version or an SVG.

What resolution should a website logo be?

Twice the size it is displayed at, for example 400 × 120 px for a logo shown at 200 × 60 px. Resolution in DPI does not matter for websites.

Why does my logo look small even though I set a large size?

The file probably contains empty transparent space around the artwork. Trim the canvas close to the logo.

Should I use SVG or PNG for my header logo?

SVG if you have a genuine vector logo; it is sharp everywhere and very small. Otherwise PNG or WebP at 2× display size.

Tools used in this guide

All tools run in your browser; your image files are not uploaded to our server.

Keep reading

Sources checked for this guide

Platform upload rules change. We re-check the sources above when we update a guide; if you spot something out of date, send a correction.

From the team behind these free tools

Your logo is sorted. Is your website bringing in clients?

These tools are built by Webteqno, a web design and SEO studio with 9+ years and 200+ websites behind it. We help US small businesses look credible and get found on Google and in AI search.

Serving small businesses, service firms and SBA-certified federal contractors across the US.