SRI Hash Generator

Generate Subresource Integrity (SRI) hashes for JS and CSS.

About SRI Hash Generator

Subresource Integrity (SRI) lets browsers verify that a script or stylesheet has not been modified. Paste the exact file contents (or choose a file) and generate an integrity value you can add to your <script> or <link> tag.

How to use

  1. Select sha256, sha384, or sha512.
  2. Paste the resource contents or choose a file.
  3. Copy the generated integrity attribute.

Privacy

All hashing happens locally in your browser.

For browser-side security headers, pair this with CSP Header Generator and HTTP Header Checker.

Related Tools

More tools you may find useful.

Recent Blog Posts