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————How to use
- 1Paste the text to hash.
- 2Generate or wait for live updates.
- 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.
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
- How to debug JSON, Base64 and cron in your browser
Validate JSON, round-trip Base64 text and check five-field cron syntax using local browser tools.
- How to generate a password you will actually store
Use Web Crypto randomness, pick a length, and put the result in a password manager. What the strength meter is not.
- How to format and validate JSON
Beautify or minify JSON in the browser, read parser errors, and avoid pasting secrets into a random formatter.
- How to hash text (and why you cannot un-hash it)
MD5, SHA-1, SHA-256, and SHA-512 in the browser. Compatibility vs password storage.
Related tools
- Base64 EncoderEncode or decode Base64, including a URL-safe variant.
- Password GeneratorGenerate passwords with the Web Crypto API in your browser.
- UUID GeneratorGenerate RFC 4122 v4 random or v1 time-based UUIDs.
- JSON FormatterBeautify, minify, and validate JSON in the browser.
- Cron ParserExplain a 5-field cron expression and list upcoming runs.
Technical references
- MDN: cryptographic text digests
How browser digest algorithms work and their security limitations.
More in Developer Tools · Guides
Instructions maintained by ToolNest. Found an incorrect result or an unclear step? Report the tool name and steps.