Hash Generator

Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of local text or files.

Processed locally in your browser. Your input is not uploaded.

How to use Hash Generator

Generate hexadecimal digests using your browser’s native Web Crypto API. Text is encoded as UTF-8, with line breaks preserved. Files stay on your device.

Details and limits

SHA-1 is legacy and is not recommended for security-sensitive use. Hashing is not encryption. File input is limited to 20 MiB because Web Crypto requires the complete buffer in memory. Text is limited to 1,000,000 characters; HTTPS is required.

Practical example

A hash changes when input bytes change, including line breaks or spaces. Use it to compare content; hashing is not reversible encryption.

SHA-256 of abc, with no newline, is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Adding a newline produces a different digest.

Frequently asked questions

Why do the text and file hashes differ for the same visible words?

A file may contain a byte-order mark or different line endings. Hashing compares bytes, so invisible differences change the digest.

Can a matching hash prove who created a file?

No. A digest can help compare contents, but it does not identify an author. You need a trusted reference or a separate signature mechanism.

Why do SHA-256 and SHA-512 produce different-length results?

The algorithms have different digest sizes. Compare a result only with a reference generated using the same algorithm.