Features
- Four algorithmsSHA-1, SHA-256, SHA-384 and SHA-512.
- LiveHashes update as you type.
- Runs on your deviceYour data is processed in the browser and is never uploaded.
How to use the hash generator
- Type or paste text.
- Read the hashes as they update.
- Copy the one you need.
What not to use hashes for
SHA-1 is broken for collision resistance and should not be used for security. Plain SHA-2 is also unsuitable for storing passwords; use a slow password hash such as Argon2 or bcrypt.
SHA-256 in JavaScript
const digest = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(text));
const hex = [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, '0')).join('');
Frequently asked questions
Can a hash be reversed?
Not directly, but short or common inputs can be guessed.
Why does my hash differ from a file's?
A trailing newline or different line endings change the result.
Is MD5 supported?
No.