Skip to content

SHA hash generator

Calculate SHA-256, SHA-384 and SHA-512 (and SHA-1 as obsolete) of text or files with Web Crypto. A hash is not encryption.

AvailableIn your browserInput: Text

How to use: SHA hash generator

  1. Type text or choose a file.
  2. Choose SHA-256, SHA-384, SHA-512 or SHA-1.
  3. Copy the hexadecimal hash.

What it accepts and what you get

Input
Text or files.
Output
The cryptographic digest in hexadecimal.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • SHA-1 is flagged as obsolete for security; MD5 is not offered.
  • Hashing is not encryption: it cannot be “decrypted”, but it is not suitable for storing passwords without a salt.

Frequently asked questions

What is a SHA hash and what is it for?

It is a cryptographic digest of a text or file: if one character of the content changes, the hash changes completely. It is useful, for example, to check that a file has not been altered.

Can I use a hash to store passwords?

Not directly: a hash is not encryption and without a salt it is not suitable for passwords. SHA-1 is flagged as obsolete for security and MD5 is not offered.

When to use it

  • When you want to check that a downloaded file matches the hash its author publishes.
  • To get the SHA-256 of a text.

Examples

Verify a download
Choose the file, select SHA-256 and compare the result with the published hash.
Hash a text
Type the text and copy the hexadecimal hash.

Common mistakes

  • Believing a hash can be decrypted: it is not encryption.
  • Using it alone to store passwords: without a salt it is not suitable.
  • Choosing SHA-1 for security: it is flagged as obsolete and MD5 is not offered.