Free tool • Runs in your browser
SHA-256 hash generator
Create SHA-256, SHA-1, SHA-384 or SHA-512 hashes of text or files.
Quick answer
A hash is a fixed-length fingerprint of data. Any change gives a completely different result, which makes hashes useful for checking files. They are one-way, but plain SHA hashes are not suitable for storing passwords.
How to use it
- Enter text or choose a file.
- Choose the algorithm.
- Copy the hash or compare it to an expected value.
Example
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Common errors and how to fix them
- The hash does not match
- Check for extra spaces or line breaks, as they change the result.
Frequently asked questions
How do I generate a SHA-256 hash?
Enter text or choose a file here, and the hash appears automatically.
How do I get the SHA-256 hash of a file?
Choose the file here. The file is read on your device, and you can compare the result with an expected value.
How do I get a SHA-256 hash on Windows?
Run certutil -hashfile yourfile SHA256 in Command Prompt.
How do I get a SHA-256 hash on Linux or Mac?
Run sha256sum file on Linux, or shasum -a 256 file on a Mac.
How do I generate a SHA-256 hash in Python?
Use hashlib.sha256(text.encode()).hexdigest() after importing hashlib.
How do I generate a SHA-256 hash in Java?
Use MessageDigest.getInstance("SHA-256") and call digest on your bytes, then convert them to hex.
How does SHA-256 work?
It processes data in blocks through fixed rounds of operations, producing a 256-bit result. A tiny change gives a completely different hash.
How many SHA-256 hashes exist?
There are 2^256 possible values, a number with 78 digits.
Can I use SHA-256 to store passwords?
Do not use plain SHA-256 for passwords. Use bcrypt, scrypt or Argon2. SHA-1, also offered here, is only for older systems.
Is my text or file uploaded?
No. Hashing happens in your browser and nothing is sent to Quecko.
More developer tools
Need something built for your business?
Quecko designs and builds AI, Web3 and custom software products.