100% offline
Developer
Free · no signup
Updated

Hash Generator

A Hash Generator takes input text and produces a fixed-length cryptographic digest — SHA-256, SHA-1, SHA-512, or MD5 — using the browser's native SubtleCrypto Web API, with no server processing.

  • MD5
  • SHA-1
  • SHA-256
  • SHA-512

SHA-* hashes are computed via the Web Crypto API (crypto.subtle.digest). MD5 is provided for legacy interop and should not be used to verify integrity against an adversary.

About Hash Generator

Paste text or upload a file to compute its hash in real time. SHA-256 and SHA-512 are computed via crypto.subtle.digest, the standardized Web Cryptography API. MD5 is provided for legacy interoperability and is computed with a small pure-JavaScript implementation — never use MD5 for security-critical work.

What Hash Generator does

  • SHA-256, SHA-384, SHA-512 via the Web Crypto SubtleCrypto API
  • SHA-1 and MD5 for legacy interoperability
  • Live hashing as you type for text input
  • Drag-and-drop file hashing (streamed, never uploaded)
  • Hex or Base64 output

When to reach for Hash Generator

  • Verifying an integrity checksum from a download mirror
  • Generating a content-addressed key for a static asset
  • Comparing a hash you computed locally with one posted by a vendor
  • Building a quick fingerprint for a config blob

How to use Hash Generator

  1. 01

    Paste text or drop a file

    Either paste a string or drag-and-drop a file into the input area.

  2. 02

    Pick an algorithm

    SHA-256 is the safe default. SHA-1 and MD5 are available for legacy interop only.

  3. 03

    Copy the digest

    Choose hex or Base64 output and click Copy.

When to use Hash Generator vs alternatives

AlternativeUse Hash Generator when…Use the alternative when…
`shasum` / `openssl dgst` in the terminalyou want a paste-and-go UI in the browser with file drag-and-drop.you are already scripting and want it in a pipeline.
Online hash sites that upload your filethe file or text is sensitive and cannot be uploaded.you also need server-side comparison against a known DB.

Frequently asked questions

Which hash should I use?
SHA-256 is the right default for general-purpose use. SHA-512 is faster on 64-bit systems for large inputs. SHA-1 and MD5 are broken for cryptographic purposes and should only be used for legacy interop or non-security checksums.
Why is MD5 considered insecure?
Practical collision attacks against MD5 have existed since 2004. Treat MD5 as a non-cryptographic checksum only — never use it to verify integrity against an adversary.
Are hashes reversible?
No. A cryptographic hash is a one-way function. There is no key that decrypts a SHA-256 digest back into the original input.
Does this support hashing files?
Yes. Drop a file onto the input — we stream it through SubtleCrypto without ever uploading it.

Related reading

Related concepts