Security Tools

Subresource Integrity (SRI) Hash Generator

Paste the exact content of a script or stylesheet to generate SHA-256, SHA-384, and SHA-512 Subresource Integrity hashes.

Subresource Integrity (SRI) lets a browser verify a fetched script or stylesheet hasn't been tampered with — paste the exact file contents (byte-for-byte) that will be served.

How to use this tool

  1. 1Paste the file's exact content.
  2. 2Click generate.
  3. 3Copy the integrity attribute you need.

Frequently asked questions

What is Subresource Integrity?+

SRI lets a browser verify that a fetched script or stylesheet matches an expected hash, protecting against a compromised or tampered CDN.