Hash Generator (SHA-1, SHA-256, SHA-384, SHA-512)
Compute cryptographic hashes of text or files locally, SHA-1, SHA-256, SHA-384 and SHA-512.
Loading Hash Generator (SHA-1, SHA-256, SHA-384, SHA-512)… If nothing happens, please enable JavaScript.
Frequently asked questions
Is my data uploaded to a server?
What is the difference between SHA-256, SHA-384, and SHA-512?
When would I use a hash in a real project?
Why isn't MD5 available?
Can I hash a file, and is there a size limit?
Does the tool work offline?
Can I use hash output directly as a password or API key?
Is SHA-1 still safe to use?
What format is the hash output, and can I convert it to Base64?
What is a 'hash collision' and why does it matter?
About Hash Generator (SHA-1, SHA-256, SHA-384, SHA-512)
A cryptographic hash function is a mathematical algorithm that takes an input of arbitrary length and produces a fixed-size output — the hash or digest — that appears random but is completely deterministic. The same input always produces the same hash, yet changing even a single bit of the input produces a completely different digest (the avalanche effect). This one-way property means it is computationally infeasible to reverse a hash back to its original input, which makes hash functions foundational to computer security. The SHA (Secure Hash Algorithm) family was designed by the National Security Agency and standardised by NIST: SHA-1 in 1995, SHA-256/384/512 (collectively SHA-2) in 2001.
Hash functions are used everywhere in modern software. Password storage systems hash user passwords with an additional salt so that even if the database is stolen, the plaintext passwords remain unknown. File integrity tools distribute SHA-256 checksums alongside downloads so users can verify that a file has not been tampered with in transit. Git uses SHA-1 (and is migrating to SHA-256) to address every commit, tree, and blob in a repository. Digital certificates, TLS handshakes, HMAC authentication tokens, and code-signing pipelines all depend on SHA-2 hashes. Content delivery networks use hashes for cache keys, and blockchains use them for proof-of-work.
This tool computes SHA-1, SHA-256, SHA-384, and SHA-512 hashes directly in your browser using the Web Crypto API — a native browser interface backed by the operating system's cryptographic library. Because all computation happens on your device, your input text or file is never uploaded to any server, making the tool safe to use with confidential documents, production credentials, or private keys. Results are displayed in lowercase hexadecimal, the most common format, and can be copied with a single click.
Choosing the right algorithm matters. SHA-1 is considered cryptographically broken for collision resistance — two different inputs can be engineered to produce the same SHA-1 hash — and should only be used for legacy interoperability, not new security applications. SHA-256 is the current workhorse standard, widely supported and appropriate for the vast majority of use cases. SHA-384 and SHA-512 offer larger output sizes (and slightly stronger security margins) at the cost of somewhat larger digests. If you need to hash passwords specifically, use a purpose-built password hashing function like bcrypt, scrypt, or Argon2 instead — cryptographic hashes like SHA-256 are intentionally fast, which makes them poor choices for password storage.
The SHA story: from classified origins to global standard
The Secure Hash Algorithm family was developed by the United States National Security Agency (NSA) and standardised by the National Institute of Standards and Technology (NIST). The original SHA (retroactively called SHA-0) was published in 1993, but the NSA withdrew it less than a year later — officially citing a flaw, though the nature of that flaw was classified. SHA-1, its successor, was published in 1995 and went on to become one of the most widely deployed cryptographic algorithms in history, embedded in everything from SSL certificates to Git repositories.
The SHA-2 family (SHA-256, SHA-384, SHA-512) was published in 2001, but adoption was slow because SHA-1 was still considered secure at the time. It took the theoretical break of SHA-1 by Wang Xiaoyun's team in 2005, and the practical SHAttered collision attack in 2017, to finally push the industry toward SHA-2. NIST has also standardised SHA-3 (2015), which is based on a completely different internal structure (the Keccak sponge construction) and serves as a backup in case a fundamental weakness is found in SHA-2.
One fascinating detail: the output of SHA-256 is exactly 256 bits — a number so astronomically large (about 10^77) that the number of possible SHA-256 hashes exceeds the estimated number of atoms in the observable universe. This is why, even with the entire computing power of the world working together, finding a specific SHA-256 input from its hash alone is considered practically impossible for the foreseeable future.