ToolSphere

Hash Generator

More tools

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of text as you type, or checksum a file up to 50 MB. Upper or lowercase output, computed in your browser.

Global options
Input text
MD5
...
SHA-1
...
SHA-256
...
SHA-512
...

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

How to use Hash Generator

  1. 1Select either the 'Text Hasher' or 'File Hasher' tab.
  2. 2If text: Type your text in the input area to see MD5, SHA-1, SHA-256, and SHA-512 hashes generated in real-time.
  3. 3If file: Drop any file (up to 50MB) into the file dropzone to calculate its checksum.
  4. 4Use the global option to toggle between uppercase and lowercase hash outputs, and copy the checksum.

About Hash Generator

What is a Cryptographic Hash?

A cryptographic hash function is a mathematical algorithm that maps data of arbitrary size (such as a string or a binary file) to a fixed-size bit string called a message digest or checksum. These functions are designed to be one-way, meaning it is computationally infeasible to reconstruct the original input from its hash.

Additionally, hash functions must satisfy several key properties:

  1. Deterministic: The same input will always produce the exact same hash value.
  2. High Avalanche Effect: A tiny change in the input (e.g., changing a single character or bit) alters the resulting hash so completely that it appears uncorrelated with the original.
  3. Pre-image Resistance: It is impossible to reverse-engineer the input from the hash value.
  4. Collision Resistant: It is extremely difficult to find two distinct inputs that produce the same hash value.

Understanding MD5, SHA-1, SHA-256, and SHA-512

Our Hash Generator computes four of the most widely used hash algorithms:

  • MD5 (Message Digest 5): Outputs a 128-bit (16-byte) hash value, represented as a 32-character hexadecimal number. While highly popular for quick checksum comparisons, MD5 has known security vulnerabilities and is susceptible to collision attacks, meaning it should not be used for security purposes.
  • SHA-1 (Secure Hash Algorithm 1): Outputs a 160-bit (20-byte) digest. Like MD5, it is no longer considered secure against well-funded adversaries but remains popular for legacy systems and Git version control checksums.
  • SHA-256 (SHA-2 Family): Outputs a 256-bit (32-byte) digest. It is currently the industry standard for securing cryptographic protocols, TLS/SSL certificates, blockchain transactions, and Unix password hashing.
  • SHA-512 (SHA-2 Family): Outputs a 512-bit (64-byte) digest. It is similar to SHA-256 but operates on 64-bit words, making it faster on 64-bit hardware architectures and providing an even higher margin of security.

How to Use Checksums to Verify File Integrity

Software distributors often publish MD5 or SHA-256 checksums alongside downloadable packages (like ISO images, installers, or ZIP archives). If a file is corrupted during download or modified by a malicious middleman, calculating the hash of your downloaded file and comparing it with the published checksum will reveal the disparity immediately.

By using your browser's native crypto.subtle API, this Hash Generator calculates file checksums (up to 50MB) locally. Your files are never uploaded to our servers, keeping your system binaries and code files secure.

Guides and tutorials

hashing

Hash Functions: SHA256, SHA1 and MD5

What a cryptographic hash guarantees, why MD5 and SHA-1 are broken for security, and when to use SHA-256 versus a password-hashing algorithm.

Read guide →
comparison

Hashing vs Encryption: One-Way vs Two-Way

How hashing and encryption combine in digital signatures, and the practical difference between symmetric encryption keys and the keyless nature of hashing.

Read guide →
hashing

Hashing vs Encryption: The Difference

Hashing is one-way and keyless by design; encryption is two-way and requires a key. Confusing the two leads directly to real security mistakes.

Read guide →
hashing

MD5: Checksums and Collision Problems

MD5's design, why practical collisions have existed since 2004, and the narrow set of non-security uses where it's still perfectly reasonable.

Read guide →
hashing

Password Hashing: Salt and Iterations

Why passwords need a deliberately slow, salted hash instead of a fast general-purpose one, and how bcrypt, scrypt, and Argon2 actually differ.

Read guide →
comparison

SHA1 vs SHA256: Why SHA1 Is Retired

Why the industry moved from SHA-1 to SHA-256, what actually changed between them, and what to check before migrating a system still using SHA-1.

Read guide →
hashing

SHA1: Collisions and Legacy Verification

What SHA-1 was designed to do, the 2017 'SHAttered' collision attack that broke it in practice, and where it's still acceptable to use today.

Read guide →
comparison

SHA256 vs MD5: Security and Speed

MD5 is faster with a shorter digest; SHA-256 has no known practical collision attack. Why speed is the wrong way to choose for anything security-related.

Read guide →

Frequently asked questions

Is it safe to use MD5 or SHA-1 for password hashing?

No. Both MD5 and SHA-1 have cryptanalysis weaknesses and are highly vulnerable to fast GPU brute-force attacks. Secure systems use salted stretching algorithms like bcrypt, scrypt, or Argon2.

Why is a file's hash the same regardless of its filename?

Cryptographic hashes analyze only the raw binary contents of the file itself. Metadata such as the file name, creation date, or path are excluded from the hash calculation.

Does this tool upload my files to calculate hashes?

No. The hashing is performed 100% locally in your browser's sandbox using Javascript and the WebCrypto API. Your files remain on your device.

Have a suggestion for Hash Generator?Share your feedback ↗