Hash Generators100% Client-Side

SHA-2 Hash Generator

Choose a SHA-2 variant by its digest size and calculate it for the text you provide. The selector runs the corresponding SHA-224, SHA-256, SHA-384, or SHA-512 variant. It keeps the same text in view while you change sizes, which makes it practical to compare width and output for one message. Use the exact algorithm named in a reference when checking an expected digest.

Configuration Options
Input
3 chars•1 lines
Output

How to Use the SHA-2 Hash Generator for UTF-8 Text

  1. 1Paste the exact message into the SHA-2 input. Include any punctuation, spaces, or trailing newline that belongs to the source.
  2. 2Choose the digest size named by the reference, keeping the message unchanged while you compare variants.
  3. 3Copy the entire hexadecimal result. Keep its leading zeroes, and compare it against a value generated from the same UTF-8 input.
  4. 4Record the algorithm and exact input with the digest. If a test fails, verify the input encoding and whitespace before changing the reference.

Input & Output Examples

Choose 224 bits to run SHA-224 and compare a 56-digit value.

Input Sample
abc
Expected Output
23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7

Choose 512 bits to run SHA-512 for the same message with an output of 128 digits.

Input Sample
abc
Expected Output
ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f

Practical Developer Workflows

  • Compare the SHA-224 and SHA-512 outputs for one known message.
  • Reproduce a reference value when a specification names a particular member of SHA-2.
  • Check whether an integration preserves the full hex width for more than one digest size.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Each choice runs the corresponding algorithm. SHA-224, for instance, is not just a shorter display of the SHA-256 result. Select by algorithm name and compare the complete value instead of taking a prefix.

Explore Other Tools

12 suggested tools

View all tools