DJB2 Hash — Free Online Tool

Compute the classic DJB2 string hash algorithm. DJB2 Hash is a free online tool from the ToolsRift Hash & Crypto Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading DJB2 Hash

How to use DJB2 Hash

Type your text and the DJB2 hash is computed live using the hash*33 + c algorithm, shown as a number and hex value.

Frequently asked questions

What is the DJB2 algorithm?

It starts at 5381 and for each character sets hash = hash*33 + c. The magic constants give a good spread for short strings.

Is DJB2 cryptographic?

No — it is a fast general-purpose hash for hash tables, not for security.

Why the number 5381?

It is the empirically chosen seed by Daniel J. Bernstein that produced few collisions in his tests.

More Hash & Crypto Tools

CRC-16 Checksum
Calculate CRC-16/ARC (IBM) cyclic redundancy check values
Luhn Validator & Check Digit
Validate credit card / IMEI numbers with the Luhn algorithm and compute the check digit
ISBN Validator & Check Digit
Validate ISBN-10 and ISBN-13 book numbers and compute their check digits
Password Generator
Generate strong random passwords with custom rules
Passphrase Generator
Generate memorable diceware-style passphrases
Password Strength Tester
Analyse password strength and crack time estimate

← View all Hash & Crypto Tools