Skip to content
Filebird

Hash generator

SHA-256 and SHA-512 checksums for text and files

Files never leave your device

A hash is a fixed-length fingerprint of some data. Change a single character, or a single byte in a file, and the fingerprint changes completely; the same input always gives the same result. That makes hashes useful for verifying that a download was not corrupted or tampered with, for confirming that two files are identical, and for quick integrity checks in scripts. This tool computes SHA-1, SHA-256, SHA-384 and SHA-512 for typed text or any file, and can compare the result against a checksum you paste from a download page.

How to hash text or verify a file

  1. Choose whether to hash text or a file. For a download check, choose a file and select it from your device.
  2. Look at the checksum published by the software provider and note which algorithm it uses. SHA-256 is the most common, and the algorithm is usually named next to the value.
  3. Select the matching algorithm and let the tool compute the hash. Large files take a moment because every byte must be read.
  4. Paste the published checksum into the compare box. The tool tells you whether the two match, ignoring letter case and surrounding spaces.
  5. If they match, the file is exactly the one the publisher hashed. If not, download it again from the official source before using it.

Options explained

  • SHA-256: The default. It produces a 64-character hexadecimal value and is what most download pages, package registries and security tools publish.
  • SHA-384 and SHA-512: Longer members of the same family, producing 96 and 128 hexadecimal characters. Use them when a source specifies them. They are not meaningfully more convenient for ordinary checks.
  • SHA-1: An older algorithm that still appears on legacy download pages and in some tools. Collisions can be deliberately constructed for it, so it should not be trusted against an attacker. For catching accidental corruption it still works, and it is included for compatibility.
  • Text or file input: Text is converted to UTF-8 bytes before hashing, so the same text hashed elsewhere gives the same result if that tool uses UTF-8 too. A file is hashed from its raw bytes exactly as stored.
  • Compare against a checksum: Paste an expected value and see a clear match or mismatch, rather than comparing 64 characters by eye.
  • MD5 is not offered: It is broken for security purposes, and the browser's built-in cryptography does not provide it. If a site gives only MD5, ask whether a SHA-256 value is also available.

Tips and common problems

A match proves integrity, not safety: It tells you the file equals what the publisher hashed. If the checksum comes from the same compromised page as the file, an attacker could have changed both. Prefer checksums obtained from a separate, trusted source.

Hashing is not encryption, and not for storing passwords: A hash cannot be reversed by design, but fast hashes like SHA-256 are the wrong tool for protecting passwords; services should use slow, salted password hashing. To create strong passwords instead, use the Password generator.

Trailing newlines change the hash: Text that ends with a line break hashes differently from the same text without it. If your result disagrees with a command-line tool, check whether the shell added a newline.

Different encodings, different hashes: The same visible text saved as UTF-8, UTF-16 or with a byte-order mark gives different bytes, and so different hashes. This tool uses UTF-8.

Uppercase and lowercase hex are equal: A5F3 and a5f3 represent the same value. The compare box ignores case.

Large files depend on your memory: Because the file is processed in your browser, extremely large files such as multi-gigabyte images may be slow or fail on a phone. Try a desktop browser for those.

Your files stay on your device

Hashes are calculated using your browser's Web Crypto functions, and files are read locally. The file's contents and the resulting hash are not uploaded, which means you can check private documents and installers without sharing them. Nothing extra is downloaded. See How it works.

Frequently asked questions

Which algorithm should I choose?

Use whichever one the source publishes. If you are free to choose, pick SHA-256, which is widely supported and considered secure for integrity checking.

Why is MD5 missing?

MD5 is considered broken, and browsers' standard cryptographic interface does not include it. Including it would encourage a weak choice.

Can a hash be reversed to reveal the original?

Not directly. Short or guessable inputs can still be found by trying candidates, so a hash of a simple password is not safe to publish.

Why do two copies of the same file have different hashes?

Even a tiny difference changes the result: a different download, edited metadata, or a re-save by an app. Identical bytes always give identical hashes.

Does the file get uploaded?

No. Reading and hashing happen on your device through the browser.

Is SHA-256 the same on every system?

Yes. The algorithm is standardised, so identical input bytes give the same hash in any correct implementation, on any system.