converting svg code to svg file

Posted on 2014-07-18
Medium Priority
Last Modified: 2014-07-18
I have a svg image that looks like this:   http://jsfiddle.net/sa4J4/

This is the code for my svg image.

<svg width="100" height="100">
  <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />

Open in new window

How do I convert this svg code to a file with a .svg file extension?

So for example,  I want to save it to a svg file called YellowCircle.svg

See I want to use this svg image on a web page but I don't want to use the code I just want to use the file.

See on my web page I want to use it like this:

 <a href="http://www.google.com"><img src="images/YellowCircle.svg"></a> 

Open in new window

Question by:maqskywalker
1 Comment
LVL 35

Accepted Solution

Dan Craciun earned 2000 total points
ID: 40204422
Save your code as a new html page, then open it in IE or whatever browser you fancy, right click on the svg and choose "Save picture as". Give it a name and enjoy your new svg.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question