xxh3 hash generator online
Create the xxh3 hash of any text: 16 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.
Compare, hash a file, copy any format
Type text in the tool above or choose a file. Case, spaces and prefixes like xxh3: don't matter.
hello world- Hex
d447b1ea40e6988b- HEX (upper case)
D447B1EA40E6988B- Base64
1Eex6kDmmIs=- Decimal (unsigned)
15296390279056496779- Decimal (signed 64-bit)
-3150353794653054837
Files are read in your browser and never uploaded.
What is XXH3 (64-bit)?
XXH3 is the newest xxHash (stable since 2020) with a 64-bit result. On modern CPUs it hashes data at memory speed, which makes it a favourite for checksums, caches and de-duplication. It is a different algorithm than XXH64, so the results differ.
- Fast file checksums
- Caches and de-duplication
- Hash tables
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.
……Calculating…
Spreading keys over a hash table
Fast hashes like XXH3 (64-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.
Calculating…
The same result in your code
Every snippet prints d447b1ea40e6988b for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('xxh3', '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.
XXH3 (64-bit) test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | xxh3 |
|---|---|
| empty string | 2d06800538d394c2 |
abc | 78af5f94892f3950 |
hello world | d447b1ea40e6988b |
The quick brown fox jumps over the lazy dog | ce7d19a5418fb365 |
Why your XXH3 (64-bit) doesn't match
XXH3 (64-bit) and XXH64 are different algorithms with the same length. Check which one a tool or file format means.
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.
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.
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.
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:".
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.
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.
| Algorithm | Hash | Bits |
|---|---|---|
| fnv132 | 548da96f | 32 |
| fnv1a32 | d58b3fa7 | 32 |
| fnv164 | 7dcf62cdb1910e6f | 64 |
| fnv1a64 | 779a65e7023cd2e7 | 64 |
| joaat | 3e4a5a57 | 32 |
| murmur3a | 5e928f0f | 32 |
| murmur3c | c0b21a8814f3c1e11c0d151a9b0c9e2c | 128 |
| murmur3f | 533f6046eb7f610eab97467d60eb63b1 | 128 |
| xxh32 | cebb6622 | 32 |
| xxh64 | 45ab6734b21e6968 | 64 |
| xxh3 | d447b1ea40e6988b | 64 |
| xxh128 | df8d09e93f874900a99b8775cc15b6c7 | 128 |
How fast is XXH3 (64-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.
Questions about XXH3 (64-bit)
Is XXH3 (64-bit) a secure hash?
No. XXH3 (64-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 (64-bit) hash?
A XXH3 (64-bit) hash is always 64 bits, written as 16 hexadecimal characters (8 bytes), no matter how long the input is.
Is XXH3 the same as XXH64?
No. Both give 64 bits, but XXH3 is a newer, different algorithm. Results differ.