Hash generator

Make MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or a file, and check one you were given.

Everything happens on your device. What you type never leaves it.

or drop a file here. Limit 1 GB.
Algorithms
Letters

Paste a hash to check it against the results.

This tool needs JavaScript to run

About this tool

This tool turns text or a file into a hash: a short fixed-length fingerprint such as a SHA-256 digest. The same input always gives the same hash, and a change of even one character gives a completely different one, so hashes are used to check that a download or a message has not been altered.

Type or paste text, or choose a file, and pick the algorithms you want: MD5, SHA-1, SHA-256, SHA-384 and SHA-512. All the chosen hashes are shown together, in lowercase or uppercase. To check a hash you were given, paste it into "Compare with expected value" and the tool says whether it matches and which algorithm it belongs to.

Everything happens on your device. Text and files are never uploaded: a file is read piece by piece, so even a very large one is hashed without being loaded into memory, and you can cancel at any time. MD5 and SHA-1 are fine for checking that a file arrived intact but are not safe for passwords or signatures; prefer SHA-256 or stronger for anything security-related.

Examples

The SHA-256 hash of a word

Input

hello

Output

SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

The MD5 hash of nothing

Input

(empty text)

Output

MD5: d41d8cd98f00b204e9800998ecf8427e

Check a hash you were given

Input

Text: hello world
Expected: B94D27B9934D3E08A52E52D7DA7DABFAC484EFE37A5380EE9088F7ACE2EFCDE9

Output

Matches SHA-256.

Common questions

Is my text or file uploaded anywhere?

No. The hash is computed in your browser. Nothing is sent to ajx.io or to anyone else, and the tool keeps working if you go offline.

How large a file can I hash?

Up to 1 GB. The file is read in small pieces, so it is not loaded into memory all at once and the page stays responsive. A progress bar shows how far it has got, and you can cancel.

Which algorithm should I use?

Use SHA-256 for most things. MD5 and SHA-1 are broken for security purposes, because different inputs with the same hash can be made on purpose, but they are still common for checking that a file was not corrupted, which is why they are offered.

Why is the hash of the same text different elsewhere?

A hash depends on the exact bytes. This tool hashes text as UTF-8. A different line ending (a new line on its own or a return followed by a new line), a trailing space or a different encoding gives a different hash.

Can a hash be turned back into the original text?

No. A hash is one way. Short or common inputs can be guessed by trying many of them, which is why passwords should be stored with a slow, salted method and not a plain hash.