---
title: "IPFS CIDv1 Computer"
method: POST
path: "/v1/tools/compute_ipfs_cidv1"
tags: ["ipfs", "cidv1", "cid", "multihash", "sha-256", "base32", "multibase", "tokenuri", "nft", "tokenization", "pre-mint", "content addressing", "dag-pb", "raw codec"]
---

# IPFS CIDv1 Computer

`POST /v1/tools/compute_ipfs_cidv1`

## Request

- Base URL: `https://ainumbers.co`
- URL: `https://ainumbers.co/v1/tools/compute_ipfs_cidv1`
- Auth: none declared

Computes a CIDv1 (Content Identifier version 1) for any file upload or text input in the browser using WebCrypto SHA-256. Outputs the CID string in base32 lowercase multibase encoding (RFC 4648, 'b' prefix) and displays the full multihash breakdown: function code (0x12), digest length (0x20), digest hex, CID bytes hex, and annotated byte-level breakdown. Supports raw (0x55) and dag-pb (0x70) codecs. No pinning, no upload, no network calls. Use to verify what tokenURI a file will resolve to on IPFS before minting.

**Tool URL:** https://ainumbers.co/tools/529-ipfs-cidv1-computer.html

## Request body

- object
  - `text` string: Text content to hash (if no file provided)
  - `codec` 'raw' | 'dag-pb': Codec: raw (0x55) for unstructured bytes, dag-pb (0x70) for UnixFS

## Response `200`

Successful tool execution result

- object
  - `cid` string: CIDv1 string in base32 lowercase multibase (starts with 'b')
  - `codec` string
  - `codecCode` string
  - `multihashFn` string
  - `multihashFnCode` string
  - `digestLength` integer
  - `digestHex` string
  - `cidBytesHex` string
  - `byteLength` integer

---

[API](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite.md) · [All operations](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/llms.txt) · [OpenAPI document](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/revisions/b462e4f5bb28?raw)
