Skip to content
  1. LuzineDebug
  2. Tools
  3. Hash generator

MD5, SHA-1, SHA-256, SHA-512 and HMAC hash generator

Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC of a text or file, and compares with an expected hash. Everything happens in your browser.

Verify a checksum on the command line

bash / zsh
sha256sum fichier.zip          # Linux
shasum -a 256 fichier.zip      # macOS
printf %s 'texte' | sha256sum  # without a newline
PowerShell
Get-FileHash .\fichier.zip -Algorithm SHA256

HMAC is used to verify webhook signatures (Stripe, GitHub, Shopify): it is a hash computed with a shared secret. If your check fails, hash the raw request body, before any JSON.parse or reformatting.

Frequently asked questions

Why is my hash different from the command line one?

Almost always the trailing newline: echo "abc" | sha256sum hashes abc followed by \n. Use echo -n or printf, or tick “Add a trailing newline” here to compare. Also check the encoding (UTF-8 vs UTF-16) and Windows line endings.

Can an MD5 or SHA-256 hash be “decrypted”?

No, a hash is one-way. One can only try known passwords until the same hash comes out, which is why passwords are stored with bcrypt or argon2, never with plain MD5 or SHA.

Is my file uploaded?

No. The computation runs in your browser with the Web Crypto API (and a local implementation for MD5).

Errors this tool helps solve

Other tools

Error finder

Paste an error message or a log: the tool recognises the error and opens the right fix.

JSON validator

Validate, format and minify JSON, with the exact line and column of the error.

Regex tester

Test a regular expression live: highlighted matches, groups, replacement.

JWT decoder

Decode a JWT: header, payload, readable expiry dates and whether the token has expired.

HTTP status codes

All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.

Text diff

Compare two versions line by line: additions, deletions, invisible whitespace.

Base64 & URL encoder

Encode and decode Base64 (standard and URL-safe), URL, HTML entities and Unicode escapes, with proper UTF-8 handling.

Timestamp converter

Converts a Unix timestamp (seconds, milliseconds, microseconds) to a readable date in any time zone, and back.

Cron explainer

Turns a cron expression into a plain sentence, lists the next runs and flags the traps (day of month AND day of week, time zone).

YAML validator

Validates YAML (docker-compose, GitHub Actions, Kubernetes), shows the faulty line and tabs, and converts it to JSON.

Chmod calculator

Tick the permissions and get 755 or rwxr-xr-x (and back), with the ready-to-copy command and safe presets by use case.

cURL converter

Paste a cURL command (DevTools “Copy as cURL”): get the fetch, axios, Node, PHP (Laravel Http or curl) or Python requests code.

Stack trace formatter

Formats a stack trace (JS, Python, PHP, Java, .NET, Go), separates your code from libraries and points to the line to open first.