πΌοΈ NFT Metadata: IPFS, Images & JSON
Store NFT images and attributes using decentralized storage
Your Progress
0 / 5 completedπ¦ NFT Metadata & Storage
NFT smart contracts only store the owner and token ID on-chain. The actual image, name, and properties live off-chain in JSON metadata files.
Why Not Store Everything On-Chain?
πΈ Cost
Storing 1KB costs ~640,000 gas (~$50). A 1MB image would cost $50,000+!
π Size Limits
Ethereum blocks have gas limits. Large files simply cannot fit.
π Speed
Reading large data from blockchain is slow and expensive.
ποΈ Interactive: Metadata Builder
Adjust the token ID to see how metadata is structured:
{
"name": "Cool NFT #42",
"description": "A unique digital collectible",
"image": "ipfs://QmImage42",
"attributes": [
{
"trait_type": "Background",
"value": "Blue"
},
{
"trait_type": "Rarity",
"value": "Legendary"
}
]
}Smart Contract Stores:
- βToken ID: 42
- βOwner: 0x123...abc
- βMetadata URL
Metadata File Contains:
- βName & Description
- βImage/Video URL
- βTraits/Attributes
βοΈ Interactive: Storage Comparison
Compare different storage solutions for NFT metadata:
IPFS
Most NFT projects (CryptoPunks, Bored Apes)
Cost
Free
Permanence
Depends on pinning
Speed
Fast (distributed)
β Pros:
- +Decentralized
- +Content-addressed
- +Free to use
- +Fast retrieval
β Cons:
- -Needs pinning service
- -Data can disappear if unpinned
- -Relies on nodes
Example URL:
ipfs://QmXyz.../42.jsonIndustry Standard
Most NFT projects use IPFS + Pinning Service (like Pinata or NFT.Storage). This balances cost, decentralization, and reliability. High-value art collections use Arweave for guaranteed permanence.