Utinzo

Hash Generator

Generate MD5, SHA-1, and SHA-256 style hashes from any text input. Useful for checksums, data integrity verification, and learning about hashing.

Did this tool work for you?

How to use this calculator

MD5, SHA-1 and SHA-256 over the UTF-8 bytes of the input, plus FNV-1a and djb2 over its UTF-16 code units

The text is encoded as UTF-8 and run through pure-JavaScript implementations of MD5 (RFC 1321), SHA-1 and SHA-256 (FIPS 180-4). FNV-1a (32-bit) and djb2 (32-bit) are small non-cryptographic hashes computed over the string’s UTF-16 code units. MD5 and SHA-1 are broken for security purposes and are included for checksum compatibility only.

  1. 1

    Enter any text in the input box.

  2. 2

    The tool returns multiple hash values of different lengths.

  3. 3

    Copy the hash for checksums, data fingerprinting, or learning about hash functions.

Frequently asked questions

Which algorithms does the tool actually compute?

Five: SHA-256, SHA-1 and MD5, which are standard cryptographic hash functions implemented in the page’s own JavaScript, plus FNV-1a 32-bit and djb2 32-bit, which are small non-cryptographic hashes. Outputs for the three standard ones match known reference values; the SHA-256 of "Hello, World!" is dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f. There is no SHA-512, SHA-3, BLAKE or HMAC.

Is MD5 or SHA-1 safe to use?

Not for security. Practical collision attacks exist for both, so they must not be used for digital signatures, certificates or anything where an attacker could craft two inputs with the same hash. They remain common for non-adversarial checksums, such as matching a download against a published value, when the publisher only supplies MD5 or SHA-1. Prefer SHA-256 where you have the choice.

Can I use it to hash passwords?

No. SHA-256, SHA-1 and MD5 are designed to be fast, which helps attackers who test billions of guesses per second, and none of the outputs here is salted. Store passwords with a deliberately slow, salted algorithm such as bcrypt, scrypt or argon2 on the server. The tool also runs entirely in your browser, so it is not a place to test real passwords.

Why does the byte count differ from the character count?

MD5, SHA-1 and SHA-256 hash the UTF-8 bytes of your text, so "é" is 2 bytes and an emoji is 4. The result line shows both counts, for example 13 chars, 13 bytes for plain ASCII. FNV-1a and djb2 instead run over JavaScript’s UTF-16 code units, so for accented letters and emoji their values will not match implementations that work on UTF-8 bytes.

Does a trailing space or newline change the hash?

Yes. Every character counts, including spaces, tabs and a final line break, and upper and lower case are different. "Hello, World!" and "hello, world!" give completely different values for every algorithm. If a hash from another tool does not match, a hidden trailing newline is the most common cause.

Can it hash a file or an empty string?

It hashes pasted text only, with no file upload, so it cannot produce a checksum for a download or an image. An empty box returns the message "Enter some text to hash" rather than the hash of an empty string. For file checksums use your operating system’s command-line hash utility.

What does the output case option change?

It only switches the hexadecimal digits between lowercase (a–f) and uppercase (A–F). The underlying value is identical. Compare hashes case-insensitively; most published checksums are lowercase.

About hash generator

Hash outputs compared: SHA-256, SHA-1, MD5, FNV-1a and djb2

What each algorithm returns

The page produces five digests from the same input. Three are cryptographic and sized 128, 160 and 256 bits; two are 32-bit hash-table functions. The table lists their output lengths in hexadecimal characters and their suitability. Length differs only in how many characters you see, but the distinction in design goals matters: cryptographic hashes are built so that finding two inputs with the same output is infeasible, which holds for SHA-256 and no longer holds for MD5 or SHA-1.

Algorithms in this tool
AlgorithmOutput (hex characters)Role
SHA-25664 (256 bits)General integrity checks
SHA-140 (160 bits)Legacy checksums only; collisions are practical
MD532 (128 bits)Legacy checksums only; collisions are practical
FNV-1a 32-bit8 (32 bits)Hash tables and quick fingerprints; not secure
djb2 32-bit8 (32 bits)Hash tables; not secure

Worked example: Hello, World!

The default input "Hello, World!" (13 characters, 13 bytes) gives SHA-256 dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f, SHA-1 0a0a9f2a6772942557ab5355d76af442f8f65e01, MD5 65a8e27d8879283831b664bd8b7f0ad4, FNV-1a 5aecf734 and djb2 96e2828e. The same text always gives the same values, so you can check any other tool or command against these. Hashing is deterministic: there is no salt, timestamp or random element anywhere in the calculation, which is why published checksums can be compared across machines and programs.

Worked example: one character of difference

Changing the text to the lowercase "hello, world!" produces SHA-256 68e656b251e67e8358bef8483ab0d51c6619f3e7a1a9f0e75838d41ff368f728, SHA-1 1f09d30c707d53f3d16c530dd73d70a6ce7596a9, MD5 3adbbad1791fbae3ec908894c4963870, FNV-1a 8a0c8a74 and djb2 cd68c6ce. Two letters changed case and every digest is unrecognisable from the first, which is the avalanche behaviour that makes hashes useful for spotting any alteration.

Text, bytes and where results can disagree

The three standard algorithms operate on UTF-8 bytes, matching what command-line tools do with a UTF-8 file. If your digest differs from another tool’s, look first for trailing whitespace, a different line-ending style or a different text encoding. FNV-1a and djb2 are computed on UTF-16 code units, so they only agree with byte-based versions for plain ASCII text.

Choosing the right tool for the job

Use SHA-256 to compare against a published checksum or to fingerprint content, for example to spot whether two pasted blocks of text are identical without reading them. Use MD5 or SHA-1 only when you must match a legacy value. The two 32-bit functions are quick fingerprints that collide often enough in practice, so do not rely on them to prove two things are identical. Passwords and signatures need other tools entirely, such as bcrypt or argon2 for stored passwords, and a proper signing library for signatures.

Hash Generator – Utinzo

Learn more from an authoritative source:

Wikipedia
Related tools

Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →