Free SRI Hash Generator (Subresource Integrity)

Generate a Subresource Integrity hash for any script or stylesheet · paste the content or upload the file · so a compromised CDN can't tamper with it.

Frequently asked

What is Subresource Integrity?

SRI is a browser feature: you add an integrity="sha384-…" attribute to a <script> or <link> tag, and the browser refuses to run the resource if its hash doesn't match · protecting you if the CDN or third-party host is compromised.

Which hash algorithm should I use?

The generator produces sha256, sha384, and sha512 attributes. sha384 is the common recommendation. Copy the full integrity attribute and add crossorigin="anonymous" to the tag.

Related tools

  • AES Encrypt / Decrypt · Encrypt text with a password using AES-256-GCM · and decrypt it back. Keys are derived with PBKDF2 and everything stays in your browser.
  • .gitignore Generator · Pick your stack and get a ready .gitignore · with the .env and secret-file rules that keep credentials out of your repository.
  • Data URI Generator · Convert a file or image into a Base64 data URI · ready to inline into HTML, CSS, or JSON. The file is read locally and never uploaded.

Run a full security scan →