← Back

Hash Generator

LOCAL

Generate MD5 & SHA-256 hashes from text.

Input

Output

What is Hash Generator?

Hash Generator computes MD5 or SHA-256 from the text in Input and displays a lowercase hexadecimal digest. It hashes text encoded as UTF-8; it does not upload or hash a selected file. The same exact input produces the same digest, so this can help compare text fixtures with a known reference value.

How to use Hash Generator

Enter abc without quotes, spaces or a final newline and choose MD5. Expect 900150983cd24fb0d6963f7d28e17f72. Choose SHA-256 with the same input and expect ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. MD5 has 32 hexadecimal characters; SHA-256 has 64. These are public test values, not secrets.

When is Hash Generator useful?

Change the input to ABC or add a space after abc: the digest should change. Case, spaces and line breaks are part of the input; they are not trimmed. The textarea may normalize line endings, so this tool should not be used to reproduce the original bytes of a file with a particular encoding or CRLF convention.

Example

Clear Input and choose either algorithm to see the no-input message. The interface rejects empty input rather than calculating the standard empty-string digest. It does not calculate HMACs, verify signatures or compare two files. A matching digest requires a trusted reference before it can tell you anything about origin.

Practical notes

Use MD5 for compatibility with an existing legacy checksum, not a new security design. A plain MD5 or SHA-256 digest is not appropriate password storage; dedicated password-hashing schemes have different requirements. Processing stays local, using the page’s CDN-loaded hash library, with no hashing API call. See the password-storage guidance when designing authentication.