Catalog/encoding-fnv

Encoding

FNV-1 / FNV-1a hash API

Computes the non-cryptographic FNV-1 or FNV-1a hash at 32 or 64 bits over bytes, with exact wraparound arithmetic. Answers 'What is the FNV-1a 32 of this string?', 'Compute a 64-bit FNV hash for hash-table seeding.'

Price$0.01per request
MethodPOST
Route/v1/encoding/fnv
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
fnvfnv1fnv1ahashnon-cryptographic32-bit64-bitencoding
API URLhttps://x402.hexl.dev/v1/encoding/fnv
Integration docs
Example request
{
  "value": "a",
  "variant": "fnv1a-32"
}
Example response
{
  "variant": "fnv1a-32",
  "hash": "3826002220",
  "hashHex": "0xe40c292c",
  "bits": 32,
  "byteLength": 1,
  "interpretation": "fnv1a-32 of 1 bytes = 0xe40c292c."
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "examples": [
        "a"
      ]
    },
    "variant": {
      "type": "string",
      "enum": [
        "fnv1-32",
        "fnv1a-32",
        "fnv1-64",
        "fnv1a-64"
      ]
    },
    "inputEncoding": {
      "type": "string",
      "examples": [
        "utf8",
        "hex",
        "base64"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}