Skip to content

Salted Hash GeneratorNew

Hash text with a salt (SHA-256/512) or derive a PBKDF2 key.

Runs in your browser · free · no sign-up

SHA-256(salt + text)

The salt is treated as UTF-8 text exactly as typed. Store the salt (and iterations) next to the hash; you need them to check a password later.

About the Salted Hash Generator

See exactly what a salted hash is, test values for your code, or create a PBKDF2 hash with the salt and iteration count you choose.

A hash turns any text into a fixed-length fingerprint. On its own, hashing a password is weak: everyone who uses “password123” gets the same hash, and huge pre-computed tables can reverse common ones instantly. A salt fixes that by adding a unique random value to each password before hashing, so the same password produces different hashes for different users.

This tool shows both approaches. In the simple mode the salt is joined to the text (before or after, as your code does) and hashed with SHA-256, SHA-512, SHA-384 or SHA-1. In PBKDF2 mode, the text is run through PBKDF2-HMAC-SHA-256 with your salt and the number of iterations you choose, producing a 32-byte key. PBKDF2 is deliberately slow, which is exactly what you want for password storage: each guess costs an attacker the same thousands of rounds.

Use it to check that your backend produces the expected value, to understand what “salt + hash” really means, or to create test fixtures. The “New random salt” button creates 16 cryptographically random bytes as hex, which you can store next to the hash.

For production login systems prefer a modern password hashing function such as Argon2id, scrypt, bcrypt or PBKDF2 with a high iteration count, and never invent your own scheme.

How to use the Salted Hash Generator

  1. 1Type the text or password and a salt, or click New random salt.
  2. 2Choose a hash method, and the salt position or PBKDF2 iterations.
  3. 3Copy the result in hex or Base64.

Key features

  • SHA-1/256/384/512 with salt before or after.
  • PBKDF2-HMAC-SHA-256 with custom iterations.
  • Random salt generator.
  • Hex or Base64 output.

Practical uses

  • Checking backend password-hashing code.
  • Creating test data with known salts.
  • Learning why salts and slow hashes matter.

Tips and common mistakes

  • Use a different random salt for every password.
  • Store the salt and iteration count with the hash.
  • Raise iterations as hardware gets faster.

Limitations

  • bcrypt, scrypt and Argon2 are not included.
  • Very high iteration counts can take several seconds on phones.

Privacy

All hashing happens on your device.

Frequently asked questions

Why add a salt?

A unique salt per password means identical passwords get different hashes and pre-computed “rainbow tables” stop working.

Should I store passwords as SHA-256 + salt?

For real login systems use a slow function such as PBKDF2, bcrypt, scrypt or Argon2. A single SHA-256 is fast, which helps attackers guess.

How many PBKDF2 iterations?

Current guidance (OWASP) suggests at least 600,000 for PBKDF2-HMAC-SHA-256.

How is the salt used?

Exactly as typed, as UTF-8 text, joined before or after the text for plain hashes, or passed as the PBKDF2 salt.

Related tools

AES Text EncryptionNewEncrypt and decrypt text with a password (AES-256-GCM).
AES File EncryptionNewPassword-protect any file as an encrypted .enc file.
HMAC GeneratorNewCreate and verify HMAC-SHA256, SHA512, SHA384 or SHA1 signatures.
TOTP Code GeneratorNewLive 2FA codes from a secret key, plus an authenticator QR code.