SpookyHash explained in plain terms means understanding the fast hash that Bob Jenkins built to be scary quick, a design from 2011 that turns any input into a 128-bit fingerprint with a state of twelve 64-bit words. The central question is why a hash from a single designer still matters when big companies publish their own, and the answer is that SpookyHash is one of the fastest hashes ever measured on 64-bit machines, so it lets programs fingerprint data without slowing down, and that speed is the whole point of the design.
SpookyHash is a non-cryptographic hash function designed by Bob Jenkins and released in 2011, producing 128-bit digests made of two 64-bit halves, with 64-bit and 32-bit variants as well. It turns a message of any length into a fixed fingerprint by processing 32 bytes at a time, and it is built on the idea that a hash should use the full width of a 64-bit processor, which means the design keeps twelve words of state in play at once, and that width is what makes it unlike the narrow hashes of its era.
This article gives you five facts about SpookyHash, explains what it is, how it works, and why it still matters.
Key takeaways
- SpookyHash is a fast hash from 2011, with a 128-bit digest.
- It was designed by Bob Jenkins, author of the Jenkins hashes.
- It processes 32 bytes at a time with twelve words of state.
- It is among the fastest hashes on 64-bit machines.
- It is used in hash tables and data systems today.
What SpookyHash is
The first fact is that SpookyHash is a 128-bit hash, which means its output is two 64-bit numbers instead of one. A wider output makes accidental collisions vanishingly rare, which means a table can hold billions of keys without two sharing a fingerprint, and because the width costs little speed, the design gets safety almost for free.
The second fact is that it comes from Bob Jenkins, one of the great hash designers. Jenkins wrote the one-at-a-time hash and the lookup family before SpookyHash, which means the design rests on decades of experience, and because Jenkins tested his hashes against every weakness he knew, the design is unusually well tuned.
The third fact is that it works in 32-byte blocks. SpookyHash swallows a whole 32-byte chunk of the message in each step, which means long inputs are processed in big strides, and because the state holds twelve words at once, the mixing has plenty of room to spread each chunk around.
The fourth fact is that it is built for 64-bit machines. SpookyHash uses 64-bit multiplications and rotations throughout, which means it runs at full speed on the processors every server uses, and because the design fits the hardware so well, it beats most rivals in raw throughput.
The fifth fact is that it survived as a practical tool, not a standard. SpookyHash showed that a single careful designer could outrun corporate hash families, which means it is still the first example engineers meet when they learn that craftsmanship beats committees, and that reputation is the reason it is used in data systems rather than in textbooks.
Our guide to MurmurHash explains the fast hash SpookyHash was measured against, and our guide to xxHash explains the rival that later took the speed crown.
How SpookyHash works
Everything starts with the state, twelve 64-bit words that hold the running fingerprint. SpookyHash sets its state from the seed before reading any input, which means the empty message still has a well-defined digest, and because the state is wide, the design has plenty of room to mix data into.
Each block begins with 32 bytes of input, which the hash mixes into the state. SpookyHash takes the next 32 bytes of the message and folds them into the twelve words, which means the hash absorbs data in big chunks, and because the chunks are wide, the design needs far fewer steps than a hash that swallows one byte at a time.
The mixing is what makes the design work as a whole. SpookyHash applies a scrambling step that rotates, adds and multiplies the words together, which means every new block spreads its influence across the whole state, and because the mixing repeats as data flows in, the fingerprint depends on every byte of the message.
The state spreads the effect further. Data that entered earlier keeps influencing the state through the twelve words long after it arrived, which means a single changed byte alters the digest completely, and because the influence lingers, the hash has a long memory for its input.
The finalisation is what turns the state into a digest. After the last block, SpookyHash runs the state through extra scrambling rounds with no new input, which means the digest depends on the whole message and nothing else, and because the final rounds are the same as the mixing rounds, the design needs no special finishing step.
The digest comes from the final state, read out as two 64-bit halves. SpookyHash outputs its first two state words as the 128-bit fingerprint, which means the result is a fixed size whatever the input, and that size is exactly what a hash table or a database index needs for its lookup key.

Comparing SpookyHash with other fast hashes
SpookyHash is one of several fast hashes built for real programs, and each was built with a different emphasis. MurmurHash is the older general-purpose fast hash, xxHash is the newer one that wins on raw speed, and SpookyHash is the one with the widest state and the strongest mixing, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | SpookyHash | MurmurHash | xxHash |
|---|---|---|---|
| Digest size | 128 bits | 32 or 128 bits | 32, 64 or 128 bits |
| Block size | 32 bytes | 16 bytes | 32 bytes |
| State words | Twelve 64-bit words | Four 32-bit words | Four 64-bit words |
| Year | 2011 | 2008 | 2012 |
| Best for | Wide fingerprints | General hashing | Raw speed |
The practical result is that SpookyHash is the right choice for wide fingerprints, MurmurHash suits general hashing, and xxHash fits raw speed instead.
Where SpookyHash is used
Hash tables use it to spread keys with a wide fingerprint. A table that stores billions of keys wants a 128-bit hash, because collisions stay rare even at huge scale, and that width is the reason SpookyHash earns its keep in large systems.
Data systems use it to fingerprint records quickly. A pipeline that hashes long strings needs a hash that processes big blocks, because a byte-at-a-time hash becomes the bottleneck, and that speed is the reason SpookyHash appears in data processing.
Caches use it to name stored items reliably. A cache that fingerprints content needs a hash whose output almost never collides, because a collision means serving the wrong data, and that safety is the reason a 128-bit digest is worth having.
Research uses it as a case study in wide-state design. Engineers still cite SpookyHash when they discuss how a big state improves mixing, because it is the clearest example of the idea in a real design, and that lesson shapes how new hashes are judged today.
Teaching uses it as the craftsman example. Courses introduce SpookyHash when they explain that one careful designer can beat a committee, because it is the clearest case of experience paying off, and a student who understands SpookyHash understands why testing matters in hash design.
Strengths and limits
The greatest strength of SpookyHash is its speed at width. A 128-bit hash that runs as fast as most 64-bit hashes gives programs wide fingerprints for free, and that strength is real, measured in benchmarks on 64-bit machines and confirmed by the systems that adopted it.
It is also a strength that the design is thoroughly tested. Jenkins measured his hash against every statistical test he knew, and that testing is worth more than cleverness in a field where a hash with a hidden bias is a hash that fails in production.
The limits are real, though, and the biggest is that it is not cryptographic. SpookyHash is built for speed, not for resisting a determined attacker, which means it must never guard secrets or signatures, and a system that needs real security must use a cryptographic hash instead.
SpookyHash checklist
- Use SpookyHash for fingerprinting, never for security or passwords.
- Remember it produces a 128-bit digest in two 64-bit halves.
- Note the 32-byte blocks make it fast on long inputs.
- Compare it with MurmurHash to see the width trade-off.
- Study the twelve-word state, which is what mixes so well.
- Check the seed, which lets tables hash the same key differently.
- Keep real digests behind standard hashes for signatures.
- Read Jenkins’ 2011 notes to see how it was tested.
- Choose xxHash when raw speed matters more than width.
Frequently asked questions
What is SpookyHash in simple terms?
It is a 2011 fast hash by Bob Jenkins that turns any input into a 128-bit fingerprint by processing 32-byte blocks through twelve words of state.
Who designed SpookyHash?
Bob Jenkins, the hash designer behind the Jenkins one-at-a-time hash and the lookup family, who released it in 2011.
How is SpookyHash different from MurmurHash?
Both are fast non-cryptographic hashes, but SpookyHash uses a wider twelve-word state and 32-byte blocks while MurmurHash uses a smaller state.
Is SpookyHash still secure?
It is fast and well tested, but it is not a cryptographic hash, so it must never guard secrets, signatures or passwords.
Where is SpookyHash used?
In hash tables, in data systems, in caches, and in research on fast hashing.
When should I use SpookyHash?
When you need a wide 128-bit fingerprint at high speed, when your inputs are long, or when collisions must stay extremely rare.
The bottom line
SpookyHash explained in one line is this: the wide fast hash, a 2011 design that mixed 32-byte blocks through twelve words of state and showed craftsmanship can outrun committees.
It is proof that careful testing pays off, and the reason it still matters is that every wide hash designed since has been judged partly by the lesson SpookyHash taught.
This article is general information about how SpookyHash works, not advice about choosing encryption for a particular device or system.







