Recommended WordPress Logo Sizes: What Actually Determines the Right Dimensions
WordPress has no single required logo size. Your theme sets the logo area. Here is how to find it, size the file for sharp display, and prepare it from vector artwork.
Contents
The short answer
WordPress itself does not set one universal logo size. Your active theme decides the space the logo fills and whether WordPress crops your upload. The right logo size is therefore the size your theme expects. Upload a file large enough to stay sharp on high-density screens, and keep the original artwork in vector form so you can export new sizes when you need them.
No theme-specific measurements were supplied for this article. It does not give pixel dimensions for any particular theme. It explains where those dimensions come from and how to find them for your site.
Which logo this means
In WordPress, "logo" usually means the site logo shown in the header. Classic themes manage it through the Customizer's Site Identity panel. Block themes manage it through the Site Logo block in the Site Editor. It is a different asset from the Site Icon, the small square image used for browser tabs and app shortcuts. The Customizer asks for a Site Icon that is square and at least 512 by 512 pixels. The header logo has no fixed shape, and its proportions depend on the theme.
Where the dimensions come from
Classic themes declare logo support in code. The declaration can give a target height and width, and it can say whether either dimension is flexible. If both are fixed, the Customizer asks you to crop your upload to that shape. If they are flexible, you can skip cropping or crop freely, and the theme's stylesheet controls the displayed size.
add_theme_support( 'custom-logo', array(
'height' => 100,
'width' => 400,
'flex-height' => true,
'flex-width' => true,
) );
The values above illustrate the format only. They are not a recommendation, and every theme uses its own values. To find yours, check the theme's documentation or look for 'custom-logo' in its functions file. The crop prompt in the Customizer also shows the expected shape when the theme sets one.
Block themes work differently. You place the Site Logo block in a header template part and set its display width in the block settings. The size of the uploaded file still matters, but the editor setting controls how large the logo appears.
Sizing the file for sharp display
First find the largest width or height at which the logo will display. Then upload a raster file larger than that, often around twice that size. This keeps edges crisp on high-density screens, where one CSS pixel covers several device pixels. A file much larger than this adds weight without visible benefit, because the browser scales it down anyway.
- Find the logo area's displayed size in your theme or block settings, including its size on mobile layouts.
- Export the raster version at a multiple of that size so it stays sharp on high-density screens.
- Keep the transparent background if the logo sits on a colored or changing header.
- Check the result at small widths, where thin strokes and small lettering stop being readable first.
Vector artwork versus what WordPress displays
A vector master file, such as an AI, EPS, PDF or SVG source, can be exported to any pixel size without losing quality. Core WordPress blocks SVG uploads by default, because SVG files can contain scripts. Most sites therefore show a PNG or similar raster file exported from the vector master. Using SVG on the site requires a plugin or theme feature that allows it, ideally one that sanitizes the file.
Do not judge a file only by its extension. An SVG or EPS can contain an embedded raster image rather than editable paths. A small preview thumbnail can also stand in for the real artwork. Open the file in a vector editor and confirm that the logo is made of paths before you treat it as a scalable master.
Gaps in this guidance
Without your theme name or the logo's proportions, this article cannot give exact pixel targets. A wide wordmark and a square emblem need different shapes in the same header. The dependable route is the one above: read the size your theme declares or displays, export a high-density raster from vector artwork, and test it on mobile and desktop.