Skip to main content
ToolSmartly

Hash Generator MD5, SHA-256: Secure Your Data Fast

Quickly generate MD5, SHA-1 or SHA-256 hashes to secure and verify your data.

Hash generator

Generated hash

Important : MD5 and SHA-1 are considered insecure for cryptographic purposes. Use SHA-256 or higher for security.

Generate an MD5 or SHA hash: how to use it

The tool computes the hash of the text you enter with the CryptoJS library, right in your browser: the text is not uploaded. The same input always gives the same hash, and the slightest change to the text changes it completely.

How to use it

  1. Type or paste the text.
  2. Choose the algorithm: MD5, SHA-1 (selected by default), SHA-256, SHA-384 or SHA-512.
  3. Copy the resulting hexadecimal hash.

Available algorithms

AlgorithmHash lengthUse
MD532 hex characters (128 bits)non-sensitive checksums; avoid for security
SHA-140 characters (160 bits)legacy checksums; no longer considered secure
SHA-25664 characters (256 bits)file integrity, signatures, blockchain
SHA-38496 characters (384 bits)longer variant of the SHA-2 family
SHA-512128 characters (512 bits)longest SHA-2 variant

Check the result

Reference values published in the standards: the MD5 hash of “abc” is 900150983cd24fb0d6963f7d28e17f72 and its SHA-256 hash is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad.

Why two hashes of the “same” text differ

A hash changes as soon as a single byte changes. Mismatches almost always come from invisible details:

  • a trailing newline: echo "abc" | sha256sum hashes “abc” followed by a line break; use echo -n or printf to compare with the tool;
  • spaces at the start or end of the text;
  • the encoding: the tool hashes text as UTF-8, where “é” takes two bytes; a program using another encoding gets a different hash.

Checking a downloaded file

This tool hashes text. To check a file (installer, ISO image) against the hash published by its maker, use your system’s command: certutil -hashfile file.iso SHA256 on Windows, shasum -a 256 file.iso on macOS, sha256sum file.iso on Linux. If both hashes match, the file is intact.

Frequently asked questions

Is a hash a form of encryption?

No: a hash cannot be “decrypted”. You can only compare the hash of a text with a known hash.

Can I hash passwords with this tool?

To store passwords, use a function designed for it, such as bcrypt or Argon2, with a salt. MD5 and SHA alone are too fast and vulnerable to dictionary attacks.

Which algorithm should I choose?

SHA-256 for anything new: integrity checks, signatures, identifiers. Use MD5 or SHA-1 only to match an existing system that requires them, as both have known collision attacks.