Hash Generator (SHA-256 / SHA-1)
Generate common text hashes including SHA-256 and SHA-1.
MD5 is intentionally not provided because Web Crypto API does not support MD5.
Overview
Generate SHA-1 and SHA-256 hashes from text using the browser's Web Crypto API. Useful for checksums, file-content comparison keys, and learning how hash functions behave.
How to use
- Paste or type the source text.
- Choose SHA-1 or SHA-256.
- Generate the hash and copy the hexadecimal result.
Examples
-
Integrity label
Input: release-notes-v2.txt content
Output: A SHA-256 hex digest to compare against a published checksum.
-
Hash behavior demo
Input: "hello" vs "Hello"
Output: Completely different digests, showing the avalanche effect.
Notes
- MD5 is not offered because the Web Crypto API does not support it and it is cryptographically broken.
- SHA-1 is considered weak for security purposes; prefer SHA-256 for anything security-related.
- Hashing is one-way: you cannot recover the original text from a digest.
FAQ
- Why is there no MD5 option?
- The browser's Web Crypto API intentionally omits MD5 because it is cryptographically broken. Use SHA-256 instead.
- Can I hash passwords with this?
- Plain SHA hashes are not suitable for password storage. Use a dedicated algorithm like bcrypt, scrypt, or Argon2.
- Is my text uploaded?
- No. Hashes are computed locally with the Web Crypto API.
Embed this tool
Paste this iframe into any HTML page to embed Hash Generator (SHA-256 / SHA-1) on your site:
Related Tools
-
UUID Generator
Generate random UUID v4 identifiers for apps, APIs, and databases.
-
Unix Timestamp Converter
Convert Unix timestamps to readable dates and dates back to Unix time.
-
JSON Formatter & Validator
Format and validate JSON with readable indentation and clear parse errors.
-
HTML Entity Encoder / Decoder
Encode special HTML characters into entities or decode entities back to text.
-
Regex Tester
Test regular expressions with flags and inspect all matches with capture groups.