Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    What Is a Hash? MD5, SHA-1 and SHA-256 Explained

    Updated November 2026

    Written by the Toolpuffin team. Tools in this guide are tested in the browser.

    A hash is a short fingerprint of a piece of data. Hashes are used to check that something has not changed. This guide explains the common ones and what they should not be used for.

    Try the tool: Hash Generator

    What a hash is

    • The same text always gives the same hash.
    • A tiny change gives a completely different hash.
    • The length is fixed, however long the text is.
    • You cannot turn a hash back into the text.

    The common ones

    NameLength in hex charactersUse today
    MD532Checking for accidental changes only
    SHA-140Checking for accidental changes only
    SHA-25664The usual choice for new work
    SHA-38496When a longer hash is needed
    SHA-512128When a longer hash is needed

    MD5 and SHA-1 are no longer safe against someone who changes data on purpose. SHA-2 hashes such as SHA-256 are defined in the NIST standard FIPS 180-4.

    Source: NIST: FIPS 180-4 Secure Hash Standard

    Hash a text

    1. Type or paste your text.
    2. Read the hashes below it. They update as you type.
    3. Copy the one you need.

    This tool hashes text. A file gives a different result than its name or its contents pasted as text. Capital letters and spaces count, so Hello and hello give different hashes.

    Not for passwords

    A plain hash is too fast to protect passwords. OWASP recommends a slow, salted method made for passwords, with Argon2id as the first choice and bcrypt as an option. Your login system or framework should provide this for you.

    Source: OWASP: Password Storage Cheat Sheet

    Privacy

    The hashes are made in your browser and your text stays on your device.

    More guides