Hash generator
Calculate a SHA-256, SHA-384 or SHA-512 text digest.
Your result will appear here.
Enter your input, then run the tool.How to use the hash generator
A hash is a repeatable fingerprint of text. This tool calculates a SHA digest and displays it as hexadecimal.
Enter text, choose SHA-256, SHA-384 or SHA-512, run the tool and copy the digest.
- Type or paste text in the Input box. Every character counts, including spaces and line breaks.
- Choose SHA-256, SHA-384 or SHA-512 in the Mode list.
- Press Run tool.
- Copy the digest with Copy result, or download it as hth-hash-generator.txt.
Good to know
- The input is encoded as UTF-8 before hashing.
- Available algorithms are SHA-256, SHA-384 and SHA-512.
- The result is a lowercase hexadecimal digest, not encrypted text.
- Input is limited to 500,000 characters and processed in your browser.
Examples
- abc with SHA-256 → ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, the standard test value.
- Empty input with SHA-256 → e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.
- Digest lengths: SHA-256 gives 64 hex characters, SHA-384 gives 96 and SHA-512 gives 128.
If something goes wrong
My hash doesn’t match echo hello | sha256sum.
echo adds a line break, so that command hashes “hello” plus a newline (5891b5b5…). This tool hashes exactly what you typed: hello gives 2cf24dba…. Use printf hello or echo -n hello instead.
Text copied from a Windows file gives a different hash from the file.
Browser text boxes store line breaks as LF, so Windows CRLF line endings change. Use a command-line tool such as sha256sum or certutil to hash files.
A very long paste gives an unexpected hash.
The input box stops accepting text at 500,000 characters, so a longer paste is cut off before hashing. Hash a shorter text.
Questions
Can I get my text back from a hash?
No. A digest is one-way; it cannot be decoded into the original text.
Will the same text make the same hash?
Yes, when the algorithm and exact text are the same.
Can it hash a file?
No. This workbench hashes text you enter.
Is SHA-256 suitable for storing passwords?
Not on its own. Fast hashes can be guessed quickly; password storage needs a slow, salted algorithm such as bcrypt, scrypt or Argon2.
Does capitalisation matter?
Yes. Hello and hello give completely different digests. The digest itself is lowercase hex, so compare it with another digest without regard to case.
Background reading: Browser-based vs server-based file tools: what is the difference? · Base64, URL encoding and HTML entities: which one do you need?
Next steps: Base64 encoder and decoder · UUID generator · Strong password generator
