What is hash generator?
Hash functions turn any input into a short fixed length string. The same input always gives the same hash, and a tiny change gives a completely different one.
They are used to check that a download is intact, to compare values without storing them and as part of signatures.
How to use the hash generator
- Type or paste text.
- Press Calculate.
- Copy the hash you need.
How the hash generator works
Text is encoded as UTF 8 and passed to the Web Crypto API, which returns the digest as bytes. The bytes are shown as hexadecimal.
Worked example
Common uses of the hash generator
- Checking that a downloaded file matches its published checksum.
- Comparing two pieces of text without showing them.
- Creating cache keys and short fingerprints.
- Learning how hash functions behave.
- Verifying data was not changed in transit.
Tips and common mistakes
Do not store passwords with plain SHA hashes. Use bcrypt, scrypt or Argon2 with a salt.
MD5 and SHA 1 are broken for security. Use SHA 256 or better.
Background: what to know before you rely on it
A cryptographic hash function takes any input and returns a fixed size string, with three key properties: the same input always gives the same output, a tiny change in input changes the output completely, and it is not practical to work backward from the output. SHA 2 functions such as SHA 256 are widely used in security, and SHA 1 is considered weak for signatures. A plain hash is not enough for passwords because attackers can try billions of guesses per second. Password storage needs slow, salted algorithms like bcrypt or Argon2. Hashes are also not encryption, because there is nothing to decrypt.
Private, free and fast
This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all developer tools, or browse the full list of tools.
Frequently asked questions
What is a hash?
A fixed length fingerprint of data.
Can a hash be reversed?
Not directly. Weak inputs can be guessed.
Why no MD5?
The browser does not provide MD5 and it is not secure.
Related tools
JSON Formatter and Validator
Paste your JSON and the tool checks that it is valid, then formats it with indentation or compresses it...
Developer ToolsBase64 Encoder and Decoder
Base64 turns text or bytes into a safe string of letters and numbers. Choose encode or decode, paste...
Developer ToolsURL Encoder and Decoder
URL encoding replaces unsafe characters with a percent sign and two hex digits so a link works...
Developer ToolsRegex Tester
Enter a pattern, flags and test text. The tester lists every match with its position and capture groups...
SEO ToolsMeta Tag Generator
Enter your page title, description and URL and the generator writes the HTML meta tags, including Open...
GeneratorsLorem Ipsum Generator
Choose how many paragraphs, sentences or words you need and the generator returns placeholder text you...
Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Do not paste live secrets into any website.