Hash Generator
Create SHA-256 or SHA-1 hashes with the Web Crypto API.
Processed entirely in your browser. Nothing is uploaded.
Input
Output
Ready when you are.
About
About this tool
A hash is a fixed-length fingerprint of some data. The same text always gives the same hash, but the hash cannot be turned back into the text. Hashes are used to check that files and messages have not changed.
Enter text and this tool creates its SHA-256 or SHA-1 hash with your browser's built-in Web Crypto API. Nothing is sent to a server. Use SHA-256 for new work, since SHA-1 is only kept for older systems.
Quick guide
How to use
- Type or paste the text you want to hash.
- Choose SHA-256 or SHA-1.
- Select Generate hash and copy the result.
Ideas
When to use it
- Compare a hash you were given with the text it should match
- Create a checksum for a short piece of text or a token
- Learn how a small change in the text completely changes the hash
- Check data integrity in a development workflow
Common questions
Frequently asked questions
Can a hash be reversed?
Cryptographic hashes are one-way and cannot normally be reversed.
Which algorithm should I choose?
Use SHA-256 for modern checksums; SHA-1 is for legacy compatibility only.

