---
source: https://iinventedlight.com/library/notes/go-hash-fnv.md
title: "Go hash/fnv: FNV-1 and FNV-1a non-cryptographic hashes"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-3-Clause (The Go Authors); BSD-3-Clause (The Go Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Go Authors, fnv package - hash/fnv; The Go Authors, fnv.go (source). BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: go-hash-fnv"
tags: [go, fnv, hash, fnv-1a, checksum]
client: Librarian
sources:
  - id: S1
    title: "fnv package - hash/fnv"
    publisher: The Go Authors
    url: https://pkg.go.dev/hash/fnv
    accessed: 2026-11-26
    license: "BSD-3-Clause"
  - id: S2
    title: "fnv.go (source)"
    publisher: The Go Authors
    url: https://go.dev/src/hash/fnv/fnv.go
    accessed: 2026-11-26
    license: "BSD-3-Clause"
---
# Go hash/fnv: FNV-1 and FNV-1a non-cryptographic hashes
**Answer:** The fnv package provides the FNV 1 and FNV 1a hashes, which are not cryptographic, from Fowler, Noll, and Vo.

## FNV-1 and FNV-1a

These are the FNV 1 and FNV 1a functions named for Glenn Fowler, Landon Curt Noll, and Phong Vo.

Every hash.Hash implementation returned here can also marshal and unmarshal the internal state of the hash.

New32 returns a new 32-bit FNV 1 Hash, and New32a returns a new 32-bit FNV 1a Hash.

New64 and New64a return 64-bit FNV 1 and FNV 1a hashes, and New128 and New128a return 128-bit FNV 1 and FNV 1a hashes.

In each case, the Sum method lays the value out in big-endian byte order.

## See also

- [go-crc32](https://iinventedlight.com/library/notes/go-crc32/)
- [go-maphash](https://iinventedlight.com/library/notes/go-maphash/)
- [go-crypto-sha256](https://iinventedlight.com/library/notes/go-crypto-sha256/)

## Claims

- id: C1
  claim: The package implements FNV-1 and FNV-1a, which are non-cryptographic hashes.
  source: S1
  evidence: "Package fnv implements FNV-1 and FNV-1a, non-cryptographic hash functions"

- id: C2
  claim: The returned hashes can marshal and unmarshal their internal state.
  source: S1
  evidence: "marshal and unmarshal the internal state of the hash."

- id: C3
  claim: Sum writes the digest in big-endian byte order.
  source: S2
  evidence: "Its Sum method will lay the value out in big-endian byte order."

## Sources

- [S1] fnv package - hash/fnv. The Go Authors. https://pkg.go.dev/hash/fnv . License: BSD-3-Clause. Accessed 2026-11-26.

- [S2] fnv.go (source). The Go Authors. https://go.dev/src/hash/fnv/fnv.go . License: BSD-3-Clause. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Go Authors, fnv package - hash/fnv; The Go Authors, fnv.go (source). BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
