All tools Hash Generator ● Live Developer Tools

How Hash Generator works

  1. Type or paste text into the input box, or drop a file into the file section.
  2. SHA-1, SHA-256, and SHA-512 hashes are computed automatically and shown side by side.
  3. Click the copy button next to any hash to copy it to your clipboard.
  4. Replace the input or drop a new file to compute fresh hashes.
  • Verify a downloaded file's integrity by comparing its SHA-256 to a published checksum.
  • Generate a hash of a configuration file to detect unintended changes.
  • Compute a checksum to use as a cache key or content-addressed identifier.
  • Quickly hash a string for use in a non-cryptographic deduplication check.
  • Confirm two files are byte-for-byte identical by comparing their hashes.

Hashing runs locally using the Web Crypto API. Files and text are never uploaded to a server.

  • Not suitable for password hashing — use a dedicated algorithm like bcrypt or Argon2 for that.
  • Very large files (multi-gigabyte) may be slow or run into browser memory limits.
  • MD5 is not supported, only SHA-1, SHA-256, and SHA-512.

Hash Generator

Hash Generator computes cryptographic hashes using the Web Crypto API's SubtleCrypto.digest() method. Enter text to get SHA-1, SHA-256, and SHA-512 hashes simultaneously, or drop a file to hash its full binary content. All hashing runs locally with no data transmitted.

Hash Generator Runs locally

Hash text

Text hashes

Hash a file

Guide

How to use

  1. Type or paste text into the input box, or drop a file into the file section.

  2. SHA-1, SHA-256, and SHA-512 hashes are computed automatically and shown side by side.

  3. Click the copy button next to any hash to copy it to your clipboard.

  4. Replace the input or drop a new file to compute fresh hashes.

Scenarios

Use cases

  • Verify a downloaded file's integrity by comparing its SHA-256 to a published checksum.

  • Generate a hash of a configuration file to detect unintended changes.

  • Compute a checksum to use as a cache key or content-addressed identifier.

  • Quickly hash a string for use in a non-cryptographic deduplication check.

  • Confirm two files are byte-for-byte identical by comparing their hashes.

Good to know

Limitations & Privacy

Private by design

Hashing runs locally using the Web Crypto API. Files and text are never uploaded to a server.

  • Not suitable for password hashing — use a dedicated algorithm like bcrypt or Argon2 for that.

  • Very large files (multi-gigabyte) may be slow or run into browser memory limits.

  • MD5 is not supported, only SHA-1, SHA-256, and SHA-512.

FAQ

Frequently asked questions

Is SHA-1 secure?

SHA-1 is considered cryptographically broken for security-sensitive purposes since collision attacks exist. It's included here for compatibility and verification use cases only — use SHA-256 or SHA-512 for new security work.

Is there a file size limit for file hashing?

There's no hard limit, but the browser must load the entire file into memory to hash it. Very large files (several GB) may be slow or fail depending on your device's available RAM.

What's the difference between SHA-256 and SHA-512?

Both are part of the SHA-2 family and considered secure. SHA-512 produces a longer 512-bit digest and can be faster on 64-bit systems, while SHA-256 produces a 256-bit digest and is more commonly used for things like checksums and certificates.

Why does the same file always produce the same hash?

Hash functions are deterministic — the same input always produces the same output. This is what makes hashes useful for verifying that a file hasn't changed.

Can I use this to verify a file download?

Yes. Hash the downloaded file and compare the result to the checksum published by the file's source (e.g. SHA-256 shown on a software download page) to confirm the file wasn't corrupted or tampered with.

Can I hash a password for storage?

No — general-purpose hash functions like SHA-256 are not suitable for password storage because they're too fast, making brute-force attacks easier. Use a dedicated password-hashing algorithm like bcrypt or Argon2 for that.

Does this support MD5?

No. MD5 is not included since it's cryptographically broken and SHA-1/256/512 cover the relevant compatibility and security use cases.