Image Formats • • By Umar

Why Is My PNG Black After Converting From SVG? (Fix)

A PNG that comes back black after converting from SVG looks like one problem. It is six — and each one needs a different fix. Start with the 30-second test, then fix the cause you actually have.

Why Is My PNG Black After Converting From SVG? (Fix)

The black can be baked into the file, dropped in by the converter, hiding in the SVG code, or invented by the program showing it to you — and each one needs a different fix. Re-exporting with another converter at random only fixes one of the six, which is why the same file can come back black three times in a row.

The 30-second test: is the black in the file or in the viewer?

Before changing any setting, drag the PNG into a Chrome tab. Chrome paints a light gray layer behind transparent areas when it opens an image file directly. Measured in Chrome 157 on Windows, that gray is RGB 230, 230, 230. If the area behind your subject is that light gray, the PNG is still transparent — the black is coming from another app, a conversion step, or the destination. If the area is solid black, RGB 0, 0, 0, the black is saved in the file itself, and the file needs to be re-exported or repaired.

A second check catches the same thing from a different angle. Open the PNG in an editor, put a white layer underneath it, then a bright blue one, and watch the area outside the subject. If the empty area changes color, the transparency is real. If a black rectangle stays attached on both backgrounds, the alpha channel is gone from that copy. Do not trust a dark preview on its own: a transparent image shows whatever sits behind it, so in a dark-themed app an empty area can look black though nothing is wrong with the file.

Cause 1: nothing is wrong with the file — the viewer or destination paints it black

If the Chrome test shows light gray, stop re-exporting. The file is fine; something downstream is drawing transparency over black. The same destination rules decide the background when the PNG is an app icon: our 512×512 app icon export guide sets out which destinations need an opaque background and which may keep transparency.

  • File Explorer thumbnails. In dark mode, Explorer draws thumbnails against its dark interface, so a transparent area can look black. Switch Windows to the light theme for a moment (Settings > Personalization > Colors) and look again. If the thumbnail is still wrong, the cache is stale: open Disk Cleanup, tick Thumbnails, and let Explorer rebuild the previews. Restarting Windows Explorer from Task Manager refreshes the display without a reboot.
  • Email, especially Outlook. Outlook on Windows uses Word's rendering engine for HTML email, which handles PNG transparency poorly, and in dark mode Outlook and Apple Mail sometimes replace transparent areas with black or dark gray. For a logo that has to survive email, bake white in on purpose.
  • Link previews, app icons, and messaging apps. Most preview renderers do not support transparency, so an Open Graph image with a transparent background commonly shows as a black card, and Apple pastes home-screen icons on black — export the 180-pixel icon with a solid fill. Chat and social platforms often recompress uploads to JPG, which has no transparency; a version flattened onto a matching solid color is the only form that survives those pipelines.

Cause 2: a background rectangle is baked into the SVG

An SVG has no background of its own. Transparency in an SVG is the absence of anything drawn, so when a logo arrives with a box behind it, that box is a shape — usually a rectangle the drawing program wrote to stand for the artboard, and usually the first shape in the file. It covers the whole canvas, so it bakes into every PNG no matter what the converter does.

Open the SVG in a text editor and search for <rect. A background rect typically sits near the top of the file, spans the full viewBox (width and height matching the viewBox numbers, or 100%), and carries a fill — black, white, or a brand color. Delete that one element and convert again. In Illustrator or Inkscape, the same check is visual: turn on the transparency grid and look for a base rectangle under everything else. One caution: once in a while a full-size shape is the artwork itself — a colored tile the logo is meant to sit on. If the rect is the design, leave it and fix the export instead.

Cause 3: the converter dropped the alpha channel

This is the cause our complete SVG to PNG guide covers in depth. Every pixel in a PNG stores a color and an alpha value, and a fully transparent pixel still has color values underneath — usually 0, 0, 0, black. The PNG specification keeps color separate from alpha, so a converter that throws the alpha away shows the stored color instead. Re-export with transparency switched on, and check for the background rectangle from the previous section. The same mechanism bites with JPG: the HTML standard says a canvas saved in a format without an alpha channel is composited onto an opaque black background, so a browser converter exporting to JPG without painting a background first produces black every time.

Cause 4: the icon itself is black — currentColor and missing fills

Sometimes the black is not a background at all. It is the artwork. The SVG specification sets the initial value of fill to black, so a shape with no fill anywhere renders as a solid black shape. Icon sets make this easy to hit: many paint with fill="currentColor", meaning "use the surrounding text color". On a web page that is whatever the CSS says; as a standalone image there is no surrounding text, so it falls back to black. Class names and CSS variables do the same — a path with class="icon-primary" or fill="var(--brand)" points at styles defined on the page, and copying only the SVG leaves those styles behind.

The test is quick: open the SVG alone in a browser tab. If it is black there too, the file is the problem, not the converter. Replace currentColor with a real hex color such as #111827, replace var(--brand) with the actual color, and move rules from the page's stylesheet into fill and stroke attributes. Rules inside a <style> block within the SVG itself usually survive; styles in your site's stylesheet do not.

Cause 5: PowerPoint's Convert to Shape paints it black

This one shows up in offices more than anywhere else. You insert an SVG into PowerPoint, right-click, choose Convert to Shape so you can edit the parts, and the transparent areas turn into a solid black fill. PowerPoint can misread how transparency is coded in some SVG files, and unrecognized transparent layers default to black.

Clean the file before it reaches PowerPoint. Open the SVG in Inkscape or Illustrator, delete any hidden or black-filled background objects, save it, then insert it again and convert. If you do not need to edit the shapes, skip the conversion — insert the SVG as a picture, or use a transparent PNG export instead.

Cause 6: a JPG step in the middle

JPG has no alpha channel, so any step that saves as JPG has to put something where the transparency was, and the fill is often black. The step is not always obvious: a converter set to JPG output, an upload pipeline that recompresses images, or an editor defaulting to JPG. Once the file is a JPG, the transparency is gone for good — renaming it to .png changes the label, not the image data.

Keep PNG or WebP end to end when transparency matters. If a JPG is genuinely required, flatten onto a chosen color deliberately before saving, instead of letting the tool guess. On the command line that is magick input.png -background white -alpha remove -alpha off output.jpg; in Python, paste the image onto a white canvas using its alpha channel as the mask. Our WebP to PNG guide covers the same choice when the source is a WebP.

The fix, tool by tool

Once the test shows the black is in the file, the fix depends on the tool that made the PNG. The setting is a different menu in each one, and it has to be set before the export, not after.

Tool Where the setting lives What to check
IllustratorFile > Export > Export As > PNG > PNG OptionsBackground Color: Transparent. Also set Effect > Document Raster Effects Settings > Background to Transparent, and check View > Show Transparency Grid (Ctrl+Shift+D) for a base rectangle.
InkscapeFile > Document Properties > Page > Background; File > ExportThe A (alpha) slider all the way left, so the page color is fully transparent. Export with File > Export as PNG — not Save As Cairo PNG, which gives a white background.
PhotoshopFile > Open, then File > Export > Export AsOpening an SVG rasterizes it — set size and resolution in that dialog. In Export As, choose PNG and make sure transparency is enabled.
FigmaProperties panel > Fill; Export sectionUncheck "Show in exports" (the eye icon) on any background fill on the frame, then export PNG at 2x or 3x. Figma has also had a bug where SVGs showed a black background on export — its team shipped a fix, so reload Figma and refresh the tab first.
CanvaShare > DownloadChoose PNG and tick Transparent background before downloading.
GIMPFile > Open, then File > Export AsOpening an SVG shows the Render Scalable Vector Graphics dialog — set the resolution there. The layer needs an alpha channel (Layer > Transparency > Add Alpha Channel) before exporting as PNG.
Mac PreviewOpen With > Preview, File > ExportChoose PNG. Preview preserves transparency by default, though complex SVGs may not render the same way a browser does.
Command linersvg-convert, ImageMagick, CairoSVGrsvg-convert -w 1024 logo.svg -o logo.png stays transparent unless you pass -b white. ImageMagick needs magick -background none -density 300 input.svg output.png, with -background none before the input file. In Python, cairosvg.svg2png(url="input.svg", write_to="output.png") keeps transparency by default.

Keep transparency, or bake white in on purpose?

Not every black background is a bug to remove. Some destinations cannot show transparency at all, and for those the right move is to choose the background yourself before the file leaves your hands — white for most documents and light pages, a brand color for a preview card, the actual page background if you know it. A file flattened on purpose looks identical everywhere; a file flattened by accident looks different everywhere.

Destination Transparency or solid? Why
Website, app UI, slidesKeep transparentThe same logo sits on white, gray, and dark.
Email signatures, OutlookBake white inOutlook handles transparency poorly, and dark mode can turn it black.
Link previews, Open GraphBake a color inPreview renderers do not support transparency; empty areas show as black.
iOS app and home-screen iconsBake a color inApple requires no alpha channel; transparent icons are filled black.
Print, JPG outputBake white inJPG cannot store transparency; the fill must be chosen first.
Messaging apps, social uploadsBake a color inUploads are often recompressed to JPG, which flattens transparency.

The 60-second checklist before you export again

  1. Run the Chrome-tab test. Light gray means the file is fine and the black is downstream; solid black means the file itself needs work.
  2. Search the SVG for a full-canvas rect. Open it as text, look for a <rect> spanning the viewBox, and delete it if it is not part of the artwork.
  3. Search for currentColor and var(--. If the icon is black even on its own in a browser tab, replace those with real hex colors.
  4. Pick the background setting before exporting. Transparent for screens and slides; white or a brand color for email, previews, icons, and anything ending as JPG.
  5. Check the result on white and on black. Open the PNG over both backgrounds at full size. A pale fringe on dark, or a dark fringe on light, means the edge pixels were prepared against the wrong matte — export again from the clean source.

Keep the transparent master, export a flattened copy for each destination that needs one, and name the copies for where they go. The next black background is then a two-minute diagnosis instead of another round of re-exporting at random.

Umar

Founder, Format Studio

Umar builds Format Studio's free creator tools and writes the practical guides.

Frequently Asked Questions

Why does my PNG have a black background after converting from SVG?

There are six common causes: the viewer or destination is showing transparency over black, a background rectangle is baked into the SVG, the converter dropped the alpha channel, the icon's fills fall back to black (currentColor or no fill at all), PowerPoint's Convert to Shape painted it black, or a JPG step flattened the transparency. Drag the PNG into a Chrome tab first — light gray behind the subject means the file is still transparent and the black came from somewhere else; solid black means it is saved in the file.

How can I tell if the black background is in the file or just how it is displayed?

Drag the PNG into a Chrome tab. Chrome paints light gray (RGB 230, 230, 230) behind transparent areas, so gray means the transparency is intact and the black is coming from another app or a conversion. Solid black (RGB 0, 0, 0) means the black pixels are saved in the file. The article's 30-second test covers a second check with layered backgrounds for cases where the tab result is unclear.

Why does my transparent PNG show a black background in File Explorer?

Usually one of two things. File Explorer in dark mode draws thumbnails against a dark interface, so a transparent area can look black even though the file is fine — switch Windows to the light theme for a moment to check. The other cause is a stale thumbnail cache: run Disk Cleanup, tick Thumbnails, and let Explorer rebuild the previews, or restart Windows Explorer from Task Manager.

Why does my SVG turn black when I convert it to a shape in PowerPoint?

PowerPoint's Convert to Shape can misread how transparency is coded in an SVG and fill the transparent areas with solid black. Open the SVG in Inkscape or Illustrator first, delete any hidden or black-filled background objects, save it, then insert it again and convert. If you do not need to edit the shapes, skip the conversion and insert a transparent PNG export instead.

How do I export a transparent PNG from Illustrator or Inkscape?

In Illustrator, turn on View > Show Transparency Grid, delete any base rectangle covering the artboard, then use File > Export > Export As, choose PNG, and set Background Color to Transparent in the PNG Options dialog. In Inkscape, the canvas is transparent by default — check File > Document Properties > Page > Background and make sure the A (alpha) slider is all the way left, then export with File > Export as PNG. Do not use Save As Cairo PNG in Inkscape; that route produces a white background.

My PNG is already flattened with a black background — can I fix it?

Not cleanly. Once transparency is flattened into black pixels, the file no longer knows which pixels were empty, so no converter can restore it. A background-removal tool can cut the subject out again, but edges and soft shadows will not be as clean as the original. The reliable fix is to go back to the SVG or the design file and export it again with transparency switched on.

Convert It Again With Transparency On

Drop the SVG in, pick Transparent background, and check the checkerboard preview before downloading — all in your browser, nothing uploaded.

Open Image Converter →