Skip to content

Hash Generator

Calculate a checksum of text or a file, for example to compare it with the SHA-256 value published next to a download.

Output

Your result will appear here.

Created in your browser, not sent to our servers.

For new checksums, choose SHA-256 or SHA-512.

Processed locallyFiles and text are processed in your browser and are not uploaded to our servers.Learn more

How to generate a hash

  1. 01

    Enter text or pick a file

    Switch between Text and File. Any file type can be hashed.

  2. 02

    Choose an algorithm

    SHA-256 is the default. SHA-384, SHA-512 and SHA-1 are available too.

  3. 03

    Generate and compare

    Copy the lowercase hexadecimal hash and compare it with the expected value.

Algorithms

  • SHA-256: 64 hex characters. The standard choice for file checksums and most integrity checks.
  • SHA-384 and SHA-512: 96 and 128 hex characters.
  • SHA-1: 40 hex characters. Only for compatibility with older systems; it is no longer collision-resistant.
  • MD5 is not offered.

How the hash is calculated

Hashes are computed with the browser's Web Crypto API. Text is hashed as UTF-8 bytes, so the result matches command-line tools such as sha256sum for the same text without a trailing newline.

A file is read into memory in full before hashing, so very large files depend on the memory available on your device. The file is not uploaded.

Related tools

Frequently asked questions

How do I verify a downloaded file with SHA-256?

Choose File, select the download, keep SHA-256 and generate. The result should match the checksum published by the provider character for character.

Why does my hash differ from the command line?

Often because echo adds a newline to the text. Hash the exact same bytes: use printf, or hash the file itself.

Can I use this to hash passwords?

No. Plain SHA hashes are too fast for password storage. Use a password hashing function such as Argon2 or bcrypt in your application.

Does this support MD5?

No. Only SHA-1, SHA-256, SHA-384 and SHA-512 are available.