Hash Generator
Generate cryptographic hashes of any text. SHA-1, SHA-256, SHA-384 and SHA-512 are computed with the browser's native Web Crypto API; an MD5 implementation is included for legacy checks.
About this tool
Generate cryptographic hashes of any text. SHA-1, SHA-256, SHA-384 and SHA-512 are computed with the browser's native Web Crypto API; an MD5 implementation is included for legacy checks.
Example
Input: abc
Output: SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Privacy
This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.
How to use this tool
- Paste or type the text you want to hash into the input box.
- Choose the hash algorithm you need, such as MD5, SHA-1, SHA-256, SHA-384, or SHA-512.
- Read the generated hash from the output area and copy it for use in your app, script, or database.
- If the result does not match what you expected, check the exact input text, including spaces and line breaks.
Step by step, what happens
- The tool takes your plain text input and converts it to bytes using the browser's text handling.
- For SHA-1, SHA-256, SHA-384, and SHA-512, it uses the browser's native Web Crypto API to compute the digest.
- For MD5, it uses the built-in legacy MD5 implementation because Web Crypto does not provide MD5.
- The resulting hash is formatted as a lowercase hexadecimal string and shown for you to copy.
Worked example
For example, if you need the hash for a simple password test value, you can enter plain text and compare the generated digest.
Input: hello
- Paste hello into the input field.
- Select SHA-256 as the hash type.
- The tool computes the digest in the browser and displays the hexadecimal result.
- Copy the output if you need to paste it into another system.
Output: 2cf24dba5fb0a030e
Tips and common mistakes
- Hashing is exact, so hello, Hello, and hello with a trailing space all produce different results.
- Use SHA-256 or stronger for new work, and only use MD5 or SHA-1 when you are matching an older system.
- If you are hashing a file, this tool is for text input only, so you need the file contents as text first.
- If your expected hash includes uppercase letters, remember this tool outputs lowercase hexadecimal.
Frequently asked questions
Which algorithms are supported?
MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
Are these secure for passwords?
MD5 and SHA-1 are broken for security. For passwords use a dedicated algorithm like bcrypt. SHA-256+ are fine for checksums and integrity.
Is my text sent anywhere?
No, hashing uses the browser's Web Crypto API locally.
More Developer Tools Tools
Explore related calculators in this category
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
API Key Generator
Generate random, secure API keys and tokens with an optional prefix. Cryptographically secure.
Bcrypt Hash Generator
Generate bcrypt password hashes in your browser with a configurable cost factor. Free online bcrypt tool.
CSRF Token Generator
Generate cryptographically secure random CSRF tokens for forms and APIs.
You Might Also Like
Popular tools from other categories
Barcode Generator
Generate Code 128 / EAN barcodes from your data.
Color Palette Generator
Generate a harmonious color palette from one base color.
Generator Sizing Calculator
Estimate generator kW needed for your loads.
Hashtag Generator
Generate relevant hashtags from a topic keyword.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.