Hash Generator (MD5, SHA-1, SHA-256, SHA-512)
Generate the hash of any text in MD5, SHA-1, SHA-256 and SHA-512 at once. Computed in your browser.
Type something to see the generated hashes.
Hashes are generated in your browser. SHA-1, SHA-256 and SHA-512 use the native Web Crypto API; MD5 uses a lightweight library.
How it works
A hash is a "fingerprint" of a piece of data. A hash function takes any text β from a single word to an entire book β and produces a fixed-size sequence that represents that content. The same text always produces the same hash; changing a single character changes the result completely.
In this tool, you type text and receive, at the same time, hashes in four algorithms: MD5, SHA-1, SHA-256 and SHA-512. Each produces a sequence of a different length β SHA-512 is the longest β and all of them can be copied with a click.
The computation happens entirely in your browser. SHA-1, SHA-256 and SHA-512 use the Web Crypto API, a native feature of modern browsers; MD5, which isn't part of that API, is computed by a lightweight library. Nothing is sent over the internet.
When to use
Hashes have two main everyday technical uses. The first is verifying integrity: download sites often publish a file's hash so you can check that what you downloaded wasn't corrupted or altered. By generating the hash of the file and comparing it with the published one, you confirm they're identical.
The second is quickly checking and comparing values during development β testing whether two pieces of content match, generating identifiers derived from a text, or reproducing a hash a system expects. Developers use hashes all the time; having the four algorithms side by side saves hunting for separate tools.
Practical examples
Verifying a download
A site offers a program and publishes the file's SHA-256. You generate the hash of the downloaded file and compare: if the sequences are identical, the file is intact; if they differ, something went wrong with the download.
The effect of one character
Generating the hash of "password" and then of "Password" shows completely different sequences, despite changing only one letter. That total sensitivity is a core feature of hash functions.
Common mistakes
The most serious conceptual error is thinking a hash is reversible encryption. It isn't: you can't recover the original text from the hash. A hash is a one-way street, built to represent and verify, not to be "decrypted" later.
Another important point is about security. MD5 and SHA-1 are useful for integrity checks, but are considered weak for security purposes β they shouldn't be used to protect passwords or critical signatures, where stronger algorithms like SHA-256 and above are recommended. Using the wrong algorithm in the wrong context is a real risk.
There's also the confusion about storing passwords "as a hash". Storing the hash of a password is better than storing it in plain text, but a simple hash, without additional techniques like salting and purpose-built password algorithms, still leaves gaps. Passwords have specific methods beyond a direct hash.
Frequently asked questions
Can a hash be reversed to reveal the text?
No. The hash function is one-way: there's no way to recover the original text from the hash. That's why it's used to verify and compare, not to recover data.
Which algorithm should I use?
For file integrity, any of them works. For security purposes, prefer SHA-256 or SHA-512; MD5 and SHA-1 are considered weak and aren't recommended in those cases.
Why does the same text always produce the same hash?
Because the hash function is deterministic: the same input always produces the same output. That's what lets you compare hashes to check whether two pieces of content are identical.
Is the text sent to a server?
No. Hashes are computed in your own browser. The text you type doesn't travel over the internet, so you can generate hashes of sensitive content safely.
Related tools
Encode text to Base64 or decode Base64 back to text, with full support for accents and emojis. Everything in your browser.
Convert colors between HEX, RGB and HSL, with a visual picker and preview. Edit any format and the others update instantly.
Make CSS, HTML and SQL clean and readable with automatic indentation. Paste the code, pick the language and format.
Format, indent and validate JSON in your browser. Points out the error with line and column when the text is invalid.