What a hash is
A cryptographic hash turns any text into a fixed-length fingerprint. The same input always gives the same hash, and changing a single character changes it completely. SHA-256 gives 64 hex characters, SHA-1 40, SHA-384 96 and SHA-512 128. You cannot recover the text from the hash; you can only check whether another text produces the same one.
Exact bytes matter
The text is encoded as UTF-8 before hashing, which is what most programs and command-line tools do. A trailing space or a final newline gives a different hash: "echo hello | sha256sum" hashes "hello" plus a newline, while "printf hello | sha256sum" hashes only "hello". Use "Each line separately" to hash a list of values, such as e-mail addresses for an ad platform audience upload.
Which algorithm to use
Use SHA-256 for checksums, API signatures and anything new. SHA-1 is broken for collision resistance and kept here only for old systems such as Git object IDs. Do not store passwords as a plain SHA hash: use a slow password hash like bcrypt, scrypt or Argon2 with a salt. MD5 is not offered because browsers do not provide it and it should not be used for security.
Example
The SHA-1 and SHA-256 digests of the word "hello" (hex). These are standard test values you can compare with any other tool.
Input
hello
Output
SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
