Fix Stretched SharePoint Logo in Compact or Standard Header Layouts
Question details
The user needs to fix an issue where the SharePoint site logo appears stretched out of proportion when using the Compact or Standard header layouts.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Customizing the site header layout and uploading a site logo.
- Observed behavior
- The uploaded site logo renders stretched in Compact and Standard layouts, but displays correctly in Minimal and Extended layouts across multiple devices and networks.
Ensure you have Site Owner permissions to modify header settings, or Microsoft 365 Administrator access if you need to escalate the issue to a support ticket.
Troubleshoot Logo Dimensions and Display Settings
Rule out local browser caching, image file issues, or layout rendering glitches before escalating the issue.
SharePoint dynamically scales images based on the chosen header layout. If the image's original aspect ratio severely conflicts with the Compact or Standard header container constraints, it may stretch. Testing different variables helps isolate whether it is a file issue or a platform bug.
Check the aspect ratio and resolution of your uploaded image. SharePoint generally works best with square logos (e.g., 64x64 pixels) for standard headers.
Go to Settings > Change the look > Header, and upload a completely different logo temporarily. Save the changes to see if the new image also stretches.
View the SharePoint site in an incognito or private browsing window, or try a different web browser to ensure you are not seeing a cached version of the stretched logo.
In the Header settings pane, click through Minimal, Extended, Compact, and Standard layouts. Click Save after selecting a different layout, then revert back to Standard or Compact to force a rendering refresh.

Submit a Microsoft 365 Support Request
If the logo stretching persists across all devices, browsers, and images, it is likely a backend SharePoint service or CSS rendering issue that requires Microsoft support.
Looking for a Hassle-Free Office Suite? Try WPS Office
While resolving Microsoft 365 and SharePoint rendering glitches can take time, managing your daily documents shouldn't be a struggle. WPS Office is a fast, highly compatible, and free alternative to Microsoft Office that streamlines your productivity workflow.
- 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Open the downloaded installer file and follow the quick on-screen prompts to set up the software.
- 3. Open your files: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office documents with perfect formatting preservation.

Frequently Asked Questions
What are the recommended logo dimensions for SharePoint headers?
SharePoint generally recommends using a square image (such as 64x64 pixels) for Compact and Standard headers. For Extended headers, a rectangular image with a transparent background is often preferred. Keeping the file size under 10MB is also required.
Why does the SharePoint logo only stretch in certain layouts?
Different header layouts apply different CSS constraints to the image container. Compact and Standard layouts have specific height restrictions that might conflict with an image's natural aspect ratio, forcing it to stretch to fill the container if there is a rendering bug in the platform.
Can I use custom CSS to fix the stretched logo in SharePoint Online?
Modern SharePoint Online restricts custom CSS injection on standard communication and team sites to ensure responsive design stability. If the out-of-the-box layout settings stretch the logo, it must be resolved through layout toggling, image resizing, or an official Microsoft support ticket.




