Decode any IPFS CID (v0 or v1) into multibase, multicodec, hash function and digest bytes. Converts between CIDv0 and CIDv1 base32 forms. Runs client-side.
An IPFS Content Identifier is not a URL and not a hash. It is a self-describing address that encodes the content-addressing algorithm inside itself. Before you can compare two CIDs, pin content, or debug a gateway fetch, you need to know what encoding scheme and hash function a given string actually uses. That is what this inspector surfaces.
Paste any CID and see its version, multibase encoding, multicodec, hash function name, digest length, and the raw digest bytes as hex. Load Sample inserts bafkreiczsmdcqvwfnfskbdtppxaqqzs4flbxhhlcylhg53zhzjymxibvym, a CIDv1 base32 raw-codec SHA-256 CID. For CIDs that use dag-pb and SHA-256 (the two most common values for files added with the IPFS desktop app), the inspector also shows the equivalent CIDv0 or CIDv1 form so you can compare with pinning services that default to different versions. Nothing leaves the browser.
A CIDv1 has four layers stacked left to right after the multibase prefix character.
b = base32 lowercase, z = base58btc, f = hex. Strip the prefix to get the raw CID bytes.01 (one byte) for CIDv1.0x55 = raw bytes, 0x70 = dag-pb (the default for files added with ipfs add).0x12 with a 32-byte digest.CIDv0 skips all of this and is simply a Base58btc SHA-256 multihash with an implicit dag-pb codec, which is why every CIDv0 starts with "Qm".
Click Load Sample twice to reach the classic QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG (the go-ipfs 0.4.x readme). The inspector decodes the Base58btc string into 34 bytes: the first two bytes are the multihash header 0x12 0x20 (SHA-256, 32-byte digest), and the remaining 32 bytes are the SHA-256 digest. Since the codec is implicit dag-pb and the hash is SHA-256, the inspector also shows the CIDv1 base32 equivalent. Both strings resolve to the same content on any IPFS gateway.
Accepted multibase prefixes are b (base32 lowercase), B (base32 uppercase), z (base58btc), and f (hex). CIDv0 is detected automatically when the input starts with Qm. The codec and hash-function tables cover around 20 of the most common multicodec and multihash codes; an unknown code shows its numeric value in hex rather than failing silently. Varints larger than 35 bits are rejected. The IPFS gateway URL at the bottom of the result card is a convenience link only; the tool itself makes no network request.
Paste a CIDv0 (Qm…) or a CIDv1 (bafy…, bafk…, z…, f…). Decoded entirely in your browser.
Equivalent representations
Fetch on IPFS
https://ipfs.io/ipfs/bafkreiczsmdcqvwfnfskbdtppxaqqzs4flbxhhlcylhg53zhzjymxibvym