Ciphers, Hashes & PasswordsLast updated: 2026-09-09

Hash Generator

Compute SHA-1, SHA-256, SHA-384 or SHA-512 hashes of text or files in your browser. Handy for verifying file integrity and downloads.

Open My tools

Examples and how it works

SHA-256 computes a 256-bit hash, commonly written as 64 hexadecimal digits. Hash a candidate with the same algorithm to compare its digest.

SHA-256 · no trailing newline

Input
hello
Output
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

This tool does not decrypt a hash into its original text. Case, spaces and trailing newlines change the input bytes, so match those conditions when comparing.

ShareXfB!L

How to use

  1. 1

    Input

    Enter the text you want to hash, or select a file.

  2. 2

    Choose an algorithm

    Pick from SHA-1, SHA-256, SHA-384 or SHA-512.

  3. 3

    Calculate and copy

    Press "Calculate hash" to see the result, then copy it.

Features

  • Compute hashes of both text and files
  • Supports SHA-1, SHA-256, SHA-384 and SHA-512
  • Built on standard browser APIs - no libraries required
  • Files are hashed locally and never uploaded

Use cases

Verify downloaded files

Compare the SHA-256 published on an official site with the hash of the file you downloaded to confirm they match.

Check passwords

Test how a system hashes passwords with SHA-256 and similar algorithms.

Confirm data integrity

Compare hashes of sent and received data to verify nothing changed in transit.

Details

A hash function computes a fixed-length "fingerprint" from data of any size. The same data always produces the same hash, and even a tiny change in content produces a completely different value. Hashes are used to verify file integrity, check downloads and detect tampering.

This tool uses the browser's built-in Web Crypto API (crypto.subtle), so no additional libraries are needed. It supports SHA-1, SHA-256, SHA-384 and SHA-512 for both text and files. Even when you select a file, its contents are never sent to a server.

Note that SHA-1 has known weaknesses and is not recommended for security-sensitive purposes. MD5 is similarly insecure and is therefore not offered here. For security use cases, prefer SHA-256 or stronger.

FAQ

What is a hash?

A hash is the output of a function that computes a fixed-length value from data. The same data always yields the same value, and any change in content produces a different one.

Can I use MD5?

No. MD5 is not supported because collisions (different data producing the same hash) have been found and it is no longer considered secure. Prefer SHA-256 or stronger.

Is my file uploaded to a server?

No. Files are processed entirely in your browser and never uploaded.

What is the difference between SHA-1 and SHA-256?

SHA-1 outputs a 160-bit hash and SHA-256 a 256-bit hash. SHA-1 has known weaknesses, so use SHA-256 or stronger for security-sensitive purposes.

All processing happens in your browser. Your files are never uploaded.

Did you know?

A SHA-256 hash is a 64-character hex string. Changing a single character of input produces a completely different value.

Optional usage measurement settings

Only with your consent, a random browser ID and tool/learning events are sent to measure return visits. This is pseudonymous measurement. Inputs, answers, keys, files and search terms are excluded. Consent expires after 90 days. Declining does not limit any feature.

Measurement is off.

Retention and privacy