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

  • Hedge Fund Net Exposure to US Tech Giants Reaches Record High of 22%

    On October 10, according to data from Goldman Sachs and The Kobeissi Letter, investor sentiment towards large tech stocks has reached an all-time high. Hedge fund net exposure to the 'Big Seven' tech giants in the US has risen to 22%, marking a historic peak; this figure has surged by 7 percentage points since July, representing the largest three-month increase in 2023, and surpassing the previous high of 21% set in June 2024 (compared to only 8% during the bear market low in 2022). During the same period, hedge fund net exposure to semiconductor stocks in the US has increased to 12%, slightly below the peak of 14% in June 2026, while this metric was only 2% at the beginning of 2025.

  • Anthropic Reveals Internal Issues: Out-of-Control AI Attempted to Access Multiple Government Websites, Reported to the White House

    Anthropic stated on Friday that its AI agents acted autonomously, attempting to access various federal, state, and local government websites. The company did not disclose which government agencies were involved but confirmed that it has reported these incidents to the White House. In a blog post, Anthropic mentioned that one of its AI models under testing had taken several unauthorized actions, including exploiting a vulnerability on a university website to download data and submitting a form to a government agency that it had been explicitly instructed not to submit. The company noted that it discovered these incidents after beginning a review of the AI's actions in July. Earlier on Friday, the Philadelphia Police Department stated that Anthropic had notified them that its technology had submitted a false homicide tip to the police website.

  • No Flights Departing or Arriving at Riyadh's King Khalid Airport Following Explosion Sounds

    On October 10, according to CCTV International News, witnesses reported that explosion sounds were heard at Terminal 3 of King Khalid International Airport in Riyadh, the capital of Saudi Arabia, this afternoon, leading to the evacuation of personnel from the airport. Flight tracking website 'FlightRadar24' indicates that there are currently no flights departing or arriving at the airport, and some flights heading to Riyadh have been diverted or returned. King Khalid International Airport has issued a traveler advisory, recommending that passengers contact their airlines to confirm flight status before heading to the airport.

  • BTC Surpasses $83,000

    Market data shows that BTC has surpassed $83,000, currently priced at $83,020.19, with a 24-hour decline of 0.2%. The market is experiencing significant fluctuations, so please ensure proper risk management.

  • ETH Surpasses $2500

    Market data shows that ETH has surpassed $2500, currently priced at $2500.03, with a 24-hour increase of 0.33%. The market is experiencing significant fluctuations, so please ensure proper risk management.

  • Houthi Forces Claim Saudi Airstrikes on Sana'a Airport in Yemen

    On October 10, according to information released by the Houthi forces in Yemen, on the afternoon of the same day local time, the Saudi-led coalition conducted airstrikes on Sana'a International Airport, which is under the control of the Houthi forces, dropping four bombs. Additionally, the Saudi coalition also targeted a communication facility in Hajjah Province, controlled by the Houthi forces, dropping three bombs. There has been no response from the Saudi side regarding these incidents. (Jinshi)

  • French Finance Committee Approves Amendments on Stablecoin Exchange Tax and Crypto Exit Tax

    On October 10, Decrypt reported that the Finance Committee of the French National Assembly approved two amendments related to cryptocurrency taxation this week: starting January 1, 2027, exchanges of stablecoins regulated under MiCA will be considered taxable sales; and an exit tax will be imposed on taxpayers who have been French tax residents for at least six of the past ten years and have moved abroad with crypto assets totaling over 800,000 euros. On October 9, the committee voted 31 to 3 to reject the budget revenue portion, and the full National Assembly will review based on the government's original text. The amendments will not be automatically included; supporters must reintroduce them during the debate starting on October 13, with a formal vote scheduled for October 20. The related measures have not yet become law. The stablecoin amendment was proposed by Nicolas Sansu, a member of the left-wing GDR party group, along with 16 co-signers, and does not set a new tax rate but aims to include the revenue under France's existing 31.4% flat tax system. The committee also passed an amendment allowing crypto asset losses to be carried forward for ten years to offset future gains.

  • Luxshare Precision: Company and Luxshare Technology Involved in 337 Investigation, Currently in Initial Filing Stage

    On October 10, Luxshare Precision announced that the company and its holding subsidiary, Dongguan Luxshare Technology Co., Ltd., have been listed as respondents in a 337 investigation by the U.S. International Trade Commission (ITC), involving U.S. Patent US 10,903,700. The ITC officially launched the investigation on October 9, 2026, with investigation number 337-TA-1526. The case is currently in the initial filing stage, and no substantial determination has been made regarding the relevant infringement claims. The products involved are in the customer verification stage and have not yet entered mass production.

  • South Korea's Financial Commission: Shareholding Restrictions for Exchange Major Shareholders Not Targeting Specific Companies

    On October 10, Lee Ik-yeon, chairman of the Financial Services Commission of South Korea, stated that the provisions regarding shareholding restrictions for major shareholders of virtual asset exchanges in the ongoing 'Basic Law on Digital Assets' are not aimed at specific individuals or companies. Instead, they are designed to ensure that exchanges, once institutionalized, bear a higher level of public responsibility. Currently, South Korean virtual asset exchanges operate under a system that requires updates every three years, but this will transition to a licensing system after the implementation of the 'Basic Law on Digital Assets.' Lee emphasized that exchanges have infrastructure attributes and must possess public accountability and responsibility commensurate with their status.

  • SVRN Acquires Infrastructure Platform FastNEAR

    On October 10, it was officially announced that NEAR Treasury Company SVRN has acquired the NEAR infrastructure platform FastNEAR. FastNEAR will join SVRN as a wholly-owned subsidiary, with its co-founders Evgeny (Eugene) Kuzyakov and Mike Purvis also joining the SVRN team. The announcement stated that FastNEAR is a high-performance RPC infrastructure provider behind NEAR applications and supports most of the data layer for NEAR, including server clusters for handling network read and write operations, archival infrastructure for storing complete transaction histories, and NEARDATA, a data source for developers to process these historical records.