One letter, a whole new hash: SHA-256 and HMAC worked through
The quickest way to understand a hash is to watch one. Type abc into the box above. Its SHA-256 is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. That is the answer printed in the official SHA-2 standard, so it is also a good way to check that any hashing tool, this one included, is doing the right thing. The same three letters always give exactly this value, on every computer, in every language.
Now change the last letter and type abd. The hash becomes a52d159f262b2c6ddb724a61840befc36eb30c88877a4030b65cbe86298449c9. Nothing in it resembles the first one. Change only the case of the first letter instead, Abc, and you get 06d90109c8cce34ec0c776950465421e176f08b831a938b3c6e76cb7bee8790b, different again. This is called the avalanche effect: flipping one bit of input flips about half the bits of output. It is why a hash works as a fingerprint. Two files that differ by one byte cannot share a SHA-256 by accident, and there is no way to nudge the input towards a hash you want.
The same box shows the older algorithms too. MD5 of abc is 900150983cd24fb0d6963f7d28e17f72 and SHA-1 is a9993e364706816aba3e25717850c26c9cd0d89d. They are shorter, and both are broken in the sense that matters: researchers can build two different inputs with the same MD5 or the same SHA-1 on purpose. They are fine for spotting a corrupted download and wrong for anything an attacker might want to forge. That is why the browser’s Web Crypto refuses to do MD5 at all, and why this page labels it.
A plain hash proves that data has not changed, but not who sent it, because anyone can compute it. HMAC fixes that by folding a secret key into the calculation. The standard test case from RFC 4231 uses the key Jefe and the message "what do ya want for nothing?". Turn on HMAC (keyed hash), type Jefe as the Key and that sentence as the Text, and HMAC-SHA256 comes out as 5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843. Change the key to Jeff and it becomes b756ec8c1f600eb277ee3f04163f581bd1c7e361f34a0727ad79c844ffc4bb83. A server receiving a webhook does exactly this: it recomputes the HMAC with its copy of the key and accepts the message only if the two values match.
Output format is a spelling choice, not a different hash. The SHA-256 of abc in Base64 is ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0=, the same 32 bytes as the hex above, written in 44 characters instead of 64. Pick whichever the other side expects; GitHub and Stripe signatures use hex, Subresource Integrity uses Base64.
Two limits are worth being plain about. A hash is not encryption, so it hides nothing that can be guessed: the SHA-256 of a common password is in every lookup table online. And a fast hash is the wrong way to store passwords, because fast is exactly what an attacker wants. For passwords use a deliberately slow function such as Argon2 or bcrypt. For checking data, signing messages and building fingerprints, SHA-256 and HMAC-SHA256 are what you want, and all of it is computed here on your device.