MD5/SHA256 Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 digests of a text string, shown as lowercase hexadecimal.
Real-time Results
MD5 Hash
97174abb3003ea0a5fd76cb6f831b2ab
SHA-1 Hash
50574f8639340df5289bddce26f7a3f950f3dd7f
SHA-256 Hash
647b72f17147e39dffa4edbbdcf7024e99cc9502159598903f1c98736412401e
SHA-512 Hash
4d9fbfeec75d4f000194dab19f6405cb688065697a92253f2833cfd99ff00c7c577e2939d83705f5caef0b8c6285702724cef18a279587e1b51efd735cec47d6
How it works
This tool hashes one text input with four algorithms at once and returns each digest as lowercase hexadecimal. It is useful for checksums, comparing strings and quick developer lookups, not for password storage or security decisions.
Does leading or trailing whitespace change the hash?
Yes. Validation trims the text only to check it is non-empty, but calculate() hashes the raw string, so a trailing space or newline produces a different digest. Paste exactly the bytes you intend to hash.
Can I use these digests to store passwords?
No. MD5 and SHA-1 are fast, unsalted general-purpose hashes and are unsuitable for password storage; SHA-256 and SHA-512 here are also plain, unsalted digests. Use a dedicated password-hashing scheme for credentials. This tool only reports digests of the given text.
Examples and interpretation(2)
What are the MD5 and SHA-256 digests of the string abc?
- Input Text
- abc
- Enter text = abc (three characters, no spaces).
- The engine hashes the raw bytes 0x61 0x62 0x63.
- MD5 returns 900150983cd24fb0d6963f7d28e17f72; SHA-256 returns ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.
- MD5 Hash
- 900150983cd24fb0d6963f7d28e17f72
- SHA-256 Hash
- ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Both are lowercase hex of fixed length (32 and 64 characters). Any added space or newline would change every digit.
What are the SHA-1 and SHA-512 digests of the default text?
- Input Text
- Calnex Developers
- Keep the default text = Calnex Developers, including the single space.
- The engine hashes that exact string.
- SHA-1 returns 50574f8639340df5289bddce26f7a3f950f3dd7f; SHA-512 returns 4d9fbfeec75d4f000194dab19f6405cb688065697a92253f2833cfd99ff00c7c577e2939d83705f5caef0b8c6285702724cef18a279587e1b51efd735cec47d6.
- SHA-1 Hash
- 50574f8639340df5289bddce26f7a3f950f3dd7f
- SHA-512 Hash
- 4d9fbfeec75d4f000194dab19f6405cb688065697a92253f2833cfd99ff00c7c577e2939d83705f5caef0b8c6285702724cef18a279587e1b51efd735cec47d6
SHA-1 gives 40 hex characters and SHA-512 gives 128. The space is part of the input, so removing it yields different digests.
Formula
digest = H(UTF-8 bytes of text), where H is MD5 (128-bit), SHA-1 (160-bit), SHA-256 (256-bit) or SHA-512 (512-bit); output is lowercase hex of length 32, 40, 64 or 128 characters respectively.
How to use
- Type or paste the string into the Input Text box; the default is 'Calnex Developers'.
- Leave the field non-empty, since validation trims whitespace and rejects a blank value.
- Read the four results: MD5 (32 hex characters), SHA-1 (40), SHA-256 (64) and SHA-512 (128).
- Copy the digest you need; all four are computed from the same exact input string.
Frequently asked questions
Why do I get four different results for one input?
Each result uses a different algorithm on the same string: MD5, SHA-1, SHA-256 and SHA-512. They differ in digest length and internal design, so the hex strings are unrelated to each other.
Is the output uppercase or lowercase, and are there separators?
Output is lowercase hexadecimal with no spaces, colons or line breaks. Lengths are 32, 40, 64 and 128 characters for MD5, SHA-1, SHA-256 and SHA-512.
What happens if I submit an empty or whitespace-only input?
Validation trims the text and reports a required-field error, so no digests are produced. Enter at least one non-whitespace character.
Related Calculators
More calculators selected by category and topic.
