svg code to file code example Example: svg code to file Just had to save it in a text file and give it a .svg extension.