Inicio Hash Calculator

Hash Calculator

Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text or file — 100% in your browser.

Input

Hash Results

Hash values will appear here.

What is hashing?

Hashing is the process of taking an arbitrary amount of input data — a text string, a file, an image, or an entire database — and running it through a mathematical function called a hash algorithm to produce a fixed-length string of characters known as a hash, digest, or checksum. The same input always produces the same output, but even a tiny change to the input (flipping a single bit) results in a completely different hash. Hashing is a one-way operation: you can compute a hash from data, but you cannot recover the original data from its hash.

Hash functions are foundational to modern computing. They are used to verify file integrity (a download that matches its published checksum is intact), to store passwords securely (only the hash is stored, never the plain password), to sign digital certificates, to deduplicate data in storage systems, and to power blockchain proof-of-work. Cryptographic hash functions add three crucial guarantees: pre-image resistance (you cannot guess the input from the hash), second pre-image resistance (you cannot find a different input with the same hash), and collision resistance (no two different inputs should ever produce the same hash).

Hash algorithms explained

Different hash algorithms produce digests of different lengths and offer different security guarantees. This tool supports five widely-used algorithms, each with its own trade-offs:

  • MD5 (128-bit). Released in 1992 as the successor to MD4, MD5 produces a 32-character hex digest. It is extremely fast and remains popular for non-cryptographic checksums, file fingerprinting and cache keys. However, MD5 is considered cryptographically broken: practical collision attacks have been demonstrated since 2004, so it must never be used for passwords, digital signatures or any security-sensitive purpose.
  • SHA-1 (160-bit). Published in 1995 by the NSA, SHA-1 outputs a 40-character hex digest. It was the backbone of TLS certificates and Git commit IDs for many years, but was deprecated after a public collision attack (SHAttered) in 2017. Most browsers and certificate authorities no longer trust SHA-1.
  • SHA-256 (256-bit). Part of the SHA-2 family, SHA-256 produces a 64-character hex digest. It is currently the most widely used cryptographic hash, protecting Bitcoin, TLS certificates, software signing, file integrity and password storage (when combined with a salt and a slow KDF). It offers strong security and excellent hardware acceleration on modern CPUs.
  • SHA-384 (384-bit). Another SHA-2 variant, SHA-384 truncates the SHA-512 digest to 96 hex characters. It is used in higher-security contexts such as government applications and X.509 certificates where extra margin is desired.
  • SHA-512 (512-bit). The longest SHA-2 variant, producing a 128-character hex digest. It performs best on 64-bit CPUs and is used in digital signatures, password hashing with PBKDF2/Argon2 back-ends, and integrity verification of large archives.

MD5 vs SHA — which should you use?

MD5 and the SHA family solve the same problem on paper, but they belong to different eras of cryptography. MD5 is faster and produces a shorter digest, which made it attractive in the 1990s when bandwidth and CPU cycles were scarce. Today, MD5 should only be used for non-security tasks such as change detection, deduplication, ETag generation, or comparing downloaded files against a non-adversarial checksum. Anywhere an attacker might deliberately craft a colliding input — password storage, digital signatures, certificate fingerprints, anti-tampering — MD5 is unsafe and SHA-256 or stronger should be used instead.

Within the SHA family, SHA-256 is the modern default. SHA-384 and SHA-512 offer a larger security margin and are preferred in environments that mandate it (financial, medical, government). SHA-1 should be avoided for new code; it remains useful only for verifying legacy artifacts such as old Git objects or expired certificates. When storing passwords specifically, raw hashes of any algorithm are insufficient — pair SHA-256 (or better, SHA-512) with a slow key-derivation function such as PBKDF2, bcrypt, scrypt or Argon2.

When to use a hash calculator

A hash calculator is handy in many day-to-day situations, both for developers and for general users who need to verify that data has not changed. Common use cases include:

  • Verifying file integrity. Compare the hash of a downloaded ISO, archive or installer against the publisher's published checksum to confirm the file is not corrupted or tampered with.
  • Detecting changes. Hash a configuration file, contract or document before and after transmission; matching hashes prove the content is identical.
  • Cache keys and deduplication. Hash a payload to generate a stable, compact identifier for caching, deduplication, or as a database unique key.
  • Generating fingerprints. Compute a SHA-256 fingerprint of a certificate, public key, or document for verification and audit logs.
  • Debugging data pipelines. Hash intermediate records to confirm that transformations did not silently alter values.
  • Learning cryptography. Experiment with how small input changes produce wildly different hash outputs (the avalanche effect).

For password storage, do not stop at a raw hash — use a dedicated password hashing function. This tool is intended for checksums and learning, not for storing user credentials.

How to compute a hash

Computing a hash with this tool takes only a few seconds and happens entirely inside your browser. No upload, no sign-up, and no installation are required. The tool uses the Web Crypto API (crypto.subtle.digest) for the SHA family and a built-in JavaScript implementation for MD5. Follow these steps:

  1. Enter your input. Type or paste text into the input box, or upload a file. If a file is selected, the file content is hashed; otherwise the text is hashed.
  2. Click "Calculate Hashes". The tool computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 in parallel and lists each digest in the results panel.
  3. Copy the hash you need. Each digest has its own Copy button. Click it to copy the hex string to your clipboard.
  4. Compare or reuse. Paste the hash into your script, document, or verification flow. Re-running the tool on the same input always yields the same digests.

Because every step runs locally in your browser using JavaScript, your text and files are never uploaded to a server. This makes the calculation completely private, fast, and suitable for sensitive content.

Is this hash calculator free?

Yes, completely free with no sign-up, no watermarks and no limits beyond your device's memory.

Which hash algorithms are supported?

MD5, SHA-1, SHA-256, SHA-384 and SHA-512. All are computed locally in your browser.

Can I hash a file instead of text?

Yes. Use the file picker to choose a file, then click "Calculate Hashes". The file bytes are read locally with the FileReader API and never uploaded.

Is MD5 safe for passwords?

No. MD5 is broken for security purposes. For passwords use a slow key-derivation function such as PBKDF2, bcrypt, scrypt or Argon2 with a per-user salt.

Are my inputs uploaded?

No. All processing is local. Your text and files never leave your browser.