Skip to content

Developer Tools

Hash Generator — MD5 and SHA

Type text and generate MD5 (via js-md5) plus SHA-1, SHA-256, and SHA-512 through the Web Crypto API. Hashing is one-way — this tool cannot reverse a hash. MD5 and SHA-1 are provided for compatibility, not for password storage.

Your workspace

Runs in your browser
md5
—
sha1
—
sha256
—
sha512
—

How to use

  1. 1Paste the text to hash.
  2. 2Generate or wait for live updates.
  3. 3Copy the digest you need.

Worked example: Compare a known SHA-256 text fingerprint

The output is the SHA-256 digest of these exact UTF-8 bytes. A hash cannot be decoded back into the source text. This tool hashes text, not the contents of an arbitrary file chosen from disk.

Example input
abc (no spaces or newline)
Expected result
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Check before you use the result

Select the intended algorithm and compare every character. The MD5 digest for the same input is 900150983cd24fb0d6963f7d28e17f72; it is a different algorithm, not an alternate spelling of SHA-256.

If the result is different

Invisible whitespace changes a hash. Clear the input and enter the exact sample if your result differs. MD5 and SHA-1 are retained for compatibility, not recommended for password storage.

Is this the right tool?

Hash Generator computes text digests. A digest helps compare text, but it is not encryption, a digital signature or a password-storage system.

Before you start
Match the algorithm and exact text, including spaces, line endings and letter case. A small change produces a different digest.
When to choose another approach
Use Base64 Encoder when you need to recover the original text later.
Open Base64 Encoder

What this tool does

  • — Four algorithms
  • — Live hashing as you type
  • — Copy per algorithm

Useful when

  • — Checksum comparisons
  • — Quick SHA-256 of a string

Limits

  • — Not a file hasher (text only).
  • — MD5 and SHA-1 are weak for security-sensitive use.

Where processing happens

SHA hashes use crypto.subtle.digest. MD5 uses the js-md5 library. Text never leaves the browser.

Questions

Can I decrypt a hash here?

No. Hashes are one-way. There is no decrypt function.

How can I compare a generated text hash reliably?

Select the intended algorithm and compare every character. The MD5 digest for the same input is 900150983cd24fb0d6963f7d28e17f72; it is a different algorithm, not an alternate spelling of SHA-256.

What should I check if two hashes differ for similar text?

Invisible whitespace changes a hash. Clear the input and enter the exact sample if your result differs. MD5 and SHA-1 are retained for compatibility, not recommended for password storage.

Guides for this tool

Related tools

Technical references

More in Developer Tools · Guides

Instructions maintained by ToolNest. Found an incorrect result or an unclear step? Report the tool name and steps.