PT Privacy Tools

Hash Generator

Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text locally with the Web Crypto API. Copy the hex digest instantly.

🔒 Runs entirely in your browser — nothing is uploaded

Was this tool useful? Rate it:

Generate text hashes locally

A hash function turns text into a fixed-size digest that changes completely when the input changes. Developers use hashes to compare data, verify file lists, create cache keys and check whether two pieces of text are identical without storing the original value. This generator uses crypto.subtle.digest, the Web Crypto API built into modern browsers, so the text is processed on your device. The result is shown as lowercase hexadecimal characters and can be copied with one click. Empty text is valid too; it produces the standard digest for an empty byte string.

Choosing SHA algorithms

SHA-256 is the best default for most modern tasks because it is widely supported and still considered secure for general integrity checks. SHA-384 and SHA-512 produce longer digests and are often used in systems that already standardize on the SHA-2 family with larger output. SHA-1 remains available here for compatibility with older systems, but it should not be chosen for new security-sensitive designs because practical collision attacks exist. If a service asks for a specific algorithm, match that requirement exactly, including text encoding and line endings, because even tiny input differences produce a different digest.

Hashes are not encryption

Hashes are one-way summaries, not encrypted messages. You cannot decrypt a SHA digest to recover the input, but attackers can guess common inputs and compare the resulting hashes. That is why plain SHA hashes are not safe for storing passwords. Password storage needs slow, salted, purpose-built algorithms such as Argon2, bcrypt or scrypt on a trusted backend. Use this browser tool for quick local digest generation, demos, compatibility checks and non-secret integrity workflows where keeping the input on your device is helpful. If you are comparing results with another app, copy the exact text carefully and watch for hidden spaces, tabs or final newlines, because those characters are part of the hashed input too.

How to use

  1. Enter textPaste or type the text you want to hash.
  2. Choose algorithmSelect SHA-1, SHA-256, SHA-384 or SHA-512.
  3. Generate and copyCreate the hex digest locally and copy it if needed.

Frequently asked questions

Is my text uploaded to generate a hash?
No. Hashing uses crypto.subtle.digest in your browser, so the text stays on your device.
Which algorithms are available?
You can generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes. Prefer SHA-256 or stronger for modern use.
Can I reverse a hash?
Cryptographic hashes are one-way digests. You cannot decrypt them, but weak or common inputs can still be guessed by comparing hashes.
Should I use this for passwords?
Do not store passwords with plain SHA hashes. Use a dedicated password hashing function such as Argon2, bcrypt or scrypt on a trusted server.