FormatterHQ

SHA-384 Hash Generator

Compute SHA-384 digests of text or files — 96 hex characters from the SHA-2 family, commonly used for Subresource Integrity and high-assurance TLS.

Loading tool…
Ready.

How to use the SHA-384 Hash Generator

  1. Type or paste text into the input box, or switch the source to File and choose a file — it is hashed locally, never uploaded.
  2. Read the main hash at the top — the table below shows the same input under every other common algorithm. Tick Uppercase hex if you need capitals.
  3. To verify a value, paste it into Compare with an expected hash — the tool reports a match, or which algorithm it matches instead. Copy any row with its Copy button.

SHA-384 hash generator

SHA-384 is a SHA-2 hash that runs the SHA-512 algorithm — 80 rounds on 64-bit words — with its own initial values, and then truncates the result to 384 bits. This SHA-384 hash generator computes that digest for any text or file and shows it as 96 hex characters.

Example

Input:

The quick brown fox jumps over the lazy dog

SHA-384 hash:

ca737f1014a48f4c0b6dd43cb177b0afd9e5169367544c494011e3317dbf9a509cb1e5dc1e85a941bbee3d7f2afbc9b1

SHA-384 at a glance

PropertyValue
Digest size384 bits (48 bytes, 96 hex characters, 64 Base64 characters)
Internal state512 bits; 80 rounds on 64-bit words
Collision resistanceAbout 192 bits
Length extensionResistant, because the output is truncated
StandardFIPS 180-4

Subresource Integrity (SRI)

The most common place web developers meet SHA-384 is the integrity attribute, which lets a browser check that a script or stylesheet from a CDN has not been altered:

<script src="https://cdn.example.com/lib.min.js"
        integrity="sha384-…Base64 digest…"
        crossorigin="anonymous"></script>

SRI expects the digest in Base64, not hex. Upload the exact file here to get the hex digest, then convert it with Hex to Base64 and prefix it with sha384-. On the command line, openssl dgst -sha384 -binary lib.min.js | openssl base64 -A produces the Base64 value directly. If the file changes by even one byte, the browser refuses to run it.

When the script is served from another origin, the server must also send CORS headers — hence crossorigin="anonymous" — or the browser cannot check the integrity and will block the file.

When an SRI check fails

A wrong integrity value makes the browser block the file, and the console shows a message that it failed to find a valid digest, along with the SHA-384 value it actually computed. Typical causes:

  • The CDN served a different build. Pin an exact version in the URL rather than a "latest" tag.
  • You hashed a local copy that differs from the served file, for example by line endings. Hash the bytes the CDN delivers: curl -s URL | openssl dgst -sha384 -binary | openssl base64 -A.
  • Hex instead of Base64. A 96-character hex digest is not valid in the attribute; it must be the 64-character Base64 form.

An integrity attribute may also list several digests separated by spaces, such as a sha384-… and a sha512-… value; the browser uses the strongest algorithm it supports.

Other uses

  • TLS 1.3 cipher suites such as TLS_AES_256_GCM_SHA384.
  • ECDSA signatures on the P-384 curve, which pair naturally with a 384-bit hash.
  • Security profiles such as the NSA’s Commercial National Security Algorithm (CNSA) suite, which calls for SHA-384 for classified systems.

Performance

Because it is built on SHA-512, SHA-384 is often faster than SHA-256 on 64-bit processors without dedicated SHA-256 instructions, while producing a shorter digest than SHA-512. It is therefore a good choice when you want a large security margin and length-extension resistance.

As with every fast hash, do not use SHA-384 to store passwords; use bcrypt or Argon2id. For the full SHA-2 family, see the SHA-2 Hash Generator. Hashing runs in your browser.

Frequently asked questions

How do I generate an SRI hash with SHA-384?
Hash the exact file with SHA-384, convert the digest from hex to Base64, and write it as sha384-<Base64> in the integrity attribute.
Is SHA-384 more secure than SHA-256?
It has a larger security margin (about 192-bit collision resistance versus 128) and resists length extension. Both are considered secure today.
Is SHA-384 a truncated SHA-512?
Yes, but with different initial values, so it is not simply the first 384 bits of SHA-512.
How long is a SHA-384 hash?
48 bytes: 96 hex characters or 64 Base64 characters with no padding.

Last updated September 26, 2026

Guides

Related tools

SHA-512/224 Hash Generator Generate the SHA-512/224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA-512/256 Hash Generator Generate the SHA-512/256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA-512 Hash Generator Generate the SHA-512 hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. SHAKE-128 Hash Generator Generate SHAKE-128 extendable-output (XOF) hashes of any length from text or files. SHAKE-256 Hash Generator Generate SHAKE-256 extendable-output (XOF) hashes of any length from text or files. SRI Hash Generator Generate Subresource Integrity (SRI) sha384 hashes and ready-to-paste <script> or <link> tags with integrity and crossorigin attributes. SSH Key Generator Generate OpenSSH key pairs (Ed25519, RSA, ECDSA) in id_ed25519 / id_rsa format with fingerprint — created locally, like ssh-keygen. Whirlpool Hash Generator Generate the Whirlpool hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. WordPress Password Hash Checker Check if a password matches a WordPress user_pass hash ($wp$ bcrypt, $P$ phpass or legacy MD5). WordPress Password Hash Generator Create a WordPress password hash for the wp_users table: bcrypt for WordPress 6.8+ or phpass for older versions. SSL Certificate Decoder (X.509) Decode PEM or DER X.509 SSL/TLS certificates: subject, issuer, SANs, validity, key type, extensions and SHA-256 fingerprints. xxHash Generator Generate xxHash XXH32, XXH64, XXH3 and XXH128 hashes with an optional seed.