saveSvgAsPng Installation npm install svg-png-convert Prerequisites SVG relies on JavaScript promises, so any browsers that don't natively support the standard Promise object will need to have a polyfill. Usage To convert a SVG plain text to SVG base64 encode