Blockly to SVG How to use: Simply, copy the code into 'Blockly-to-SVG.js' in your web browser's console, and then press enter. If you want to get the PNG image as well, just uncomment the line exportPNG() from the bottom of the script.