Hash Generator
Compute SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic digests simultaneously locally in your browser using Web Crypto with zero uploads.
About this tool
Input text is encoded to UTF-8 bytes via TextEncoder, passed to window.crypto.subtle.digest() in parallel for SHA-1, SHA-256, SHA-384, and SHA-512, and formatted into 2-digit hexadecimal bytes. Verify SHA-256 API signatures and cache keys quickly.
How to use the hash generator
- Paste or type the text you want to hash into the input box.
- Read the four results at once: SHA-1, SHA-256, SHA-384 and SHA-512.
- Tick Uppercase hex if the system you are comparing with writes hashes in capitals.
- Copy the SHA-256 value with its button, or select any other value on screen and copy it by hand.
Which algorithm to choose
SHA-256 is the most common choice today for checking downloads, signing data and comparing content. SHA-384 and SHA-512 produce longer values for systems that need more margin. SHA-1 is kept for compatibility with older systems. It is no longer considered secure against deliberate tampering, so do not rely on it for new security work.
All four algorithms run on the same input at the same time, so you can compare them side by side and copy the one a checklist or a download page asks for.
A worked example
The text Qgenx Tools runs hashes locally always gives the same SHA-256 value, a 64-character string of hexadecimal digits. Add a single full stop to the end and the value changes entirely. This is the property that makes a published hash useful: if the file you received gives a different value, it was changed on the way.
- Compare the SHA-256 of a downloaded installer with the value published on the vendor's site.
- Check that two copies of a text file are identical by comparing their SHA-256 values.
Who uses a hash generator
- Developers creating cache keys, content identifiers and checksums.
- Security and IT staff verifying downloads and software packages.
- Students learning how hash functions behave.
- Support teams comparing the content of two records or two files.
- Anyone checking a value published next to a download.
Tips and common mistakes
- A hash of text depends on exact bytes. A trailing space or a different line ending gives a different value.
- Hashing a file is different from hashing its name. Compare the file contents, not the file name.
- Do not store plain hashes of passwords. Use a password hashing function designed for that purpose.
- Hex digits are case-insensitive, but some systems compare capitals and lower case as different strings.
- The hashing runs in your browser. The text you enter is not sent to our server.
Frequently asked questions
Related browser tools
Base64 Encoder / Decoder
Encode and decode Base64 strings with full UTF-8 and URL-safe (Base64URL) support locally in your browser with zero uploads.
CSV to JSON Converter
Convert CSV, TSV, and semicolon-delimited tables into clean JSON arrays locally in your browser with quoted-comma support and zero uploads.
HTML Entity Encoder / Decoder
Encode and decode HTML entities (<, >, &, ", ') and numeric character references locally in your browser without XSS risk.