Hash Generator

Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files. Choose output format and copy with one click.

Input Text
Algorithms
All hashing runs locally in your browser using the Web Crypto API (and a pure JS fallback for MD5). Nothing is sent to any server.

Supported Algorithms

MD5 (128-bit, legacy — not collision-resistant), SHA-1 (160-bit, deprecated for security), SHA-256 (256-bit, widely used), SHA-384 (384-bit, truncated SHA-512), and SHA-512 (512-bit, strongest). For data integrity checks, SHA-256 is the recommended default.

Text vs File Hashing

In text mode, input is UTF-8 encoded before hashing — the hash changes with encoding. In file mode, the raw binary bytes are hashed directly, matching command-line tools like sha256sum. Large files are processed in-browser without upload.

FAQ

Is MD5 still safe to use?

MD5 is broken for cryptographic purposes (collision attacks exist). It's fine for non-security checksums like verifying file downloads, but use SHA-256 or SHA-512 for anything security-related.

Why does my hash differ from another tool?

Usually an encoding difference. This tool hashes UTF-8 encoded text bytes. If the other tool uses a different encoding (Latin-1, UTF-16) or adds a trailing newline, the hash will differ.

Related tools

Checksum Calculator · CRC Calculator · Base64 / URL Encode·Decode · UUID Generator