Skip to content
Private: files never leave your device

Why Is My SVG File Saving as HTML?

You export or download an SVG, and Windows calls it a Chrome HTML Document or a Microsoft Edge HTML Document, or a cutting or design app refuses to open it. In most cases nothing is wrong with the file. This guide shows how to tell a mislabelled SVG from a real HTML page, and how to fix each one.

An SVG shown as an Edge or Chrome HTML Document is usually a real SVG whose default app is a web browser; check that the extension is .svg and that the file text starts with svg or xml rather than html

Most of the time your SVG is not saving as HTML at all: Windows is naming the file after the app that opens it, and when a web browser such as Chrome or Edge is the default app for SVG files, File Explorer shows the type as a Chrome HTML Document or Microsoft Edge HTML Document. Turn on file name extensions, and if the name ends in .svg, the file is fine. Only when the name ends in .html, or the text inside starts with an HTML tag, did you really save a web page, and then you need to export or download it again. The Microsoft, Apple, Adobe and W3C pages used here were read on 23 November 2026.

Why this happens so often with SVG

SVG is a web format. The W3C SVG specification registers it as the media type image/svg+xml with the file extension .svg, and every modern browser can display it. Windows therefore offers a browser as a natural app for SVG files, and once a browser becomes the default, the Type column in File Explorer describes the file with the browser's own wording. Chrome and Edge use the word HTML in that description, which makes it look as if your vector file has turned into a web page.

The label is only a description. Microsoft's guide to file name extensions explains that the extension at the end of the name is what tells Windows the format, and that you can see it by turning on file name extensions in File Explorer. On a Mac, Apple says extensions are usually hidden but macOS still opens files with the proper apps.

Check what you really have in 30 seconds

What you seeWhat it meansWhat to do
Type says Edge or Chrome HTML Document, name ends in .svgA real SVG with a browser as its default appNothing, or change the default app
Icon is a browser logo, double click opens a browser tab with your drawingA real SVG shown by the browserOpen it from inside your design or cutting app instead
Name ends in .svg.html or .htmlThe file was saved as a web page, or renamedRe-export or download it again
Text starts with <svg or <?xmlSVG contentThe file is usable
Text starts with <!DOCTYPE html or <htmlA saved web page, not the drawingGet the original SVG
Name ends in .svgzA gzip compressed SVGSome apps need it unzipped to .svg first

The text test is the one that settles it. SVG is XML, so you can open any SVG in Notepad on Windows or TextEdit on a Mac without breaking it. Look at the first line: an SVG starts with <svg, or with an XML declaration <?xml followed by an <svg tag a few lines later. A web page saved by mistake starts with <!DOCTYPE html> or <html> and is usually much longer, full of scripts and links. Close the editor without saving.

Fix 1: show the real file name extension

Hidden extensions are the root of most of the confusion, so turn them on first.

  • Windows 11 and 10: open File Explorer and select View, Show, File name extensions, the path Microsoft gives in its file name extensions guide.
  • Mac, all files: in the Finder choose Finder, Settings, click Advanced and select Show all filename extensions.
  • Mac, one file: select it, choose File, Get Info, expand Name & Extension and untick Hide extension.

Apple warns that changing an extension when you rename a file can stop it opening in the app that made it, and Microsoft notes that changing the extension does not convert the file. So do not simply rename a real HTML page to .svg and expect it to work, because the drawing is not inside it.

Fix 2: stop SVG files opening in a browser

If the file is a real SVG and you would rather it opened in Illustrator, Inkscape or another editor, change the default app. Microsoft's steps for Windows 11 and 10:

  1. Open Settings and select Apps, Default apps.
  2. In the search box type .svg and select the result.
  3. Choose the app that should open SVG files.

After this the Type column shows your chosen app's wording instead of HTML Document. Cutting machine apps and online editors usually ignore the Windows default anyway: open them first and use their own Upload or Import button to pick the .svg file, rather than double clicking the file.

Fix 3: export the SVG correctly from Illustrator

Adobe Community threads on this problem show people using different commands, so use the one Adobe documents for exports. Adobe's export guide gives File, Export, Export As, then a format chosen from the Save As Type menu on Windows or the Format menu on macOS. Pick SVG, decide whether to tick Use Artboards so each artboard becomes its own file, and select Export to open the SVG options.

SVG option in IllustratorWhat Adobe says it doesGood choice for
StylingInternal CSS, Inline Style or Presentation Attributes; Presentation Attributes is required for Android StudioPresentation Attributes for apps and cutting machines that ignore CSS
FontOutlines preserve the path definition and maximise compatibilityOutlines when the file will be opened on another computer
ImagesEmbedded inside the document or linked as external filesEmbed, so the SVG is one self contained file
MinifyRemoves empty groups and spaces, making the code harder to readWebsites; leave off while you are still editing
ResponsiveLets the SVG scale in browsers without absolute sizesWebsites; turn off if a cutting app needs exact dimensions
Show in browserDisplays the image in the default web browserA quick visual check after export

Note the last option: if Show in browser is on, Illustrator opens the new SVG in your browser after export. The file on disk is still an SVG, but seeing it in Chrome or Edge is often what makes people think it was saved as HTML.

Fix 4: download the file, not the preview page

When an SVG comes from a website, the most common way to end up with real HTML is saving the page that shows the drawing instead of the drawing itself. Browsers then save the whole page, sometimes with an .html extension. Go back to the site and use its download button or link, or right click the image and choose the option to save the image rather than the page. Then run the text test above to confirm the new file starts with an SVG tag.

Need a PNG instead? If the app you are using does not accept SVG at all, convert the drawing with SVG to PNG, which renders it in your browser at up to 8x with transparency kept, so the file is never uploaded.

Troubleshooting

ProblemWhat to try
Design Space or another cutting app says the file is not supportedCheck the extension is .svg, not .svg.html; use the app's own upload button; re-export with Font set to Outlines
The SVG opens blank in an editorLinked images or fonts are missing; re-export with Images embedded and Font as Outlines
The file is very largeClean the code with Compress SVG, which removes editor metadata and extra decimals
You only have a PNG or JPG of the logoTrace it into a vector with PNG to SVG
Renaming to .svg did not helpThe file was a web page; rename it back and get the original SVG

For other image file puzzles, see why a PNG background turns black and how to open HEIC files.

Sources and dates

PageReadUsed for
W3C: SVG 2 media type registration23 November 2026image/svg+xml, the .svg extension and .svgz as gzip compressed SVG
Microsoft: Common file name extensions in Windows23 November 2026Showing file name extensions in File Explorer
Microsoft: Change default apps in Windows23 November 2026Setting the default app for a file type
Apple: Show or hide filename extensions on Mac23 November 2026Finder settings and the warning about changing extensions
Adobe: Export artwork from Illustrator23 November 2026File, Export, Export As and Use Artboards
Adobe: Illustrator export file format options23 November 2026SVG export options

Frequently asked questions

Why does my SVG say Chrome HTML Document?

Chrome is set as the default app for SVG files, and Windows describes the file type using the default app. Turn on file name extensions: if the name ends in .svg, the file is a normal SVG.

How do I change an SVG from HTML back to SVG?

If the extension is already .svg, change the default app in Settings, Apps, Default apps. If the file is really an HTML page, renaming will not help; export or download the SVG again.

How can I tell if a file is a real SVG?

Open it in Notepad or TextEdit. A real SVG starts with <svg or <?xml. A saved web page starts with <!DOCTYPE html or <html.

Why does Illustrator open my SVG in a browser after export?

The Show in browser option in the SVG export dialog displays the file in your default browser. Untick it if you do not want that.

Will a cutting app open an SVG that shows as an Edge HTML Document?

The Windows label does not change the file, so if the extension is .svg and the text starts with an svg tag, upload it from inside the app. If it is still refused, re-export it from your design app.