Guides · Design & file formats
Using transparent PNGs in Shopify themes, email signatures, and web designs: practical pitfalls
What breaks when you drop a transparent logo or signature into a theme, an email, or a web page: PNG vs JPEG traps, background bleed from CSS, email client rendering differences, and how ImgCutout and the PNG creator fit the workflow.
By Jiang Li · Published · 11 min read
You have a transparent PNG of your logo or signature. You drop it into your Shopify header, your email signature, or a web page, and it looks wrong: a white box appears around it, or the background color bleeds through it, or it works in Gmail but breaks in Outlook. Transparency is simple in theory and surprisingly finicky in practice. This guide walks through the common traps and how to avoid them, with a focus on the three environments where most people encounter these issues: Shopify (and similar website builders), HTML email, and custom themes or templates.
The foundational mistake: using JPEG
The single most common reason a "transparent" logo shows a white box is that someone saved it as a JPEG. JPEG cannot store transparency. If you export a cutout as JPEG, the transparent areas are filled with a solid color—usually white, sometimes black, depending on the software. The file looks fine on a white web page, and then you place it on a dark header and the box appears.
Fix: Always save logos, signatures, icons, and any graphic that needs a transparent background as PNG or WEBP. PNG is universally supported; WEBP is more efficient but older email clients and some CMSs do not support it. PNG is the safe default.
To create a transparent PNG from a logo or signature, use the PNG creator. If you already have a cutout but it is in the wrong format, re-export it: most image tools and even macOS Preview let you open a file and "Export as PNG."
How to check: Open the file in Preview (Mac), Photos (Windows), or any image editor and look at the background. If it is a checkerboard pattern, it is transparent. If it is a solid color, it is not.
Shopify themes: CSS background colors and image upload slots
Shopify and similar platforms (Wix, Squarespace, Webflow) have two main places where transparent logos can go wrong: the theme's CSS background settings, and the image format the platform saves when you upload.
Problem 1: The theme section has a background color set
You upload a transparent PNG to your header section, and it still shows a white box. The transparency is intact, but the theme has a CSS background color applied to the `<div>` containing the logo image. The logo image itself is transparent, but the container it sits in is not.
How to diagnose: Right-click the logo in your browser and choose "Inspect" or "Inspect Element." Look at the styles panel for the parent element (usually a `<div class="header-logo">` or similar). If you see `background-color: #ffffff;` or `background: white;`, that is the culprit.
Fix: In your theme editor, find the section settings for the header and look for a "Background color" field. Set it to transparent, or remove the value, or (if the theme does not offer that option) edit the theme's CSS to remove or override the background color. Most modern Shopify themes expose this as a setting; older or heavily customized themes may require CSS changes.
Shopify-specific note: Some Shopify themes automatically add a white background to header sections for contrast against hero images. Check your theme's documentation or support forums for how to disable this.
Problem 2: Shopify converts your PNG to JPEG on upload
Some Shopify themes and apps have an "optimize images" feature that compresses uploads and converts them to JPEG to save bandwidth. If this happens, your transparent PNG becomes a JPEG with a white background, even though you uploaded the correct file.
How to diagnose: View the image URL in your browser's inspector. If it ends in `.jpg` or `?format=jpg`, the platform converted it.
Fix: In your Shopify admin, go to Settings → Files and check if "Image optimization" or similar is enabled. If so, disable it, or look for a setting that says "Preserve transparency" or "Do not convert PNG to JPG." Then re-upload your logo.
If your theme does not offer this control, upload the logo as an asset file (in the theme's file editor under Assets) rather than through the visual section editor. Asset files are usually not auto-optimized.
Problem 3: Theme preview versus published site
Your logo looks correct in the theme editor preview but shows a white box on the published site (or vice versa). This usually means one version is cached, or the preview is using a different asset pipeline than the live site.
Fix: Clear your browser cache and hard-refresh (Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac). If that does not work, re-upload the logo, wait a few minutes for the CDN to propagate, and check again.
Email signatures and HTML email: client-specific rendering nightmares
HTML email is where transparent PNGs encounter the most inconsistent behavior, because email clients (Gmail, Outlook, Apple Mail, Yahoo, mobile apps) all render HTML differently, and some apply their own background colors or strip certain CSS properties.
Problem 1: Dark mode inverts or replaces transparency
Outlook and Apple Mail in dark mode sometimes replace transparent areas of a PNG with black or dark gray, on the assumption that a transparent image was designed for a white background. Your logo, which looked fine in light mode, becomes a dark logo on a dark background and is unreadable.
Fix: There is no universal fix because dark mode behavior is client-controlled, but two workarounds help:
- Add a CSS media query in your email signature HTML to swap the logo image for a light-colored version when dark mode is detected. Example:
```html <img src="logo-dark.png" alt="Logo" class="logo-light" /> <style> @media (prefers-color-scheme: dark) { .logo-light { content: url('logo-light.png'); } } </style> ```
Not all email clients support `prefers-color-scheme`, so this is a partial solution. Gmail on mobile and Outlook on the web do not support it; Apple Mail and Outlook desktop do.
- Use a logo with a thin border or drop shadow so it remains visible on both light and dark backgrounds. This is a design compromise but is the most reliable fix for email.
Problem 2: Gmail Web removes CSS backgrounds and adds its own
If your email signature has a colored background (via CSS `background-color` on a table cell or div), Gmail's web interface strips it and replaces it with white or light gray. Your transparent logo, which looked good on your intended background, now sits on an unexpected color.
Fix: Use an image for the background instead of CSS. Place a background image behind your signature content, or include the background color in the signature image itself. CSS backgrounds in email are not reliable.
Problem 3: Outlook Desktop (Windows) renders PNGs poorly
Outlook on Windows (the desktop app, not Outlook.com) uses Microsoft Word's rendering engine for HTML email, which has notoriously poor PNG transparency support. Transparent edges can appear jagged, and semi-transparent pixels (such as shadows or anti-aliasing) may render as opaque or with artifacts.
Fix:
- Use a logo with hard edges rather than soft drop shadows or glows. Avoid semi-transparency in email signatures.
- Export your logo at 2× the display size (for example, if your signature shows it at 150px wide, export a 300px-wide PNG) and set the width explicitly in the HTML (`<img src="logo.png" width="150">`). Outlook scales it down and the higher resolution mitigates some of the rendering issues.
- If the logo is a wordmark or simple shape, consider using an SVG instead of a PNG. Some email clients (Apple Mail, Thunderbird) support inline SVG, though Outlook and Gmail do not. You would need a PNG fallback.
Problem 4: Signature looks different when copied and pasted
You create a signature in an email signature generator or a design tool, and it looks perfect. You paste it into your email client, send a test, and the logo is misaligned or the spacing is wrong.
This happens because copying and pasting HTML between applications often strips formatting. Email clients like Outlook and Gmail modify the HTML to fit their internal structure.
Fix: Do not copy-paste signatures between tools. If your email client supports it, create the signature in its native signature editor, or (for Outlook) use an `.htm` file. For Gmail, use a signature tool that gives you HTML code to paste directly into Gmail's signature HTML editor (not the rich-text editor).
Web themes and CSS: background bleed and container issues
When placing a transparent PNG into a website's theme (WordPress, Squarespace, a custom HTML/CSS site), two issues are common: the container's background bleeds through, and the image is stretched or cropped incorrectly.
Problem 1: CSS background on the parent element
Identical to the Shopify issue above: the `<div>` or `<section>` containing the image has a CSS background color or image, and the logo's transparent areas show it.
Fix: Inspect the element, find the parent container's CSS, and set `background: transparent;` or remove the background property. If the theme's visual editor does not expose this, you may need to add custom CSS.
Problem 2: Image is stretched or cropped
Your logo is a horizontal rectangle, but the theme's logo slot is square, so the logo is stretched vertically or cropped at the sides, and the transparency no longer aligns with the edges.
Fix: Check the theme's image slot dimensions (often documented in the theme's help docs or visible in the upload prompt, e.g., "Recommended size: 300 × 100 px"). Export your logo to match that size or aspect ratio. The PNG creator lets you choose a canvas size and padding.
Alternatively, edit the CSS to override the theme's image size constraints. For example, replace `width: 100%; height: auto;` with fixed dimensions or change `object-fit: cover;` to `object-fit: contain;`.
Problem 3: Retina / high-DPI displays show blurry logos
Your logo is 150 pixels wide and looks fine on a regular screen but blurry on a MacBook Retina display or a high-DPI phone.
Fix: Export the logo at 2× or 3× the display size (300px or 450px for a 150px-wide slot), then set the display size in HTML or CSS:
```html <img src="logo@2x.png" alt="Logo" width="150" height="50" /> ```
The browser scales it down, and the extra pixels make it crisp on high-DPI screens. Most modern CMSs and frameworks (including Shopify, WordPress, and Webflow) have built-in support for this via `srcset` attributes; check your theme's documentation.
Email client compatibility checklist
If you are embedding a transparent logo or signature in HTML email and need it to work across clients, test it in at least these environments before sending broadly:
- Gmail (web): strips most CSS, does not support web fonts, replaces certain image formats.
- Outlook Desktop (Windows): poor PNG rendering, Word-based HTML engine, strips many CSS properties.
- Apple Mail (macOS and iOS): best HTML support, handles transparency and CSS well, but applies dark mode changes.
- Yahoo Mail: inconsistent; sometimes removes backgrounds, sometimes keeps them.
- Outlook.com and Outlook mobile: better than Outlook Desktop but still limited compared to Apple Mail.
- Thunderbird: solid HTML support, similar to Apple Mail.
Use a tool like Litmus or Email on Acid for automated testing across clients, or send test emails to your own accounts in each client.
How the PNG creator and ImgCutout fit into this workflow
- [PNG creator](/png-creator): Use this to create a transparent PNG of a logo or signature from a photo or a JPG with a white box. It gives you a clean cutout with a transparent background, ready to export.
- [Background remover](/png-creator): Same tool, but also supports choosing a solid background color if you determine that transparency is causing too many problems in your environment. For example, if your Shopify theme's header always has a dark background and you cannot change it, export the logo with a matching dark background instead of transparency.
- Bulk tool: If you need the same logo in multiple sizes (for email, web, and print), use the bulk background remover to output all of them at once with consistent settings.
When to avoid transparency
Transparent images are not always the right choice:
- Email signatures for wide distribution: If you cannot control or predict the recipient's email client or dark mode setting, a logo with a subtle border or a very light background is more reliable than full transparency.
- Themes with unpredictable backgrounds: If a theme automatically changes the header background color based on user choices or page content, transparency can make your logo unreadable. Use a logo version designed for a mid-tone background, or include a background in the logo image itself.
- Very small logos or icons: At very small sizes (under 50 × 50 pixels), the anti-aliased edges of a transparent PNG can look muddy. A logo with a solid background or a vector SVG may look crisper.
Testing and troubleshooting workflow
When you add a transparent PNG to a site or email and it does not look right, follow this checklist:
- Verify the file is actually PNG. Check the file extension and open it in an image viewer to confirm the background is transparent (checkerboard pattern).
- Inspect the container CSS. Right-click the image, inspect element, and look for `background-color` on the parent element.
- Check for image optimization or conversion. Look at the served image's URL; if it was converted to JPG, the transparency is gone.
- Test on multiple devices and clients. Dark mode, mobile email apps, and high-DPI screens can all render the same file differently.
- Try exporting at 2× size. Many rendering issues are mitigated by higher-resolution images.
- Consider a non-transparent fallback. If transparency causes more problems than it solves in your environment, export with a solid background color matched to your theme.
Summary
Transparent PNGs are the correct format for logos, signatures, and graphics that need to sit on varied backgrounds. The most common mistakes are saving as JPEG (which strips transparency), placing the image in a container that has its own CSS background color, and encountering email client quirks (Outlook's poor rendering, Gmail's CSS stripping, dark mode inversions).
For Shopify and web themes, check both the file format and the container's CSS. For email signatures, test across clients and consider non-transparent alternatives if dark mode or Outlook Desktop are common in your audience. For high-DPI screens, export at 2× the display size. Tools like the PNG creator give you the transparent file; the integration work is about understanding how your platform and clients will render it.
Try it on your own photo
Free, no sign-up, and processed on your device. Nothing is uploaded.
Open the PNG creatorRelated guides
- How to make a transparent PNG of a logo or a handwritten signatureDesign & file formats
- PNG vs WEBP vs JPG for cutouts: which format keeps transparencyDesign & file formats
- Using transparent cutouts in Canva, Figma, Photoshop, PowerPoint, and CricutDesign & file formats
- Cutting out people and objects from screenshots and video framesDesign & file formats