# How to create a token URI

By [KozukiOden](https://paragraph.com/@kozukioden) · 2022-02-09

---

Creating an NFT using the [ERC721](https://docs.openzeppelin.com/contracts/2.x/api/token/erc721) standard means that the token created also needs a token [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier)

Things you’ll need. This list is not extensive and will depend on how much metadata you want your token to have

1.  The image file
    
2.  The image name
    
3.  The image description
    
4.  An IPFS path for the image e.g. ipfs://QmVDae8m3X6HZf9v2Jnyqe53Xpj64vEvQDUci1NpX1Krcs
    

The first thing you’ll need to do is upload the image to an IPFS node. You can create a [pinata](https://app.pinata.cloud/) account to do this. Once the image is uploaded and pinned on Pinata you will get a CID that looks like this ‘QmVDae8m3X6HZf9v2Jnyqe53Xpj64vEvQDUci1NpX1Krcs’

Then create the json file that will contain the metadata. e.g. the metadata defined below only has three fields - name, description and image.

![sample metadata](https://storage.googleapis.com/papyrus_images/b26cf3ae6a57f88eaa2372c242391e7dfbfa3c670848f3f1fc6af13d126236ab.png)

sample metadata

Upload the json file to a folder on an IPFS node as well, you will also have a CID for the file. Once this is done your token URI will be in the format [https://ipfs.io/ipfs/folderCID/metadata.json](https://ipfs.io/ipfs/folderCID/metadata.json) . This URI can now be used to mint your token

![Minted Token](https://storage.googleapis.com/papyrus_images/6cfb1b53e40f305c710ad9cd3775ed87cee195e832f36cc7b7e30dcd24d68955.png)

Minted Token

---

*Originally published on [KozukiOden](https://paragraph.com/@kozukioden/how-to-create-a-token-uri)*
