• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Validate SVG?

Community Beginner ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

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?

Views

41.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Nov 04, 2019 Nov 04, 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

...

Votes

Translate

Translate
New Here , Apr 07, 2022 Apr 07, 2022

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

Votes

Translate

Translate
Adobe
Community Expert ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 04, 2019 Nov 04, 2019

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

I did not know abotu the validator, thank you Monica. hope you are doing well.

jonathan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

Copy link to clipboard

Copied

I have tried this. But there is no direction on how to use W3C validator. I go through the steps, but then it gives me the coding to the file. What the heck am I supposed to do with that? All of a sudden every file I have ever created on Illustrator says this error message. This is so frusterating. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

Copy link to clipboard

Copied

When you validate it, it will give you a notification such as this one:

Bildschirmfoto 2021-11-29 um 21.53.04.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 06, 2023 Apr 06, 2023

Copy link to clipboard

Copied

Funny it says svg version 2 is not valid?!?!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 06, 2023 Apr 06, 2023

Copy link to clipboard

Copied

SVG version 2 is still a recommendation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 08, 2023 Apr 08, 2023

Copy link to clipboard

Copied

To what?

I wonder how they even are created, because adobe suit can't do it. Hardly any thing online can seem to even read them

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 08, 2023 Apr 08, 2023

Copy link to clipboard

Copied

A recommendation to the standard: https://www.w3.org/TR/SVG2/

So SVG is still not standardized and as siuch it is not valid.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 21, 2023 Apr 21, 2023

Copy link to clipboard

Copied

Kinda weird that version 2 is recommended while not many apps seem to be able to deal with them

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2023 Apr 21, 2023

Copy link to clipboard

Copied

LATEST
quote

Kinda weird that version 2 is recommended while not many apps seem to be able to deal with them


By @schroef

 

What's called a "reccomendation" is a candidate for standardization. Next step is: the ommittee members discuss the recommendation and then whenever they are ready, do or don't make it the standard. And then the next step is that this new standard is built into all concerned applications.

 

So the recommendation is not what you think it is.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 21, 2020 Feb 21, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 02, 2022 Jun 02, 2022

Copy link to clipboard

Copied

The Corel Draw option worked fine ! Thanks a lot, you're a life savier

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2020 Jul 20, 2020

Copy link to clipboard

Copied

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’

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

Convert file to PDF and/or back into SVG.

 

https://cloudconvert.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2022 May 12, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 17, 2022 Dec 17, 2022

Copy link to clipboard

Copied

Huge thanks, this was the only method and the quickest one to work for me

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines