Hash Generator
The Hash Generator computes SHA-1, SHA-256, SHA-384, and SHA-512 digests of any text using your browser’s built-in cryptography. Use it to verify file integrity, compare checksums, or generate deterministic fingerprints — all live as you type, with nothing uploaded. Each algorithm produces a fixed-length digest no matter how much text you feed it — SHA-1 outputs 40 hex characters, SHA-256 outputs 64, and SHA-512 outputs 128 — so you can tell at a glance which algorithm produced a hash you're comparing against. Note this tool hashes text you type or paste, not uploaded files; to verify a downloaded file's checksum, generate the file's hash separately (e.g. with sha256sum) and compare the value here.
…………Computes SHA-1, SHA-256, SHA-384, and SHA-512 checksums of your text using your browser’s built-in cryptography — nothing is uploaded. Hashes update live as you type. (SHA-1 is shown for legacy compatibility; use SHA-256 or higher for security.)
How This Tool Works
Type or paste text and the SHA-1, SHA-256, SHA-384, and SHA-512 digests appear instantly. Click Copy next to any algorithm to copy its hash.
Formula & Method
A cryptographic hash function maps any input to a fixed-length hexadecimal digest. The same input always produces the same hash, while even a tiny change produces a completely different one — which is what makes hashes useful for integrity checks and fingerprints.
Example Calculation
Hashing “The quick brown fox” with SHA-256 always yields the same 64-character digest — change a single letter and the entire hash changes. Hashing "The quick brown fox jumps over the lazy dog" with SHA-256 always produces d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 — just adding a period at the end changes it completely to ef537f25c895bfa782526529a9b63d97aa631564d5d789c2b765448c8635fb6c, with no resemblance between the two.
About the Hash Generator
A cryptographic hash function turns any amount of data into a short, fixed-size fingerprint. Feed it one word or an entire novel and you get a string of the same length back, always the same string for the same input, and a completely different string if even one character changes. That combination makes hashes useful for checking that data arrived unchanged, spotting duplicates, deriving cache keys, and signing or verifying messages. This page computes four of the standard ones for whatever text you type: SHA-1, SHA-256, SHA-384, and SHA-512.
The four results appear together and update on every keystroke, each with its own Copy button. They differ in the length of the fingerprint: SHA-1 gives 160 bits, shown as 40 hexadecimal characters, SHA-256 gives 64 characters, SHA-384 gives 96, and SHA-512 gives 128. SHA-256, SHA-384, and SHA-512 belong to the SHA-2 family and are considered secure for integrity checking today. SHA-1 is included for compatibility with older systems; practical collision attacks have been demonstrated against it, so it should not be used for anything security-sensitive.
Developers comparing a payload with a published digest, administrators verifying a configuration string, students learning how hashing behaves, and writers or testers who need a deterministic fingerprint of a phrase all use tools like this. Two warnings frame the rest of the page. A hash is not encryption, so it cannot be reversed to recover the text but can be guessed for short or common inputs. And the tool hashes exactly the characters in the box, including any trailing space or line break, which is the most frequent reason a result fails to match one produced elsewhere.
When to Use It
Verifying a published checksum for a short string
A vendor documents that a secret-free configuration phrase should hash to a given SHA-256 value. You type the phrase exactly as written and compare the 64-character output to the published value. A match confirms the text is identical, character for character; a mismatch sends you looking for a stray space, a different quote style, or a hidden line break.
Learning how hash functions behave
A student studying security wants to see the avalanche effect. Type hello and note the SHA-256 output, then change the first letter to a capital H. The two fingerprints share nothing recognizable, which demonstrates why even a tiny edit to a document is detected by a hash comparison.
Creating deterministic keys and cache labels
A developer needs a stable, fixed-length identifier derived from a long string, such as a URL plus a set of options. Pasting the combined text and copying the SHA-256 value gives a 64-character key that is always the same for the same input, and works well as a cache key or a file name.
Checking data copied between systems
Support staff moving an identifier or message between two systems can hash the text on each side. If the digests match, the text is identical; if not, differences such as encoding, whitespace, or capitalization are the likely culprits, which narrows the troubleshooting quickly.
How to Use It, Step by Step
- Click into the box labeled "Text to hash". It starts with the phrase "The quick brown fox", so select all of it and replace it with your own text.
- Type or paste the text exactly as it should be hashed. Every character counts, including spaces, tabs, capital letters, punctuation, and line breaks. If you press Enter in the box, that line break becomes part of the hashed text.
- Watch the four panels below the box, labeled SHA-1, SHA-256, SHA-384, and SHA-512. They are computed automatically on each change, so there is no button to press. While a result is being computed you may briefly see an ellipsis.
- Choose the algorithm that matches what you are comparing against. If a vendor lists a 64-character digest, use SHA-256; 128 characters means SHA-512; 96 means SHA-384; 40 means SHA-1.
- Compare the digest with the expected one. Hexadecimal digits are case-insensitive, so ABCD and abcd are the same value, but every other character must match in the same order.
- Press the Copy button in the panel you need. The label changes to "Copied" for a moment, and the lowercase hexadecimal digest is on your clipboard.
- If the digest does not match, look for invisible differences: a trailing newline, a space before or after the text, curly quotes instead of straight quotes, or a different capitalization. Fix those in the box and the result updates.
Understanding Your Results
Each panel shows the digest in lowercase hexadecimal. The length tells you the algorithm: 40 characters for SHA-1, 64 for SHA-256, 96 for SHA-384, and 128 for SHA-512. A digest never reveals anything about the original length or content, so two very different texts give outputs of identical length. The output depends only on the exact sequence of bytes, which the tool produces by encoding your text as UTF-8 before hashing.
A change anywhere in the input changes roughly half of the output bits, with no pattern. For instance, hello and Hello give SHA-256 values that differ in 125 of 256 bits, so the two digests look unrelated. This is what makes a hash a good tamper alarm: if the digests match, the inputs are, for all practical purposes, identical; if they differ, the inputs differ somewhere, but the digest does not tell you where.
An empty box still produces digests, because the empty string has a perfectly valid hash. The SHA-256 of nothing is e3b0c442 followed by many more characters, and the SHA-1 of nothing is da39a3ee5e6b4b0d3255bfef95601890afd80709. Seeing those values means the input is truly empty, not that something has gone wrong. Hashes of short, common phrases like password are easy to look up in published tables, so a hash alone does not protect a weak secret.
More Worked Examples
One letter changes everything
Scenario: Hash hello, then Hello, and compare the SHA-256 panels.
For hello the SHA-256 panel shows 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. For Hello it shows 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969. Both are 64 characters and the two bear no resemblance, even though the inputs differ by one capital letter. Counted bit by bit, 125 of the 256 bits are different, close to the half you expect from a good hash. The SHA-1 panel behaves the same way, from aaf4c61d... to f7ff9e8b....
The invisible newline
Scenario: Compare hello typed in the box with a terminal command such as echo hello piped to sha256sum.
Typing hello with nothing after it gives SHA-256 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. A terminal command like echo hello adds a newline, so it hashes six bytes and gives 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03. If you press Enter after hello in this tool's box, you get that second value as well. To match the tool in a terminal, use printf hello or echo -n hello, which leave the newline off.
Standard test input and the empty string
Scenario: Type abc, then clear the box entirely.
For abc, SHA-256 shows ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad and SHA-1 shows a9993e364706816aba3e25717850c26c9cd0d89d; these are the well-known reference values from the standards documents, so they make a good test that any hash tool is working. After clearing the box, SHA-1 shows da39a3ee5e6b4b0d3255bfef95601890afd80709 and SHA-256 shows e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. Lengths stay at 40, 64, 96, and 128 characters.
Tips for Better Results
- When matching a hash from another tool, first check its input handling. Command-line tools often hash file contents or piped text with a trailing newline, whereas this tool hashes only what is in the box.
- Paste text from a word processor with care. Curly quotes, non-breaking spaces, and en dashes look similar to the plain characters but are different bytes, producing a completely different hash.
- For a deterministic fingerprint, normalize your input first: trim whitespace, pick one capitalization, and fix the line-ending style, so that equivalent data always yields the same digest.
- Prefer SHA-256 as a general default. It is widely supported, compact enough to read and compare, and has no known practical attacks. SHA-512 gives a longer digest and can be faster on 64-bit processors for large inputs.
- Use the first 8 to 12 characters of a digest as a short label in notes or file names, but compare full digests when verifying anything important, since a short prefix can collide far more easily.
- Treat hashes of short, guessable text as non-secret. Anyone can hash a list of common passwords or names and compare, so do not publish the hash of a secret that is easy to guess.
Common Mistakes to Avoid
- Believing a hash can be decrypted. It is a one-way function with no key, so the only way to find an input is to guess candidates and hash them, which works for simple phrases but not for long random data.
- Using SHA-1 for anything security related. Researchers have produced two different documents with the same SHA-1 digest, so choose SHA-256 or stronger for signatures, certificates, and integrity checks.
- Storing passwords as a plain SHA-256 or SHA-512 digest. These are fast by design, which helps attackers; password storage requires a slow, salted algorithm such as bcrypt, scrypt, or Argon2.
- Comparing a hash of the text with the hash of a file. They are only equal if the file's bytes are exactly the same as the text encoded as UTF-8, including newlines and encoding.
- Ignoring character encoding. This tool hashes UTF-8 bytes, so a word with an accent, like café, gives a different digest than the unaccented cafe, and text saved in another encoding elsewhere may not match.
Assumptions and Limits
- Hashes are computed with the browser's built-in Web Crypto digest function on the UTF-8 encoding of your text. Results for the same bytes are identical to those from standard command-line tools.
- The tool accepts text only. It does not read files, so a file checksum must be produced with a command-line utility or another tool that reads file bytes.
- MD5 and other legacy algorithms are not offered. SHA-1 is shown only for compatibility with old systems and is not suitable where security matters.
- Matching digests show that two inputs are equal, but they cannot prove who created the data or that it is safe. For authenticity, you need a signature or a keyed method such as HMAC, which this tool does not provide.
Key Terms
- Hash function
- A procedure that maps data of any size to a fixed-size value. The same input always gives the same output, and the process cannot practically be run backward.
- Digest
- The fixed-length output of a hash function, usually written as a string of hexadecimal characters. It is also called a checksum or fingerprint.
- Avalanche effect
- The property that a tiny change in the input, such as one letter, changes about half the bits of the output in an unpredictable way.
- Collision
- Two different inputs that produce the same digest. A secure hash makes finding one computationally infeasible; for SHA-1, collisions have been demonstrated.
- SHA-2
- A family of hash functions published by the US government that includes SHA-256, SHA-384, and SHA-512. The number is the digest size in bits.
Frequently Asked Questions
Which algorithms are supported?+
SHA-1, SHA-256, SHA-384, and SHA-512 — all computed with your browser’s SubtleCrypto API. MD5 isn’t included because it isn’t supported natively and is considered insecure.
Is my text sent to a server?+
No — hashing happens entirely in your browser, so your input never leaves your device.
Should I use SHA-1?+
Only for legacy compatibility. SHA-1 is no longer considered collision-resistant, so use SHA-256 or higher for anything security-related.
Can I use this to check a downloaded file's checksum?+
Not directly — this tool hashes text you type or paste, not files you upload. Generate the file's hash with a command-line tool (like sha256sum on Mac/Linux or CertUtil on Windows), then compare that output against the value here or against what the file's publisher posted.
Can I use these hashes to store passwords?+
No — a raw SHA-256 or SHA-512 hash of a password is fast to compute, which makes it vulnerable to brute-force and rainbow-table attacks. Passwords should be stored with a purpose-built, deliberately slow algorithm like bcrypt, scrypt, or Argon2, none of which this tool provides.
Why does my hash differ from the one produced by a command-line tool?+
The most common cause is a trailing newline. Commands like echo add a line break, so they hash the text plus that extra byte. Other causes are Windows line endings, a byte order mark at the start of a file, curly quotes, and different character encodings. Use printf or echo -n to leave the newline out, and make sure you are comparing text with text, not text with a file.
Can a hash be reversed to get the original text?+
Not by calculation, since the function discards information and has no key to undo. But if the original is short or predictable, an attacker can hash many guesses and compare. That is why the hash of a common word is easy to find in lookup tables. Long, random inputs resist this approach, which is why hashes are fine for fingerprints but need extra protection when guarding passwords.
Which should I choose: SHA-256, SHA-384, or SHA-512?+
For most work SHA-256 is the sensible default: it is secure, universally supported, and gives a 64-character digest that is easy to compare. SHA-384 and SHA-512 offer longer outputs and a larger security margin, and SHA-512 can be quicker on 64-bit hardware for large inputs. Match whatever algorithm the other party uses, since a digest is only comparable with another from the same algorithm.
Do capital letters and spaces matter?+
Completely. The hash depends on the exact bytes, so hello, Hello, and hello followed by a space each give an unrelated digest. A leading or trailing space is a common invisible culprit when a digest will not match. Copy text exactly, and consider normalizing it first, for example by trimming whitespace and choosing one letter case, when you want equivalent text to yield the same fingerprint.
Why does the tool show hashes even when the box is empty?+
The empty string is a valid input with a well-defined digest, so the panels display it. SHA-256 of nothing begins e3b0c442 and SHA-1 of nothing is da39a3ee5e6b4b0d3255bfef95601890afd80709. If you ever see those values while expecting something else, your text did not reach the box. It is a quick way to detect an empty paste or an accidental clear.
Found this useful? Share it
Help someone else out — or link to it from your own site.
Link to this tool
Writing about hash generator? Paste this on your site to link here.
<a href="https://everyfix.net/tools/hash-generator/">Hash Generator</a> by <a href="https://everyfix.net">EveryFix</a>Related Tools
UUID Generator
Generate random version-4 UUIDs instantly.
Use tool →Password Generator
Generate a strong, random password with customizable character sets.
Use tool →URL Encoder / Decoder
Percent-encode or decode text and URLs instantly.
Use tool →Age Calculator
Calculate your exact age in years, months, and days.
Use tool →