Hash Generator (SHA-256 and more)

Type or paste text, or choose a file, and get its SHA-1, SHA-256, SHA-384 and SHA-512 hashes straight away. Files are hashed on your device and are never uploaded.

Updated November 2026

Quick answer: A hash function turns any input into a short fixed-length fingerprint. The same input always gives the same hash, and a tiny change gives a completely different one. This tool computes SHA-1, SHA-256, SHA-384 and SHA-512 with your browser’s built-in Web Crypto API.

Hashes are used to check that a download is intact, to detect changes in a file, and as building blocks in many security systems. Compare the hash shown here with the checksum a publisher lists next to a download. If they match exactly, the file is the same.

Which algorithm should I use?

AlgorithmOutput lengthGood for
SHA-1160 bits (40 hex characters)Legacy checksums only. It is no longer considered safe against deliberate collisions.
SHA-256256 bits (64 hex characters)The common default for file checksums and integrity checks.
SHA-384384 bits (96 hex characters)When a longer SHA-2 digest is required.
SHA-512512 bits (128 hex characters)Long digests, and it can be faster than SHA-256 on 64-bit processors.

Good to know

  • A hash is not encryption. You cannot turn it back into the original text.
  • Do not store passwords as plain SHA hashes. Use a purpose-built password hashing function such as bcrypt, scrypt or Argon2, with a unique salt.
  • MD5 is not offered because browsers do not include it in the Web Crypto API, and it is broken for security use.
  • Text is hashed as UTF-8. A trailing space or line break changes the result, so copy carefully.

Frequently asked questions

Is my file uploaded when I hash it?

No. The file is read by your browser and hashed on your device. Nothing is sent to a server.

Why does my hash differ from another tool’s?

Usually the input differs by an invisible character such as a trailing newline, or the other tool used a different text encoding. Files hashed as files should match exactly.

Is there a file size limit?

The page reads the whole file into memory, so it stops at 200 MB. Very large files are better checked with a command-line tool such as sha256sum.

Can I reverse a hash to get the original text?

No. Hash functions are one-way. Short or common inputs can be guessed by trying many candidates, which is why passwords need salted, slow hashing.

People also search for this as: sha256 hash generator, file checksum calculator, sha512 online, sha1 hash, verify file integrity, checksum checker, hash calculator.

Sources and further reading

Press Esc to close