The Prompter // Metadata -Convert

How to convert SVG art stored on-chain from base64 encoding to .png format

1- Go to Prompter Smart Contract https://etherscan.io/address/0x829a2d0cfd8516813bb06229e3cd6596655267cc#readContract#F23 in your web browser.

2- Find the "TokenURI" function and click on it. A box will appear asking for the token ID you want to retrieve the TokenURI for. Enter the token ID of the NFT you want to retrieve the TokenURI for and click the "Query" button.

post image

3- The "TokenURI" function will return the metadata for the NFT, which is encoded in base64. This metadata points to an SVG file containing the NFT's properties, timestamp, and more.

post image

4- Go to https://www.base64decode.org/ in your web browser, paste the metadata you copied, the string after 'base64,' into the text field, and click the 'decode' button.

https://www.base64decode.org/
https://www.base64decode.org/

5-You will see another base64 string in the decoded metadata. Decode it again using the same method

post image

6- Finally, https://www.svgviewer.dev/svg-to-png and convert the last decoded SVG to .png.

post image