<script src="https://cdn.example.com/assets/app.min.js" integrity="sha384-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyMxC8lvZVFvnrDW25S5cK6Q" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.example.com/assets/app.min.js" integrity="sha384-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyMxC8lvZVFvnrDW25S5cK6Q" crossorigin="anonymous">
Pin this tool to your browser side panel
Access this utility anytime with Alt+M without switching tabs. 100% offline & free.
How to Generate SRI Hashes
- 1Paste your JavaScript code or CSS stylesheet into the input box.
- 2Enter the public CDN URL where the asset will be hosted.
- 3Copy the generated <script> or <link> tag with the integrity and crossorigin attributes.
Supply Chain Attack Mitigation
Browsers verify the downloaded asset against the declared hash and block execution if a compromised CDN modifies the file content.
Frequently Asked Questions
Enjoying Subresource Integrity (SRI) Hash Generator?Help your engineering peers discover private, ad-free tools!
MiniToolDesk is 100% free and client-side. Your support keeps the web ad-free.
Related Developer Utilities
UUID / GUID v4 Generator
Generate cryptographically secure random UUID v4 identifiers in bulk
Crypto Hash Calculator
Compute SHA-256, SHA-512, SHA-1, and MD5 hashes purely client-side via Web Crypto
JWT Builder & Signer
Build, mock, and sign JSON Web Tokens with HMAC-SHA256 in browser memory
HTTP Security Headers Analyzer & Hardening Fixer
Audit raw HTTP response headers against OWASP best practices with A+ to F grading and Nginx fixes.