Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes online from text or files — free, instant, and runs entirely in your browser.
Updated
What is the Hash Generator?
Generate cryptographic hashes instantly with this free online hash generator tool. Enter text or upload a file and get MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes computed in real time — all five algorithms run simultaneously in your browser with zero data sent to any server.
Use it as an MD5 hash generator for quick checksums, a SHA-256 hash generator for digital signatures and certificate verification, or a SHA-512 hash generator when you need the strongest available digest. Need keyed authentication? Provide a secret key and receive HMAC variants for every algorithm.
The tool also works as a file hash generator — drag and drop any file up to 100 MB to verify downloads, compare integrity, or generate checksums for distribution. Results can be output in hexadecimal (upper or lower case) or Base64, and a built-in hash verification field lets you paste a known hash to instantly check it against your generated results.
Everything runs client-side using the Web Crypto API for SHA algorithms and a pure JavaScript MD5 implementation. No accounts, no uploads, no API calls — just paste, hash, and copy.
How it works
Input
Choose between Text mode (type or paste a string) and File mode (upload or drag-and-drop any file up to 100 MB). The tool processes data entirely in your browser — nothing leaves your device.
Hash Computation
Five algorithms run simultaneously in parallel:
- MD5 (128-bit) — computed via a pure JavaScript implementation of RFC 1321.
- SHA-1 (160-bit) — computed via the browser's native Web Crypto API.
- SHA-256 (256-bit) — the industry-standard algorithm used in TLS, Bitcoin, and digital signatures.
- SHA-384 (384-bit) — a truncated variant of SHA-512, commonly used in certificates.
- SHA-512 (512-bit) — the strongest option, offering 512 bits of collision resistance.
When an HMAC secret key is provided, each algorithm operates in HMAC mode: the key is mixed into the message according to RFC 2104 before hashing, producing a keyed digest that verifies both data integrity and authenticity.
Output
Results are displayed as hexadecimal or Base64 strings, selectable via a dropdown. The Uppercase toggle (hex mode only) converts output to uppercase for compatibility with systems that require it. Each algorithm has an independent Copy button.
Verification
Paste any hash into the Verify Hash field to check it against all five generated digests. The comparison is case-insensitive and whitespace-tolerant, giving you an instant match indicator per algorithm.
Examples
Hash a text string with SHA-256
Generate a SHA-256 hash from a plain-text password or message.
Hash text with MD5
Produce a 128-bit MD5 hash commonly used for checksums and quick fingerprinting.
Generate HMAC-SHA-256 with a secret key
Create a keyed hash for message authentication using HMAC-SHA-256.
Frequently asked questions
How to generate a SHA-256 hash online?
How to generate a SHA-256 hash online?
Select the Text input mode, type or paste your message into the text area, and the tool instantly computes a SHA-256 hash (along with MD5, SHA-1, SHA-384, and SHA-512). Results appear in real time — no button click required. You can copy any hash with a single click.
How to create a SHA-256 hash from a file?
How to create a SHA-256 hash from a file?
Switch to File mode, then drag and drop any file (up to 100 MB) or click the upload area to browse. The tool reads the file entirely in your browser and generates SHA-256 plus four other algorithm hashes simultaneously. No file is ever uploaded to a server.
What is SHA-256 used for?
What is SHA-256 used for?
SHA-256 is a cryptographic hash function from the SHA-2 family. It is widely used for digital signatures, SSL/TLS certificate verification, blockchain and cryptocurrency mining (Bitcoin uses SHA-256), password hashing (with salting), file integrity checks, and data deduplication. Its 256-bit output makes collisions virtually impossible.
What is the difference between MD5, SHA-1, SHA-256, and SHA-512?
What is the difference between MD5, SHA-1, SHA-256, and SHA-512?
MD5 produces a 128-bit hash and is fast but cryptographically broken — use it only for non-security checksums. SHA-1 produces a 160-bit hash and is deprecated for security purposes. SHA-256 (256-bit) and SHA-512 (512-bit) are part of the SHA-2 family and remain secure for cryptographic use. SHA-384 is a truncated variant of SHA-512 offering 384 bits of output.
Can I use this hash generator for passwords?
Can I use this hash generator for passwords?
Yes. You can hash any text string, including passwords, to see its digest in multiple algorithms. For production password storage, always combine the hash with a unique salt and use a purpose-built key-derivation function (bcrypt, scrypt, or Argon2). This tool lets you verify and compare hash outputs during development or testing.
What is an HMAC and how do I use it here?
What is an HMAC and how do I use it here?
HMAC (Hash-based Message Authentication Code) combines a secret key with a message to produce a keyed hash that verifies both integrity and authenticity. Enter your secret key in the HMAC field, and the tool computes HMAC-MD5, HMAC-SHA-1, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512 alongside the standard hashes.
Is this hash generator secure? Does it send data to a server?
Is this hash generator secure? Does it send data to a server?
All computation happens client-side in your browser using the Web Crypto API (for SHA algorithms) and a pure-JavaScript implementation (for MD5). No data is transmitted to any server. You can verify this by disconnecting your network after the page loads — the tool will continue to work.
How do I verify a hash I already have?
How do I verify a hash I already have?
After generating hashes, paste your known hash into the Verify Hash field. The tool compares it against every generated result and shows a match or no-match indicator for each algorithm. Comparison is case-insensitive and ignores leading or trailing whitespace.
Can I get the hash in Base64 instead of hexadecimal?
Can I get the hash in Base64 instead of hexadecimal?
Yes. Use the Output Format dropdown to switch between hexadecimal and Base64 encoding. When hexadecimal is selected, an Uppercase toggle also becomes available so you can match any required casing format.
Related tools
More utilities you might find handy.
.env File Generator
Quickly generate clean, properly-quoted .env files from key-value pairs — no more quoting errors or broken deployments.
.htaccess Redirect Builder
Generate error-free Apache .htaccess code for 301 redirects, HTTPS enforcement, and canonical URL routing.
ASCII Converter – Text to ASCII, Hex, Binary & Back
Convert text to ASCII codes and decode back in decimal, hex, binary, or octal — live, private, and 100% browser-based.