GGfor Tools

SHA Hash Tool

Calculate UTF-8 text digests with SHA-256, SHA-384, SHA-512 or legacy SHA-1. Choose hexadecimal or Base64 output. Hashing is not encryption.

Calculate a SHA text digest

UTF-8 text only; limit 1,048,576 UTF-16 code units. Spaces are included. Click Generate hash to calculate empty text.

Uppercase applies to hexadecimal only and is disabled for Base64. SHA-1 is provided for legacy comparisons, not new security designs.

Waiting for input...

SHA hash guide: algorithms, output formats and reproducible results

Generate text digests for development examples and comparisons with known values. This tool hashes UTF-8 bytes using Web Crypto. It supports SHA-1 and the SHA-2 algorithms SHA-256, SHA-384 and SHA-512; it does not generate SHA-3 or hash uploaded files.

Which SHA algorithm should I choose?

SHA-256 is the default. Match the algorithm required by your protocol or reference digest. SHA-1 has known collision weaknesses and is retained for legacy comparisons only. A plain SHA digest is not encryption, HMAC, a digital signature or a password-storage scheme, and a matching digest alone does not authenticate its source.

Hexadecimal and Base64 represent the same digest bytes

Hex uses two characters per byte. SHA-1, SHA-256, SHA-384 and SHA-512 produce 40, 64, 96 and 128 hex characters respectively. Standard padded Base64 produces 28, 44, 64 and 88 characters respectively. Base64 encodes the raw digest bytes, not the hex text. Hex letter case changes presentation only; Base64 is case-sensitive.

How to calculate, copy and clear a hash

Choose an algorithm and output format, paste text, then click Generate hash or pause with Auto hash enabled. Input and option changes invalidate the old result. Only the latest calculation may update the page. Clear discards pending results and empties the fields, but does not clear your system clipboard. To hash empty text, click Generate hash with a blank input.

Known SHA-256 examples

These examples use lowercase hex and UTF-8 without a BOM or trailing newline. They are reference values, not a guarantee that different input bytes will match.

  • Empty text: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  • abc: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Why is my SHA result different?

Check the algorithm, output format and exact input bytes. Spaces, tabs, a final newline, a leading BOM and Unicode composition can change the digest. This tool does not trim input or normalize Unicode and rejects unpaired surrogates. Browser textareas may normalize line endings, so pasted file contents are not a byte-exact file checksum workflow.

Browser requirements, input limits and privacy

Web Crypto requires a secure context, normally HTTPS; localhost may qualify for development. The input limit is 1,048,576 UTF-16 code units, not bytes. Conversion and hashing run in this page without submitting text to a server or saving it in browser storage. Shared site scripts still load, so this is not an offline or isolated environment guarantee. Do not use this tool to store passwords.