About this SHA-384 generator
SHA-384 is a SHA-2 hash that produces 384 bits, written as 96 hexadecimal characters or 64 Base64 characters. It is the SHA-512 algorithm with its own starting values and a shortened result. Web developers meet it most often in Subresource Integrity attributes, where a script tag carries a sha384 value in Base64, and in TLS certificates and government security profiles. Pick Base64 as the output format to get that exact form, then paste a published value into Expected hash to check it. Text and files are hashed in your browser.
How to generate a SHA-384 hash
- Add text or a file. Type or paste text, press an example, or press Hash a file to hash a file’s exact bytes.
- Pick the format. Lowercase hex is the usual format; choose uppercase hex or Base64 if your system expects it. Paste an expected hash to compare.
- Press Generate SHA-384 hash. The hash appears below, with a match or no-match message when you pasted an expected hash.
- Copy the hash. Press Copy hash, or copy it in another format from the list.
Frequently asked questions
How do I make an integrity value for a script tag?
Choose Hash a file, select the script or stylesheet, and set Output format to Base64. Prefix the result with sha384- to get the value for the integrity attribute.
How long is a SHA-384 hash?
Always 384 bits: 96 hexadecimal characters, or 64 characters in Base64, whatever the input size.
What is the SHA-384 hash of an empty input?
It is 38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b. Leave the input empty and press the button to see it.
Is SHA-384 the same as a shortened SHA-512?
Not exactly. It uses the same steps as SHA-512 but starts from different initial values, so its output is not simply the first 96 characters of the SHA-512 hash.
Why does my SHA-384 differ from another tool?
Every byte counts. Text is hashed as UTF-8 with LF line breaks, including spaces and a final line break, so a trailing space or a Windows line break elsewhere changes the hash.