Skip to main content

Hash Generator

Generate cryptographic hashes of any text. SHA-1, SHA-256, SHA-384 and SHA-512 are computed with the browser's native Web Crypto API; an MD5 implementation is included for legacy checks.

Reviewed for accuracy by the Math Ora X team Last updated

About this tool

Generate cryptographic hashes of any text. SHA-1, SHA-256, SHA-384 and SHA-512 are computed with the browser's native Web Crypto API; an MD5 implementation is included for legacy checks.

Example

Input: abc

Output: SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Privacy

This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.

How to use this tool

  1. Paste or type the text you want to hash into the input box.
  2. Choose the hash algorithm you need, such as MD5, SHA-1, SHA-256, SHA-384, or SHA-512.
  3. Read the generated hash from the output area and copy it for use in your app, script, or database.
  4. If the result does not match what you expected, check the exact input text, including spaces and line breaks.

Step by step, what happens

  1. The tool takes your plain text input and converts it to bytes using the browser's text handling.
  2. For SHA-1, SHA-256, SHA-384, and SHA-512, it uses the browser's native Web Crypto API to compute the digest.
  3. For MD5, it uses the built-in legacy MD5 implementation because Web Crypto does not provide MD5.
  4. The resulting hash is formatted as a lowercase hexadecimal string and shown for you to copy.

Worked example

For example, if you need the hash for a simple password test value, you can enter plain text and compare the generated digest.

Input: hello

  1. Paste hello into the input field.
  2. Select SHA-256 as the hash type.
  3. The tool computes the digest in the browser and displays the hexadecimal result.
  4. Copy the output if you need to paste it into another system.

Output: 2cf24dba5fb0a030e

Tips and common mistakes

  • Hashing is exact, so hello, Hello, and hello with a trailing space all produce different results.
  • Use SHA-256 or stronger for new work, and only use MD5 or SHA-1 when you are matching an older system.
  • If you are hashing a file, this tool is for text input only, so you need the file contents as text first.
  • If your expected hash includes uppercase letters, remember this tool outputs lowercase hexadecimal.

Frequently asked questions

Which algorithms are supported?

MD5, SHA-1, SHA-256, SHA-384 and SHA-512.

Are these secure for passwords?

MD5 and SHA-1 are broken for security. For passwords use a dedicated algorithm like bcrypt. SHA-256+ are fine for checksums and integrity.

Is my text sent anywhere?

No, hashing uses the browser's Web Crypto API locally.

Facebook Twitter WhatsApp