FNV-1a is one of the simplest fast hash functions in wide use, valued for hash tables, bloom filters and quick content keying. This calculator computes both the 32-bit and 64-bit FNV-1a hashes of your text directly in the browser, with copy buttons for each result.
How it works
FNV-1a processes the input one byte at a time:
- Initialise the hash to the FNV offset basis (
2166136261for 32-bit,14695981039346656037for 64-bit). - For each byte: first XOR the byte into the hash, then multiply the hash by the FNV prime, keeping the result modulo
2^32or2^64. - The final hash is the accumulated value.
The defining feature of the “a” variant is that the XOR happens before the multiply, which improves how input changes spread across the output bits.
Example
Hashing the string hello gives 0x4f9f2cab (32-bit) and 0xa430d84680aabd0b (64-bit). The tool reproduces both exactly.
Notes
The 64-bit hash is computed with BigInt so all 64 bits stay accurate; the 32-bit hash uses an emulated 32-bit multiply for correct overflow. FNV-1a has no cryptographic strength — never rely on it for security. Everything is computed locally and nothing leaves your browser.