DEVELOPER TOOLS

Hash Generator

Get the SHA-1, SHA-256, SHA-384, and SHA-512 hash of text or a file, and check a file against a published checksum. Hashing runs in your browser, and this page carries no advertising script.

Text is hashed as UTF-8, exactly as typed, including spaces and line breaks.

Files up to 256 MB are read in this browser and never uploaded. Typing text switches back to hashing the text.

Enter text or choose a file to see its hashes.

    How to hash text or check a file

    1. Type or paste text, or choose a file. All four hashes update straight away.
    2. Pick the output format the other system uses, usually lowercase hexadecimal.
    3. To check a download, paste the checksum the publisher lists into Compare with a known hash. The tool tells you which algorithm matches, or that none do.

    About these hashes

    The hashes come from the browser's built-in Web Crypto crypto.subtle.digest(). The same input always gives the same hash, and any change, even one character, gives a completely different one. A hash cannot be turned back into the original text.

    SHA-256 is the usual choice for file checksums and data integrity. SHA-1 is shown because older systems still publish it, but it is broken for security uses such as signatures, so do not rely on it to prove a file has not been tampered with. MD5 is not offered: browsers do not include it, and it is broken too.

    A plain hash is not a safe way to store passwords, because fast hashes are easy to guess against. Systems that store passwords should use a slow password-hashing function such as Argon2, scrypt, or bcrypt. The whole file is read into memory, so very large files may be slow on phones.

    SHA algorithms compared

    A hash function turns any input into a fixed-length fingerprint. Longer outputs make accidental and deliberate matches harder to find:

    Output size of each SHA algorithm
    AlgorithmOutput sizeHex charactersBase64 charactersStatus
    SHA-1160 bits4028Broken for security use
    SHA-256256 bits6444Secure; the usual choice
    SHA-384384 bits9664Secure
    SHA-512512 bits12888Secure

    Hash generator FAQ

    Why does my hash differ from another tool's?

    Usually the input is not byte-for-byte the same. A trailing space or line break, Windows versus Unix line endings, or a different text encoding all change the hash. This tool hashes text as UTF-8 exactly as it appears in the box.

    Is my text or file uploaded?

    No. Hashing happens in this page and nothing is sent to a RandomTools application server or saved. This page also does not load the advertising script used on other RandomTools pages; the privacy policy lists the ad-free pages.

    Can I hash a password here?

    You can, and it stays in your browser, but a SHA hash on its own does not make a password safe to store. To create a new password, use the password generator.

    How do I check a downloaded file's checksum?

    Choose the file, then paste the checksum from the download page into Compare with a known hash. A match confirms the file arrived exactly as published.

    What other developer tools are there?

    The Base64 encoder converts text to and from Base64, and the diff checker shows exactly where two texts differ.

    Last updated: