How to Remove Background from SVG Files
Three methods to get a transparent background on any SVG — from editing the XML directly to removing the background before vectorizing.
SVG files are transparent by default. If you're seeing a white or colored background in your SVG, it was explicitly added — either during conversion or in the original design. Here's how to remove it.
Why SVGs Sometimes Have Backgrounds
When converting a raster image (PNG, JPG) to SVG, the converter may add a background rectangle to match the original canvas color. This is especially common when converting images with white backgrounds.
Method 1 — Remove the Background in the SVG Code
This is the fastest method for SVGs you already have.
- Open your SVG in a text editor (VS Code, Notepad, or any plain text editor)
- Search for
<rectelements near the top of the file - Delete any
<rect fill='white'>,<rect fill='#ffffff'>, or<rect fill='#fff'>elements - Save the file
<!-- Remove this element: --> <rect width="100%" height="100%" fill="white"/> <!-- Or this: --> <rect x="0" y="0" width="500" height="300" fill="#ffffff"/>
Method 2 — Remove Background Before Converting
The cleanest approach: remove the background from your raster image first, then convert to SVG.
- Use remove.bg (free, automatic AI background removal) or Photoshop's Remove Background tool
- Export your image as PNG with transparency (not JPG — JPG can't store transparency)
- Upload the transparent PNG to ImageToSVG.com
- The resulting SVG will have a transparent background automatically
Method 3 — Use Inkscape (Free Desktop Tool)
- Open your SVG in Inkscape (free and open-source)
- Click on the white background rectangle to select it
- Press Delete
- Go to File → Save As and save as Plain SVG
Checking Your Work
Open your SVG in a browser and place it on a colored page. If the background is truly transparent, the page color will show through. If it's still white, repeat the steps above.
Frequently Asked Questions
Do SVG files have transparent backgrounds by default?
SVG backgrounds are transparent by default unless a background rectangle is explicitly added. If your SVG shows a white background, a <rect fill='white'> element has been added — simply delete it.
How do I remove a white background from an SVG?
Open the SVG in a text editor. Search for <rect fill='white'> or <rect fill='#ffffff'> and delete that element. Save the file — the background is now transparent.
Can I remove the background before converting to SVG?
Yes — use a tool like remove.bg or Photoshop to remove the background from your PNG before uploading to our converter. This produces the cleanest SVG with no background paths.