How do I generate a SHA-256 or MD5 hash online?
Enter your text and instantly see its hash in SHA-1, SHA-256, SHA-384, SHA-512, and MD5. You can copy any hash with one click. All hashing is performed client-side using the Web Crypto API — your input never leaves your browser.
hello world
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes using the Web Crypto API.
Tips & Best Practices
MD5 and SHA-1 are broken for security — use SHA-256 minimum
MD5 collisions can be generated in seconds on a laptop. SHA-1 was broken by Google in 2017 (SHAttered attack). For password hashing, neither SHA family is appropriate — use bcrypt, scrypt, or Argon2 which include salting and key stretching. SHA-256/512 are fine for file integrity checks and checksums.
Same input always produces the same hash
Hashing is deterministic. If you hash passwords with SHA-256 alone (no salt), identical passwords produce identical hashes. An attacker with rainbow tables can reverse millions of unsalted hashes instantly. Always salt before hashing for authentication use cases.
SHA-256 is the standard for file verification
When downloading software, compare the SHA-256 checksum on the publisher's site against the hash of your downloaded file. This detects corrupted downloads and man-in-the-middle tampering. Most Linux distros, Docker images, and security tools publish SHA-256 checksums.
Subresource Integrity uses SHA-384 by default
When loading scripts from CDNs, add an integrity attribute with the SHA-384 hash: <script src="cdn/lib.js" integrity="sha384-abc..." crossorigin="anonymous">. The browser refuses to execute the script if the hash doesn't match, preventing supply chain attacks.
Frequently Asked Questions
What is the difference between SHA-256, SHA-384, and SHA-512?
Is SHA-1 still safe to use?
How do I verify a file's integrity using a hash?
Related Generate Tools
HTML Table Generator
Build HTML tables visually with an interactive editor — add rows, columns, header rows, captions, and styling. Export as plain HTML, inline CSS, or Tailwind classes
CSS Clip-path Generator
Create CSS clip-path shapes visually — circle, ellipse, inset, or polygon with draggable points. 13 shape presets, interactive preview, and production-ready CSS output
CSS Filter Generator
Build CSS filter effects visually — blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia, and drop-shadow with 12 presets and live preview
UUID Generator
Generate random UUID v4 identifiers in bulk