Hash Generator
The hash appears here as you type.
Enter text above to generate a hash.
Generate a cryptographic hash of any text using SHA-1, SHA-256, SHA-384, or SHA-512. Everything runs in your browser with the Web Crypto API, so your text never leaves your device. Type or paste your text, pick an algorithm, and copy the lowercase hex digest.
How to use
- Paste or type the text you want to hash into the text box.
- Choose a hash algorithm: SHA-1, SHA-256, SHA-384, or SHA-512.
- Read the lowercase hex digest in the output area, which updates as you type.
- Click Copy to put the digest on your clipboard, or Reset to start over.
Examples
- Text "abc" with SHA-256 returns ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
- Text "abc" with SHA-1 returns a9993e364706816aba3e25717850c26c9cd0d89d
- Empty input shows a friendly prompt rather than a hash, because there is nothing to hash yet.
FAQs
- What is a hash and what can I use it for?
- A hash is a fixed length fingerprint of your input. The same text always produces the same hash, so hashes are used to verify file integrity, compare values without storing the original, and check downloads against a published checksum.
- Does my text get sent to a server?
- No. The hashing runs entirely in your browser using the built-in Web Crypto API, so the text you enter stays on your device.
- Which algorithm should I choose?
- SHA-256 is a solid default for most uses. SHA-384 and SHA-512 produce longer digests for higher security margins. SHA-1 is offered for compatibility with older systems but is no longer considered safe against deliberate collisions.
- Why is MD5 not included?
- The Web Crypto digest API does not support MD5, and MD5 is broken for security purposes. This tool sticks to the SHA family that browsers support natively.
- Are the digests case sensitive?
- The output is always lowercase hexadecimal. Many checksum files also use lowercase hex, so you can compare directly. If you need uppercase, convert the copied value afterward.
- Is the same text guaranteed to give the same hash?
- Yes. For a given algorithm, identical input always yields an identical digest, which is what makes hashes useful for verification and comparison.
Related tools
- Base64 EncoderEncode text to Base64 or decode Base64 back to text in your browser. Full UTF-8 support and clear errors on invalid input.
- JWT DecoderDecode a JWT in your browser. See the header, payload, and signature, with the standard claims flagged and an expired indicator. Nothing leaves your device.
- Password GeneratorGenerate a strong random password in your browser. Choose the length and mix of lowercase, uppercase, digits, and symbols. Nothing is stored.
- Text to Binary ConverterConvert text to binary and binary back to text. UTF-8 safe, 8 bits per byte, space separated. Free and runs in your browser.
- JSON FormatterFormat, validate, and beautify JSON in your browser. Paste messy JSON, get clean indented output, then copy it back. Free, no signup.
- URL EncoderPercent encode and decode text for URLs in your browser. Toggle direction, copy results, and see clear errors on malformed input.