Hash Generator

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes from text. Client-side, secure, instant.

Input

Hashes

About the Hash Generator

The Hash Generator computes MD5, SHA-1, SHA-256 and SHA-512 cryptographic hashes from any text or file you provide. It uses the browser's native Web Crypto API for SHA variants and SparkMD5 for MD5, so your data never leaves your device. Results update instantly as you type, and file hashing reads binary data directly to produce accurate checksums.

Common use cases

Frequently Asked Questions

How does the Hash Generator compute hashes in the browser?

SHA-1, SHA-256, and SHA-512 are computed using the browser's built-in SubtleCrypto Web Crypto API, which is a standardised, hardware-accelerated cryptographic interface available in all modern browsers. MD5, which is not included in the Web Crypto standard, is computed using the SparkMD5 JavaScript library. For file inputs, the FileReader API reads the raw binary buffer before passing it to the hash function, ensuring byte-accurate checksums that match those produced by command-line tools like sha256sum.

Is my text or file data sent to a server?

No. All hashing is performed entirely within your browser using the Web Crypto API and SparkMD5 - no data is ever uploaded to a server. This means the tool works offline once the page has loaded and is safe to use with sensitive text such as passwords, API keys, or confidential documents. The computed hash is displayed locally and is not logged or stored anywhere.

Which hash algorithm should I use for my project?

For security-sensitive purposes such as data integrity verification or digital signatures, use SHA-256 or SHA-512 - both are considered cryptographically secure. SHA-1 and MD5 have known collision vulnerabilities and should be avoided for security contexts, though they remain common for non-security uses like cache keys, ETags, and legacy system compatibility (e.g., Gravatar uses MD5). Never use MD5 or SHA-1 to hash passwords; use a dedicated password-hashing algorithm like bcrypt, Argon2, or PBKDF2 instead.

What is the maximum file size the tool can hash?

The file hashing feature is limited by your browser's available memory rather than a hard-coded cap. In practice, files up to several hundred megabytes work reliably in modern browsers. Very large files (multi-gigabyte ISOs, database dumps) may cause the browser tab to run slowly or exhaust available RAM, in which case you should use a command-line tool such as sha256sum on Linux/macOS or certutil -hashfile on Windows instead.

How does this compare to running sha256sum in the terminal?

Command-line tools like sha256sum, md5sum, and openssl dgst are faster for large files and can be scripted into automated workflows. This browser-based generator is ideal when you need a quick hash without opening a terminal - especially on shared or managed computers where running command-line utilities is inconvenient. The SHA-256 output is byte-for-byte identical to what sha256sum would produce, making the two interchangeable for one-off file integrity checks.