decode base64 svg data to a svg file

ni_hao picture ni_hao · Feb 26, 2014 · Viewed 28.8k times · Source

I have a file containing a svg image which is base64 encoded (data-uri). The file starts with

data:image/svg+xml;base64,PHN....

How to decode this to a .svg file in linux ?

Answer

Iazel picture Iazel · Nov 20, 2015

You can copy/paste the string (data:imageetc included) in the url bar of a modern browser; it will decrypt it for you, then you can simply save the page as an svg.