Cointime

Download App
iOS & Android

How to Create an ERC721 NFT the Best Way in 5 Minutes

So an NFT is simply a piece of information that lives on the blockchain, represented by a visual image. This is not a guide on how to design NFTs. For that you need to learn digital design with tools such as Illustrator and Photoshop.

Btw if you want to create your own NFT collection I wrote a massive guide to show you everything step by step from own experience launching collections here: https://merunas.gumroad.com/l/nft-guide

Remember, an NFT is a regular image + some data stored in the blockchain.

To keep it simple, go to Deep AI text to image generator and type whatever text you want, the AI system will create an image from it like so:

And this is the resulting image which we’ll turn into an NFT:

Now that you have the image that will be used as an NFT, you need a place to store the image so it’s accessible online. Here are the options:

Storing the image on-chain

You can compress and encrypt the image into a string that can be stored in the blockchain directly. Nouns is a very popular project and they do that.

This is the best approach because the data is fully decentralized and will stay in the blockchain permanently so others can access it anytime.

To do that, you’d create an ERC721 smart contract and store the image of the NFT in a string state variable.

However we won’t do that because it’s a bit of a difficult process since you can’t just compress the images you need a specific way to convert them to string so they aren’t massive.

Storing a base64 string would easily take many millions units of gas in Ethereum. It’s just not a simple process.

Storing the image in IPFS

This is the most common approach and the one we’ll take where the image is store in the decentralized service IPFS.

Files on IPFS stay in a network of nodes sharing and storing the image of your NFT. I wrote a lot about how to store your IPFS files online forever here. However today we’ll use a great tool.

That tool is called nft.storage and it’s great because they do all the setup and hard work for you. You just upload and the image stays online forever.

You’ll see a page like this once logged in:

Simply click on the Upload button. Then select the nft image you’ve created and click on upload.

You’ll see the uploaded file.

Click on actions and “Copy IPFS Url”. You’ll need it to create the metadata which is the key information NFT marketplaces need to work with.

Now you’ll need to deploy the NFT contract. Continue reading!

Btw if you want to create your own NFT collection I wrote a massive guide to show you everything step by step from own experience launching collections here: https://merunas.gumroad.com/l/nft-guide

Creating the NFT ERC721 smart contract

The ERC721 standard is the one you must use to deploy your NFT. Go to remix ethereum and click on this icon to create a new smart contract:

Simply call it NFT.sol and add the following code:

That’s the simplest NFT smart contract you’ll ever find. It imports the popular openzeppelin libraries which are the standard when it comes to smart contracts and it adds the minting functionality to create 1 NFT on deployment.

As you can see the parameters are _name_symbol and _metadataUrl where the name is your NFT name, the symbol for your NFT which is like a short name of 4 characters and the metadata url.

The contractURI() function returns the metadata and it’s required by opensea.

What is metadata? The metadata is the link between your smart contract and your image. It’s a .json file. It contains the name, image and any other attributes you want to add to the NFT so that marketplaces like opensea can show users that data.

Before deploying the NFT contract, you want to create the metadata and upload it to nft.storage. Let’s see how it’s done:

Creating the NFT metadata

Simply create a new file called metadata.json and add the following parameters:

You can change the name and description. The external_url is where you want users to go when they click on your NFT. In this case it’s the same for the image and url so people see the image.

To get the image url go to nft.storage and copy the IPFS url which will look like this:

ipfs://bafkreidhvbks723vbhipmxp4fv75yki7h2v3y3onbbnhisttg6iz3wnacq

However that’s not accessible by browsers. Simply change the ipfs:// part to https://ipfs.io/ipfs/ and it will look like this:

https://ipfs.io/ipfs/bafkreidhvbks723vbhipmxp4fv75yki7h2v3y3onbbnhisttg6iz3wnacq

You can try to open that in your browser and it will show the image.

Now simply upload the metadata.json file you just created to nft.storage like before. Once uploaded, go to Actions > View URL and copy the URL.

Then go back to your remix.ethereum.org NFT.sol smart contract and deploy the contract with the NFT url like so.

That should be it! Your NFT contract will be created, the token will be minted, the metadata deployed to nft.storage will be connected to the smart contract and the image will be received from the metadata to show it on opensea.

If you can’t see the video for any reason here’s a gif of it:

Your NFT is ready and you now know how to create NFTs. This is just for 1 single NFT but you can repeat the process with many NFTs.

NFT
Comments

All Comments

Recommended for you

  • Spot Gold Falls Below $4,000 Mark

    On June 24, spot gold fell below the $4,000 per ounce mark for the first time since November last year, dropping approximately $1,600 from this year's record high of $5,596 per ounce.

  • U.S. Current Account Deficit Reaches $226.8 Billion in Q1

    On June 24, the U.S. current account deficit for the first quarter was reported at $226.8 billion, exceeding the expected deficit of $215 billion. The previous value was revised from a deficit of $190.7 billion to $221.1 billion.

  • Goldman Sachs Warns: AI Investment Boom Not Peaking Yet, But Market Pricing Clearly Ahead of Fundamentals

    On June 24, Goldman Sachs stated in its latest research report that the AI investment boom has not yet peaked, but the market pricing for its future returns is clearly ahead of macroeconomic realizations. The firm pointed out that the share of U.S. technology investment in GDP has surpassed the peak during the internet bubble of the 1990s, with capital expenditure expectations for major cloud providers being revised up nearly 80% in the past six months for 2026. This wave of investment continues to drive revenue and profit growth in the semiconductor, cloud computing, server, and data center supply chains, leading to increasingly high valuations for AI-related assets. However, unlike the late 1990s, the current risks no longer primarily stem from a pure valuation expansion detached from fundamentals, but increasingly from the market's expectations for the long-term sustainability of high profit margins and capital returns. Goldman Sachs believes that the core contradiction of the AI market is intensifying: fundamentals remain strong, but the market has already priced in too much future earnings.

  • Becerra Criticizes Fed's Dot Plot, Reveals Past Reverse Trading Strategy

    On June 24, U.S. Treasury Secretary Scott Becerra stated that he believes no one should publish the dot plot. Becerra added, "The only reason I ever liked the dot plot was when I was running my own investment business; we had a trading model specifically for reverse trading the dot plot because the dot plot is always wrong." Becerra expressed appreciation for Federal Reserve Chair Waller's decision to eliminate forward guidance. He also mentioned that he has breakfast with Waller every week, consistent with the practice during Powell's tenure as Fed Chair.

  • U.S. Oil Drops 3%

    On June 24, WTI crude oil's intraday decline expanded to 3%, currently priced at $71.45 per barrel.

  • Spot Silver Plummets 4%, Hits New Low Since December Last Year

    On June 24, spot silver fell 4% during the day, currently priced at $59.06 per ounce, marking a new low since December last year and halving from its peak in January this year.

  • Gold Plummets $100 in One Day, Approaching $4000 Mark

    On June 24, spot gold fell sharply by over $30 in a short period, plummeting $100.96 during the day to currently report at $4008.72 per ounce, a decline of 2.46%. New York futures gold also saw a significant drop of 3%, currently priced at $4024.80 per ounce.

  • Trump: Inspectors Will Be Allowed to Enter Iran's Uranium Storage Sites

    On June 24, according to Fox News, U.S. President Trump stated that inspectors will be allowed to enter Iran's uranium storage sites.

  • Qualcomm to Acquire AI Chip Startup Modular

    On June 24, Qualcomm announced its plan to acquire the AI chip startup Modular.

  • Hong Kong SFC: Total Assets Managed by Hong Kong Funds Reach HKD 2.3 Trillion

    On June 24, the Hong Kong Securities and Futures Commission (SFC) released a report indicating significant growth in the investment funds, digital assets, and stock markets over the past year, reinforcing Hong Kong's position as a leading international financial center. In asset and wealth management, the total assets managed by funds registered in Hong Kong grew by 19.4% in the past year, reaching HKD 2.3 trillion. The SFC recognized ETFs and leveraged and inverse products have also seen rapid growth. As of March 31, 2026, the average daily trading volume of ETFs and leveraged and inverse products reached HKD 38.1 billion in the past year, a year-on-year increase of 50.6%; the total market value of these products grew by 25.2% year-on-year, reaching HKD 651.2 billion. Notably, the market value of single-stock leveraged and inverse products increased sixty-fold within the past year.