Hash Generator
Calculate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes or HMAC of text and files, and verify a checksum. Runs in your browser.
Text (UTF-8)
| MD5 | | |
|---|---|---|
| SHA-1 | | |
| SHA-256 | | |
| SHA-384 | | |
| SHA-512 | |
Which hash should I use?
- SHA-256 is the safe default for checksums, signatures and APIs.
- MD5 and SHA-1 are broken for security (collisions can be made on purpose). Use them only to match old checksums, never for passwords or signatures.
- HMAC mixes in a secret key, so only someone with the key can make the same value. Webhooks (Stripe, GitHub, Shopify) use HMAC-SHA256 to sign requests.
- For passwords, use a slow password hash like bcrypt, scrypt or Argon2 instead of any of these.
Verify a downloaded file
Open the file, then paste the checksum from the download page into Compare with. A green ✓ means the file is exactly the one that was published. The same check on the command line:
# macOS / Linux
shasum -a 256 file.zip
md5 file.zip # Linux: md5sum file.zip
# Windows PowerShell
Get-FileHash file.zip -Algorithm SHA256Hash text in code
Node.js crypto.createHash('sha256').update('hello world').digest('hex')
Python hashlib.sha256('hello world'.encode()).hexdigest()
Go fmt.Sprintf("%x", sha256.Sum256([]byte("hello world")))
HMAC crypto.createHmac('sha256', key).update(body).digest('hex') // Node.js
hmac.new(key.encode(), body.encode(), hashlib.sha256).hexdigest() # PythonText is hashed as UTF-8, the same as these examples. Everything runs in your browser; your text, files and keys are never uploaded.
More free tools
Unix TimestampEpoch ⇄ date in any time zone.UUID GeneratorUUID v4 / v7, bulk, plus a UUID decoder.JSON ViewerTree view, search, copy path. Handles huge files.JSON FormatterBeautify or minify JSON in one click.JSON ValidatorClear errors with exact line and column.JSONL ViewerFind broken lines in JSON Lines / NDJSON logs.JSON RepairFix broken JSON in one click.JSON to CSVFlatten nested JSON into a spreadsheet.