file2fix
Buy Points Login / Sign Up
← All tools

Subresource Integrity (SRI) Hash Generator

Free

Script / Stylesheet Source

Result

Provide a URL, pasted content, or an uploaded file to generate its SRI hash.

How to Use

Subresource Integrity (SRI) lets a browser verify that a script or stylesheet loaded from a third-party host (a CDN, for example) hasn't been tampered with. You give the browser a cryptographic hash of the exact file you expect via the integrity attribute; if the CDN ever serves different bytes — because it was compromised, misconfigured, or a "silent update" changed the file underneath you — the browser refuses to execute or apply it, instead of silently running modified/malicious code in your users' browsers. Point this tool at a URL (fetched server-side), paste raw file content, or upload a file directly; it hashes the exact bytes with SHA-384 (plus SHA-256/SHA-512 for reference), base64-encodes the digest, and gives you ready-to-paste <script>/<link> snippets with integrity and crossorigin="anonymous" already filled in.