Hash Generator — MD5, SHA-1, SHA-256, SHA-384, SHA-512
Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or a file, all at once. Useful for verifying file integrity or checksums. Everything runs in your browser — your text and files are never sent anywhere.
All hash computation happens entirely inside your browser. The content of your text or file is never sent to a server.
Hash values
Enter text or choose a file to see hash values here.
Computing…
How to use
- Choose "Text" or "File", then type text or select a file.
- MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes are calculated automatically and listed.
- Click "Copy" next to any hash value to copy it to your clipboard.
How it works
How it's calculated
Text input is converted to UTF-8 bytes before hashing. A file's raw content (bytes) is hashed directly. Both happen entirely through APIs built into your browser — nothing is ever sent externally.
SHA-1, SHA-256, SHA-384, and SHA-512 use the browser's built-in Web Crypto API (crypto.subtle.digest). MD5 is not part of the Web Crypto API, so this tool uses a widely used open-source library (js-md5) instead.
Output format
All hashes are shown as lowercase hexadecimal strings. Each algorithm produces a fixed length: MD5 is 32 characters, SHA-1 is 40, SHA-256 is 64, SHA-384 is 96, and SHA-512 is 128.
An important note about MD5
MD5 is now considered cryptographically broken — practical collision attacks exist — and should not be used for security-sensitive purposes such as password storage or digital signatures. MD5 support in this tool is intended for compatibility with legacy systems or simple checksum/integrity checks. For anything security-related, use SHA-256 or stronger.
About empty input
An empty string or a 0-byte file is not an error — each algorithm has a well-defined fixed hash value for empty input, which this tool will show.
FAQ
Is my text or the file I select sent to a server?
No. All hash computation happens entirely inside your browser, and no data is transmitted anywhere.
What's the difference between MD5 and SHA, and which should I use?
MD5 is an older algorithm that should no longer be used for security purposes like password storage or digital signatures. It's fine for practical uses like checking file integrity or compatibility with legacy systems, but use SHA-256 or stronger wherever security matters.
Can this handle large files?
Files up to a few megabytes — typical documents and images — work without issue. Very large files (hundreds of megabytes or more) may use significant browser memory and take longer to process.
Will the same file or text always produce the same hash?
Yes. Hash functions are deterministic — the same input always produces the same output, regardless of when or where you compute it.
Can I get the hash values in uppercase?
This tool always displays hashes as lowercase hexadecimal, which is the most common convention across systems and documentation.
Related tools
- Cron Expression Generator | GUI Builder & Next Run TimeBuild a cron expression from five fields or by editing it directly, validate the syntax instantly, and see the next 5 run times. Runs entirely in your browser — nothing is sent to a server.
- JSON Formatter & Validator | Minify, Beautify, and Detect Syntax ErrorsFormat JSON with 2/4-space or tab indentation, or minify it, and see syntax errors with the exact line and column where they occur. Everything runs in your browser only — your JSON is never sent anywhere.
- Password Generator — Custom Rules & Strength MeterGenerate secure random passwords with a chosen length and character types (uppercase/lowercase/digits/symbols), 1 to 20 at once, with an entropy (bit) score and strength label. Everything runs in your browser using crypto.getRandomValues() — nothing is ever sent anywhere.
- Regex Tester | JavaScript Pattern Matching & Capture GroupsTest JavaScript regular expressions instantly, see highlighted matches, and inspect numbered and named capture groups. Everything runs in your browser only — your pattern and text are never sent anywhere.
- All tools