Swelıty
Tools for everyone

Free Online Hash Generator

Generate cryptographic hashes like MD5, SHA-1, SHA-256, SHA-384, and SHA-512.

Input text

Generated hash

How to use

  1. Type or paste your text, or open a text file into the input box.

  2. Choose MD5, SHA-1, SHA-256, SHA-384 or SHA-512.

  3. Press Generate Hash. The result appears with the name of the algorithm.

  4. Copy the hash or download it as hash.txt. Press Generate Hash again after you change the text or the algorithm.

Why use this tool

  • Five algorithms

    MD5, SHA-1, SHA-256, SHA-384 and SHA-512, one at a time.

  • Web Crypto

    The SHA hashes use the browser's built-in Web Crypto functions. MD5, which Web Crypto does not include, uses the tool's own code.

  • Hex output

    A lowercase hexadecimal string, the form most command line tools print.

About this tool

Hash Generator turns text into a hash (also called a digest) with MD5, SHA-1, SHA-256, SHA-384 or SHA-512. The same text always gives the same hash, and a change of one character gives a very different one, so hashes are handy for checking that two pieces of text are identical, comparing a value with a published checksum, or testing code that creates hashes. The text is read as UTF-8 and the result is shown as lowercase hexadecimal. You choose one algorithm at a time. The page opens with the SHA-256 hash of an example sentence.

Frequently asked questions

No. A hash is one-way. Short or common values can still be guessed by hashing many possibilities and comparing, so a hash does not hide a weak secret.

The input must match byte for byte. A space or new line at the end, Windows line endings or a different text encoding all change the hash. Running echo in a terminal adds a new line unless you tell it not to.

Not for security. Both are known to allow two different inputs with the same hash. Use them only to match an existing value, and pick SHA-256 or stronger for anything new.

No. A plain hash is too quick to guess against. Password storage needs a slow, salted method such as Argon2, scrypt or bcrypt. This tool adds no salt.

No. The tool hashes text. Opening a file loads it as text, so the result for a binary file will not match the file's checksum.