Hash Generator (MD5, SHA256)

Generate MD5 (via local md5), SHA-1, SHA-256, SHA-384, and SHA-512 digests from typed text or a whole file. Toggle which algorithms to run, optionally compute HMAC-SHA with a secret (MD5+HMAC not supported in-browser). Uses Web Crypto for SHA/HMAC. Copy each hex result. Nothing is uploaded — hashing runs in your browser (HTTPS recommended for crypto APIs).

hashcryptosecurity

Category: Code & Developer Tools

Input:

Algorithms

What does this hash generator do?

Cryptographic hashes map arbitrary data to a fixed-length fingerprint, usually shown as hexadecimal. They are used for checksums, deduplication, HMAC message authentication, and (for legacy systems) password storage — though modern apps should prefer slow password hashes such as Argon2 or bcrypt. This tool computes one or more digests at once so you can compare a download against a published SHA-256, verify API signatures with HMAC, or quickly fingerprint a file without installing OpenSSL.

Supported algorithms and modes

  • MD5: 128-bit digest via a local JavaScript implementation (simple digest only).
  • SHA-1, SHA-256, SHA-384, SHA-512: computed with the browser’s Web Crypto API (SubtleCrypto.digest).
  • Optional HMAC mode: for each enabled SHA algorithm, an HMAC with your UTF-8 secret key and the same hash function. MD5 does not support HMAC in this UI and shows a placeholder when selected with HMAC on.

Text vs file input

Switch between Text and File. Text is UTF-8 encoded before hashing. File reads the raw bytes with FileReader into memory — useful for installers, images, or logs. Click Generate hashes after choosing which algorithms to include. Results appear in a table with per-row copy buttons. Clear resets input, file selection, results, and hints.

Privacy and browser requirements

All hashing runs client-side in your tab. Data is not sent to Dynamic Duniya servers. Web Crypto digest and HMAC require a secure context (HTTPS or localhost); if hashing fails, try a supported browser over HTTPS.

Frequently Asked Questions

Is MD5 secure?

MD5 is cryptographically broken for collision resistance and should not be used for new security designs. It remains common for legacy checksums and non-adversarial file identification. Prefer SHA-256 or SHA-512 for integrity verification.

Why is HMAC disabled for MD5?

The page uses Web Crypto for HMAC-SHA. MD5+HMAC is not wired through that path, so the tool shows that HMAC is not supported for MD5 in the browser.

Can I hash a multi-gigabyte file?

The entire file is loaded into RAM. Very large files may exhaust memory or feel slow. For huge archives, prefer streaming command-line tools on your machine.

Does this salt passwords?

No. This is a general-purpose digest tool, not a password hasher. Do not paste real production passwords into any online form unless your policy explicitly allows it.

Is the hash generator free?

Yes. No account is required.

Tips

Quick guidance for using our tools safely and effectively.

Privacy

Files are processed on the server for conversion only and are not used for training or shared with third parties.

Best results

Use the formats suggested in each tool. Large media files may take longer — keep the tab open until processing finishes.

Need something else?

Browse related tools below or explore other categories from the main Dev Tools hub.

Related tools

More utilities in the same category.

Regex Tester

New

Test JavaScript-style regular expressions in your browser: enter a pattern, toggle global (g), case-insensitive (i), and multiline (m), paste sample text, and see highlighted matches with start indexes. Invalid patterns show a clear error. No signup; your strings stay on your device.

regexdeveloper+1

Base64 Encoder / Decoder

New

Encode plain UTF-8 text to Base64 or decode Base64 back to text in your browser (whitespace ignored when decoding). Swap encode/decode, copy the result, or upload a file in encode mode to extract the raw Base64 payload from a data URL. Convert runs client-side only.

encodingdeveloper+1

JSON Formatter & Validator

New

Pretty-print, minify, and validate JSON payloads.

jsonformatter+1

JSON Compare

New

Compare two JSON documents semantically — skip keys, optional array sorting, JSON paths, and side-by-side mismatch diffs. Runs entirely in your browser.

jsondiff+2

Text Diff Tool

New

Paste an original and a modified version, then Compare to see a unified diff: line-by-line with +/- prefixes and optional line counts, or word-by-word with highlights. Copy the plain-text diff, switch views anytime, or Clear. Uses the diff library in your browser — nothing is uploaded.

diffgit+1

SQL Formatter

New

Beautify SQL in your browser with the sql-formatter library: choose a dialect (PostgreSQL, MySQL, SQLite, BigQuery, and more), keyword case (upper, lower, preserve), and indentation (2 spaces, 4 spaces, or tab). Format, copy, or download query.sql. Identifiers and function names stay as typed unless you change keyword casing.

sqldatabase+1