Developer tool

Hash Generator

Create SHA-1, SHA-256 or SHA-512 hashes from text with your browser's Web Crypto API. Copy the hexadecimal digest; your text is never sent anywhere.

Your file never leaves your device.

MD5 is not secure and is intentionally not offered.

Runs locally in your browser

Your text is not uploaded.

Simple steps

How it works

  1. 01

    Enter the text to hash.

  2. 02

    Choose a SHA digest algorithm.

  3. 03

    Copy the hexadecimal digest.

What a hash is

A hash function turns any text into a fixed-length fingerprint. SHA-256 always gives 64 hexadecimal characters, SHA-1 gives 40 and SHA-512 gives 128. The same input always gives the same hash, and the smallest change gives a completely different one: SHA-256 of hello starts with 2cf24dba, while Hello starts with 185f8db3.

The text is encoded as UTF-8 before hashing, which is the usual convention, so the result matches command-line tools such as sha256sum for the same text.

Why your hash does not match

Invisible differences change the result. Text saved in a file usually ends with a line break, so echo hello | sha256sum hashes "hello" plus a newline and gives 5891b5b5…, not 2cf24dba…. Windows line endings (CR LF) differ from Unix ones (LF), and a trailing space or a different Unicode form of an accented letter also counts.

To compare with a published checksum, make sure you hash exactly the same bytes; for a downloaded file, use a file-hashing tool, because this tool hashes text.

Choosing an algorithm

Use SHA-256 for checksums and fingerprints today. SHA-1 is offered for older systems, but practical collisions, two different inputs with the same SHA-1, have been shown since 2017, so do not rely on it for security. SHA-512 gives a longer digest.

Never store passwords as plain SHA hashes: they can be checked very quickly against lists of common passwords. Password storage needs a slow, salted algorithm such as Argon2, scrypt or bcrypt.

Good to know

Frequently asked questions

Which hash algorithms are available?

Choose SHA-1, SHA-256, or SHA-512 through Web Crypto.

Is MD5 available?

No. MD5 is not secure for modern cryptographic use and is not offered.

Can a hash be reversed?

Cryptographic hashes are designed to be one-way, but short or common inputs may be guessed by lookup.

Is my input sent anywhere?

No. The digest is calculated by the browser and not uploaded.

Does changing one character change the result?

Yes. A small input change produces a substantially different digest.