Skip to main content
Participating Frequently
November 4, 2019
Answered

Validate SVG?

  • November 4, 2019
  • 4 replies
  • 51187 views

I edited an svg file and closed and saved it. When I tried reopening, "This SVG is Invalid. Validate it before opening" displayed. How do I validate it?

Correct answer christinet96142216

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

4 replies

christinet96142216Correct answer
New Participant
April 7, 2022

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

New Participant
May 12, 2022

Yeah this worked. But did noit need to convert to PDF, just converted my Illustrator SVG to SVG. Thanks!

New Participant
July 20, 2020

Simple solution that worked for me:

Open the .svg file in DreamWeaver and change ‘https’ to ‘http’:

xmlns="https://www.w3.org/2000/svg"

xmlns="http://www.w3.org/2000/svg"

 

http://www.w3.org/2000/svg’ is a namespace and not used to open the link, so no problem to delete the ‘s’

Inspiring
January 20, 2020

The quickest work around this is to open the SVG in Corel Draw if you have it.
When open in corel draw, just copy the svg and paste it into illustrator.

I had the same issue and this was the quickest way to resolve it.

New Participant
February 21, 2020

It also works to open the SVG in PowerPoint, then copy/paste it in Illustrator!  This is the easiest solution I've found.

Monika Gause
Community Expert
Community Expert
November 4, 2019

Use the W3C validator.

SVG is not suitable as a work file format in Illustrator

SVG is not suitable for roundtripping in Illustrator.

You have just experienced the reason why.

Participating Frequently
November 4, 2019

Monika,

Where and what is the W3C validator?

What is roundtripping?

And why does Adobe provide the ability to save a file as an SVG from Illustrator, open an SVG file in Illustrator, and then save it without providing the ability to edit it later on?

-

Anyway, I prefer to edit this file without having to go back to the customer. Will W3C allow me to do that?

Thanks,

David

Monika Gause
Community Expert
Community Expert
November 4, 2019

When dealing with SVGs you should know about the validator: https://validator.w3.org/

 

Roundtripping: https://en.wikipedia.org/wiki/Round-trip_format_conversion

 

SVG is not a native file format, but still you can export it as you can with several other non-native file formats. Same goes for importing.

Reading and writing SVG in Illustrator has several known issues.

The W3C validator will notify you of the issues with the file.

 

Maybe Inkscape can open it. But maybe you have to get back to the customer. Don't you have a backup of what the customer sent you?