Skip to content

ToolNest · Published · Updated

How to hash text (and why you cannot un-hash it)

A hash is a fingerprint, not a lockbox. ToolNest will not “decrypt” a hash because that is not how these functions work.

Before you begin

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

Use Hash Generator

Worked example: Compare a known SHA-256 text fingerprint

Input
abc (no spaces or newline)
Expected output
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

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.

Check 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 it does not work

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.

Scope and limitations

Match the algorithm and exact text, including spaces, line endings and letter case. A small change produces a different digest.

Use Base64 Encoder when you need to recover the original text later.

Which algorithm

Use SHA-256 or SHA-512 when you need a modern checksum of a string. MD5 and SHA-1 remain because old systems still print them — they are not appropriate for storing passwords.

Text, not files

This generator hashes the characters you paste, not an arbitrary binary file picker. For disk images, use a local checksum utility.

Verify the exact abc test vector

Enter abc without a leading space or newline and read the SHA-256 result. It should be ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. A matching vector is a useful smoke test of your input and algorithm selection, not a general security audit of a larger application.

Investigate a mismatch byte by byte

A pasted newline, different letter case or Unicode normalization can change the bytes and therefore the digest. Start with the short vector, then compare the representation expected by the other system. If it hashes a file's bytes, this text-only utility is not performing the same operation. Base64 encoding is also a different operation, not another hash algorithm.

Keep checksum and password workflows separate

MD5 and SHA-1 are exposed for legacy comparisons. They are not suitable choices for a new password-storage design. A fast digest of a password is not a replacement for a dedicated salted password-hashing scheme. This tool is intended for inspecting text fingerprints, not deploying authentication infrastructure.

Questions

Is hashing the same as encryption?

No. Encryption is designed to be reversed with a key. A cryptographic hash is not.

Related tools

Continue reading

Technical references

These instructions describe ToolNest's browser tools and their limitations. Read how examples are maintained or report a correction.

All guides