Hash Generator

Generate secure text hashes in your browser using SHA-256, SHA-384, SHA-512, or SHA-1.

Input Text

0 characters

Hash Output

0 characters

How it works

This tool uses the browser’s Web Crypto API, specifically `crypto.subtle.digest()`, to generate cryptographic digests from text input directly on the client side [web:483][web:517]. Before hashing, the text is converted into UTF-8 bytes with `TextEncoder`, which is the standard browser API for encoding JavaScript strings into byte arrays [web:517][web:537].

  • Supported algorithms in browser digest APIs include SHA-1, SHA-256, SHA-384, and SHA-512 [web:483][web:531].
  • SHA-256 is the best default for general-purpose modern use [web:520][web:523].
  • SHA-1 remains available mainly for legacy compatibility and is not recommended for new cryptographic security applications [web:529][web:519].