♢

Hash Generator

Generate secure browser-based hashes.

Choose a file or fill the fields, then click Generate.

About Hash Generator

Developers compare hashes to confirm that two pieces of text are identical, build cache keys, check API signatures during debugging, or reproduce a digest from documentation. This tool computes a digest of the text you paste so you can compare it with the value another system produced.

How it works

The tool uses the CryptoJS 4.2.0 library. Your text is hashed as UTF-8 with the algorithm you choose: SHA-256, SHA-512, SHA-1 or MD5. The result is lowercase hexadecimal, 64 characters for SHA-256, 128 for SHA-512, 40 for SHA-1 and 32 for MD5. Every character counts, including spaces and line breaks, and an empty box still produces the hash of an empty string. Only text is hashed, not files, and everything runs locally.

How to use Hash Generator

  1. Complete the available fields: Algorithm. Use the field labels and examples shown in the workspace.
  2. Select “Generate” and check the result before copying or downloading it.

Worked example

For the three-letter input abc with no newline, SHA-256 gives ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. MD5 gives 900150983cd24fb0d6963f7d28e17f72, and SHA-1 gives a9993e364706816aba3e25717850c26c9cd0d89d. These are standard published test values, useful for checking that another tool matches.

Tips for a better result

  • If your hash does not match another system, check for a trailing newline or space. Command-line echo adds a newline unless you use echo -n.
  • Prefer SHA-256 or SHA-512 for new work. MD5 and SHA-1 have known collision attacks and should only be used for legacy compatibility.
  • Do not store user passwords as plain SHA or MD5 hashes. Use a slow password hash such as bcrypt instead.

Frequently asked questions

Can a hash be reversed to get my text back?

Not directly, but short or common inputs can be found by guessing and comparing hashes, using lookup tables. A hash of a simple word or a short password offers little protection.

Why does my result differ from another website?

Usually the input differs slightly, through hidden whitespace, a different line ending, or another text encoding. This tool hashes UTF-8 bytes, so accented characters must be encoded the same way elsewhere.

Can I hash a file here?

No. This tool hashes typed or pasted text. Use the File Checksum tool to get a SHA-256 digest of a file's actual bytes.

What to check

Local checks are not a security audit or live malware scan. Do not enter active passwords, API keys or other secrets.

Read the Privacy Policy for information about local processing, connected services and advertising.