Hash Generator

    Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text or a local file directly in your browser.

    0 characters · 0 bytes

    MD5legacy32 hex
    calculating...
    SHA-256SHA-264 hex
    calculating...
    SHA-512SHA-2128 hex
    calculating...
    All calculations happen in your browser through the Web Crypto API. Text and files are not sent to a server.

    Hashing is not encryption: a hash cannot be decrypted back into the original data.

    MD5 and SHA-1 remain for legacy checks. Passwords need bcrypt, Argon2id, scrypt, or PBKDF2 with salt, not a fast MD5/SHA digest.

    Generate a text or file hash

    A hash function turns text or file bytes into a fixed-length digest. The same input gives the same output, while a small input change should produce a very different digest.

    Hashing is not encryption
    Encryption is reversible with a key. A cryptographic hash is designed as a one-way digest and cannot be decrypted back into the original data. Use MD5 only for legacy checksums and SHA-256 or another SHA-2 digest for modern checksum workflows.
    Browser-based calculation
    SHA algorithms are calculated with the Web Crypto API. MD5 is included for legacy checksums and compatibility.

    Digest lengths

    d is the digest, H is the selected hash function, and x is the input bytes.

    AlgorithmBitsHex lengthTypical use
    MD512832Legacy checksums and compatibility only
    SHA-116040Legacy references only
    SHA-25625664Modern checksums and many protocol uses
    SHA-38438496SHA-2 digest with a longer output
    SHA-512512128SHA-2 digest with the longest output on this page

    Security limits

    • MD5 and SHA-1 are legacy algorithms and should not be used for new security-sensitive signatures or collision-resistant designs.
    • SHA-256, SHA-384, and SHA-512 are SHA-2 algorithms, but a fast hash alone is not password storage.
    • For passwords, use bcrypt, Argon2id, scrypt, or PBKDF2 with salt and tuned work factors.
    • Use HMAC when a keyed message authentication code is required.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools