# The Prompter // Metadata -Convert

By [monas](https://paragraph.com/@0xmonas) · 2023-03-01

---

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](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.

![](https://storage.googleapis.com/papyrus_images/2ef75e908931db017cb1e9a0e2a80373fa6f6e21f5e745b8fbd02dd9cb599863.png)

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.

![](https://storage.googleapis.com/papyrus_images/4658b3806656a32e7e2eacd926ed3eb1be0d089ff5b6d8677c715d005b5b3683.png)

4- Go to [https://www.base64decode.org/](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://storage.googleapis.com/papyrus_images/cf61652137080e40838b2ef436858097de004275ce38d97667c3a05d965b8eb6.png)

https://www.base64decode.org/

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

![](https://storage.googleapis.com/papyrus_images/7ec42ead1641877f3fde72740b6a9ae371f3a3ad3f332234db0381ea4217898f.png)

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

![](https://storage.googleapis.com/papyrus_images/32acd37adfc69bffbaf298ea8118caf20dc3d6db2f7629945ef633375a74092f.png)

---

*Originally published on [monas](https://paragraph.com/@0xmonas/the-prompter-metadata-convert)*
