xxh128 hash generator online

Create the xxh128 hash of any text: 32 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

Compare, hash a file, copy any format

Type text in the tool above or choose a file. Case, spaces and prefixes like xxh128: don't matter.

Formats for hello world
Hex
df8d09e93f874900a99b8775cc15b6c7
HEX (upper case)
DF8D09E93F874900A99B8775CC15B6C7
Base64
340J6T+HSQCpm4d1zBW2xw==

Files are read in your browser and never uploaded.

In short

What is XXH3 128-bit?

XXH128 is the 128-bit form of XXH3. It is almost as fast as the 64-bit version and makes accidental collisions practically impossible even across billions of items. It is not cryptographic.

Not cryptographicBuilt for speed or error detection. Anyone can find inputs with a given hash.
Try it

Change one letter, see what happens

A good hash changes about half of all bits when one input character changes. Checksums and fast hashes often change fewer, which is fine for them, but it shows why they are no security tool.

Hash A…
Hash B…

Calculating…

What it's for

Spreading keys over a hash table

Fast hashes like XXH3 128-bit decide which slot of a hash table a key goes to. A good one spreads similar keys evenly. Here 6,400 keys (user1 … user6400) go into 64 slots, compared with a naive sum of the bytes.

xxh128
Sum of bytes

Calculating…

Use it in code

The same result in your code

Every snippet prints df8d09e93f874900a99b8775cc15b6c7 for hello world, the same as the tool. They are run against PHP's hash() before each release.

PHP
echo hash('xxh128', 'hello world');

Python, JavaScript, Java and Go have no built-in function for it. Libraries exist (for example xxhash, mmh3 or fnv packages); compare their output with the test values above, since seeds and byte order vary.

Test values

XXH3 128-bit test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputxxh128
empty string99aa06d3014798d86001c324468d497f
abc06b05ab6733a618578af5f94892f3950
hello worlddf8d09e93f874900a99b8775cc15b6c7
The quick brown fox jumps over the lazy dogddd650205ca3e7fa24a1cc2e3a8a7651
Common mistakes

Why your XXH3 128-bit doesn't match

Different seed, different hash

MurmurHash3 and xxHash take a seed. This tool, like PHP's hash() without options, uses seed 0. A library with another default seed gives other results.

A line break sneaks in

echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.

Same text, different bytes

The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.

Upper or lower case

Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".

This tool trims and uses CRLF

Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.

Compare

The Fast non-cryptographic family side by side

The same text, every Fast non-cryptographic algorithm. Shown for hello world; type in the tool above to use your text.

AlgorithmHashBits
fnv132548da96f32
fnv1a32d58b3fa732
fnv1647dcf62cdb1910e6f64
fnv1a64779a65e7023cd2e764
joaat3e4a5a5732
murmur3a5e928f0f32
murmur3cc0b21a8814f3c1e11c0d151a9b0c9e2c128
murmur3f533f6046eb7f610eab97467d60eb63b1128
xxh32cebb662232
xxh6445ab6734b21e696864
xxh3d447b1ea40e6988b64
xxh128df8d09e93f874900a99b8775cc15b6c7128
Measured on your device

How fast is XXH3 128-bit?

Hashes up to 4 MB of random data in your browser and compares with sha256, md5. Browser numbers are lower than native code, but the ranking holds.

FAQ

Questions about XXH3 128-bit

Is XXH3 128-bit a secure hash?

No. XXH3 128-bit is built for speed or error detection, not security: anyone can find or construct inputs with a given value. Use SHA-256 when someone might tamper with the data.

How long is a XXH3 128-bit hash?

A XXH3 128-bit hash is always 128 bits, written as 32 hexadecimal characters (16 bytes), no matter how long the input is.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.