IPFS vs Arweave: where to store a token's metadata and documents
A contract stores a reference: why an IPFS CID changes when a file is re-imported, and what Arweave's one-time payment for 200 years actually buys.

Each token in an ERC-721 collection has a reference in its contract, the tokenURI, which points to a JSON metadata file that in turn links to the image; a security token can record the location or the hash of the offering document in the same way. Writing a multi-megabyte file on-chain would cost gas in proportion to its size, so the contract fixes the reference and the file lives on another network. IPFS and Arweave are two decentralized storage networks that handle that part with opposite models.
The on-chain reference lasts as long as the commitment to keep the bytes it points to. IPFS separates two functions: the content identifier (CID) lets anyone verify that a file is the one requested, but the file only remains available while some node keeps it pinned, and the CID itself depends on how the file was imported. Arweave charges upfront for storing 20 replicas for 200 years at present cost, in exchange for the data being impossible to withdraw and for each node and gateway applying its own content policy. Choosing between them means deciding who answers for those bytes when the team that published them stops doing so, and what happens if they need correcting.
What the contract stores and what stays off the network
The contract guarantees that the reference does not change without going through its rules: if the tokenURI is immutable, nobody can replace it, and if there is a function to update it, who may call it is a permissions decision written into the code. What the contract does not control is the availability of the target. A tokenURI pointing to a web server depends on that server still responding and not changing the JSON; one pointing to an IPFS CID depends on some node serving that content; and one pointing to an Arweave transaction ID depends on the network and its gateways continuing to serve it.
The difference between the two networks lies in how that availability is paid for and who sustains it. On IPFS it is paid continuously by whoever runs the nodes that pin the content, whether their own or a provider's. On Arweave it is paid once by whoever uploads the data, into a fund that compensates miners as they prove they store it.
IPFS: the CID identifies content, the pin keeps it
A CID is derived from the content, so whoever receives the data can verify that it matches the requested reference. The IPFS persistence documentation makes clear that this does not mean anyone keeps it: each node frees space through garbage collection and only protects what it has pinned, and content is lost if the last node holding it stops doing so. Pinning services run nodes and pin data for a fee, and the same documentation warns that there is no guarantee they will keep the service running.
In Kubo, the Go implementation of IPFS, whose latest release is 0.43.1 from September 2026, automatic garbage collection only runs if the daemon is started with --enable-gc. It then runs every hour or when the datastore reaches 90% of its limit, which defaults to 10 GB, according to its configuration reference. A development node without that option can keep unpinned files indefinitely and give the impression that the content is secure, until the day the node is reinstalled or shut down.
The same file with two different CIDs
Imagine a hypothetical collection of 5,000 NFTs whose metadata was uploaded with an in-house Kubo node using the default configuration, and whose contract sets that folder's CID as the tokenURI base. With those settings, ipfs add produces version 0 CIDs, without raw leaves and with 262,144-byte blocks. A year later, the team decides to move pinning to a provider and, to do so, re-adds the same files with a tool configured with the unixfs-v1-2025 profile, the one Kubo recommends for new projects: version 1 CIDs, raw leaves, SHA-256 and 1 MiB blocks.
The bytes are identical and the resulting CID is not. A CID is not the file's hash but the root of the graph the file is chunked into, and it changes with the CID version, block size and leaf format; Kubo's reference also notes that only fixed-size chunking guarantees the same CID for the same data, and the IPIP-499 specification defines those profiles precisely so the calculation can be reproduced across implementations. The provider pins the new CID, the in-house node is shut down, and the contract's tokenURI still points to the original CID, which nobody announces any more. The metadata exists, but not at the address the contract publishes.
The correct migration is done by CID, not by file. Kubo can export the whole graph as a CAR file with ipfs dag export and import it on another node with ipfs dag import, and the Pinning Service API defines a pin as a request carrying the CID to be pinned recursively, which moves through the queued, pinning and pinned states, or failed if it does not complete. The acceptance test has two parts: retrieving the exact CID stored in the contract from a path other than the in-house node and, if the project recomputes CIDs in continuous integration, writing down the import profile so the result is reproducible.
Arweave: an upfront payment calculated for 200 years
Arweave starts from a different economic model. According to its lightpaper, whoever uploads data makes a one-time contribution to a storage endowment, and the protocol sets the amount as the present cost of keeping 20 replicas for 200 years. Miners are paid from that fund as they prove they store the data. The document justifies permanence with an explicit assumption: the cost of storing data for a fixed period only needs to fall by 0.5% a year for the fund to last indefinitely, compared with an average decline the document itself puts at around 38.5% a year over the last 50 years. It also acknowledges that the fund's health depends on the price of the AR token.
Two practical consequences follow from the same document. Uploads can go through bundlers, services that group several users' data into one transaction, settle in AR and can charge users through other payment methods. And the network applies a voluntary system of content policies: each miner decides which data it stores and serves, and each gateway what it indexes and displays, according to the laws that apply to it, so data stored on the network is not guaranteed to be served by every gateway. The node software is still being released: the latest version, 2.9.7, is from 21 October 2026.
Corrections, versions and personal data
Neither network allows a file to be edited, because different content has a different reference. On IPFS, publishing a corrected version produces a new CID, and the previous one disappears when nobody pins it; on Arweave, the previous version remains stored. For a document with legal effect, such as the terms of an offering, that means versions have to be designed into the contract or the application: which reference is current, since when, which one each investor accepted, and who has permission to declare a new one current.
Arweave's permanence also applies to what should never have been published. Personal data uploaded to the network cannot be withdrawn by whoever uploaded it, and encrypting it only shifts the problem to key custody. On IPFS, unpinning a file does not guarantee it disappears if another node kept it. That is why personal data and investor identification documents stay off both networks, and what gets published is the reference or hash of a document the company holds under its own retention and erasure obligations.
IPFS vs Arweave: Arweave for what must outlive the team, IPFS when someone owns the pin
Arweave answers the question of who pays for storage once the project no longer exists: payment was made at upload and does not depend on a subscription. It suits metadata and documents that must not change and whose availability has to outlive the team that published them, such as those of a closed collection. Its guarantee is an economic model with explicit assumptions, not a service contract, and its permanence is a drawback for any data that might need to be withdrawn.
IPFS provides verifiable identification and content distribution, and it fits when an organization explicitly takes responsibility for keeping the pin: on its own nodes or with one or more providers, with a CID-based migration procedure. Its risk lies not in the protocol but in operations: a pin nobody pays for or a CID recomputed with different parameters breaks the reference without the contract noticing.
Metlabs builds NFT collections and tokenization platforms in which we decide what is published on-chain, what is stored on decentralized networks and what the issuer holds. If you are designing that split, tell us which documents and metadata the project handles and who should answer for them ten years from now.
Frequently asked questions
Got a blockchain project in mind?
From idea to product, strategy and technology must move forward together.







