U.UtilityApp
⚙️ DevFree · No signup

Hash Generator (MD5, SHA-1, SHA-256, SHA-512)

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of any text instantly in your browser.

Enter text above to see its hash.

Four digests of the same text, side by side

Whatever you type is hashed four ways at once and each result has its own copy button. MD5 is calculated by a small script in the page; SHA-1, SHA-256 and SHA-512 come from the browser's Web Crypto API. All four read your text as UTF-8 and print lowercase hex. For the classic test sentence The quick brown fox jumps over the lazy dog:

AlgorithmHex lengthResult
MD5329e107d9d372bb6826bd81d3542a419d6
SHA-1402fd4e1c67a2d28fced849ee1bb76e7391b93eb12
SHA-25664d7a8fbb307d7809469ca9abcb0082e4f…
SHA-51212807e547d9586f6a73f73fbac0435ed769…

Add a full stop to the end of the sentence and all four change completely; the SHA-256, for example, becomes ef537f25….

Identifying an unknown hash by its length

When you inherit a database column or a config value labelled only "hash", count its characters. A hex string of 32 characters is probably MD5, 40 is SHA-1, 64 is SHA-256 and 128 is SHA-512. Then confirm: take a value you know went in, such as a test user's email, type it here and see which of the four rows matches.

No match on any row usually means the stored value isn't a plain hash of that text. Common reasons are a salt or secret added before hashing, the input being lowercased or trimmed first, several rounds of hashing, or Base64 output instead of hex. A padded Base64 SHA-256 is 44 characters and ends in =.

Hashes that look standard but aren't plain

  • Git commit and file IDs are 40-character SHA-1 values in most repositories, but Git hashes a short header together with the content. Typing a file's text here won't reproduce its Git ID.
  • Password hashes from login systems usually start with a marker such as $2b$ or $argon2. These are slow, salted algorithms that this page doesn't compute.
  • Signed values such as webhook signatures are HMACs. They use one of these algorithms internally but also need the secret key.

For migrations, this page is handy for spot checks: hash a sample record with both the old and the new algorithm and confirm that each matches what the old and new code store.

Frequently asked questions

Why does the page show hashes before I type anything?+

An empty box is hashed too, so you see the digests of zero bytes, such as e3b0c442… for SHA-256. They are correct values, not placeholders, and they change as soon as you type.

Which of the four should I use for something new?+

SHA-256 is the usual choice for fingerprints and checksums. Use MD5 or SHA-1 only to match values an existing system already produces.

Can I hash a file instead of text?+

No, the input is a text box. Use your operating system's command-line hash tools for files, then paste the result here if you want to compare it with another value.

Does it trim spaces or line breaks before hashing?+

No. Every character counts, including a trailing space or a final line break, so copy text carefully when you compare against a stored hash.

Guides & deep dives

Embed this tool on your website

Free to use on blogs, school sites and intranets. Paste this code into your page's HTML; please keep the credit line.

<iframe src="https://utilityapp.lat/embed/dev/hash-generator" title="Hash Generator (MD5, SHA-1, SHA-256, SHA-512)" width="100%" height="600" style="border:0;max-width:760px" loading="lazy"></iframe>
<p style="font-size:13px"><a href="https://utilityapp.lat/dev/hash-generator">Hash Generator (MD5, SHA-1, SHA-256, SHA-512)</a> by UtilityApp</p>