Skip to content

Hash generator

Calculate the MD5, SHA-1, SHA-256 or SHA-512 hash of a text.

SHA-256 (recommended)
{{ sha256Hash || 'Waiting for text...' }}
SHA-512
{{ sha512Hash || 'Waiting for text...' }}
SHA-1
{{ sha1Hash || 'Waiting for text...' }}
MD5 (deprecated / insecure)
{{ md5Hash || 'Waiting for text...' }}

What is a hash function (hashing)?

A hash function is a mathematical algorithm that takes data of variable size (a short password, or an entire PDF file) and turns it into a fixed-size string of characters (the fingerprint). This is called a Hash.

The main characteristic of a hash is that it is one-way : it is mathematically impossible to recover the original text from the hash (unlike encryption or Base64 encoding). Moreover, the slightest change to the original text changes the hash completely.

Encryption vs. hashing

The encryption is designed to be reversible (you lock the door with a key, and you can unlock it with that same key). hashing is designed to verify integrity (you check that the password entered produces the same hash as the one stored in the database, without ever knowing the actual password).

Which algorithm should you choose today?

  • MD5 and SHA-1: Do not use them EVER AGAIN to store passwords. With today's computing power, they are vulnerable to collision attacks. They are now only useful for verifying the integrity of a downloaded file.
  • SHA-256 / SHA-512 : This is the current standard (SHA-2 family). These algorithms are used by the HTTPS protocol, the Bitcoin blockchain, and to secure government data.
  • Note: to store passwords in a database, use algorithms that are deliberately slow by design, such as Bcrypt or Argon2.

More dev tools:

How it works

How to use the hash generator

Calculate the MD5, SHA-1, SHA-256 or SHA-512 hash of a text.

  1. Paste your content

    Enter the text to hash.

  2. Choose the algorithm

    MD5, SHA-1, SHA-256, SHA-512…

  3. Copy the result

    Copy or download the result in one click.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the hash generator

A hash is a unique, non-reversible fingerprint, used to check the integrity of a file or to index data.

hash generator sha256 online md5 hash generator sha512 generator sha1 hash text to hash checksum generator
FAQ

Frequently asked questions about the hash generator

Can the text be recovered from the hash?

No. A hash is not reversible.

Which algorithm should I choose?

SHA-256 or stronger for security. MD5 and SHA-1 are no longer considered safe.

Should I hash passwords with SHA-256?

No. Use dedicated, salted algorithms such as bcrypt or Argon2.

Is my text sent anywhere?

No. The calculation is local.

Esc
↑ ↓ navigateEnter open