Ffile2fix
Sign in Get started
← All tools

Subresource Integrity (SRI) Hash Generator

Generate SHA-256, SHA-384, and SHA-512 SRI hashes from exact asset bytes; it does not host the asset or configure your site.

Free to use

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.