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.
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.
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.
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.
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.
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.
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.
No. MD5 is not included since it's cryptographically broken and SHA-1/256/512 cover the relevant compatibility and security use cases.