SRI Hash Generator
// Generate Subresource Integrity hashes for scripts and stylesheets
#About SRI Hash Generator
Free online SRI hash generator. Create Subresource Integrity hashes (SHA-256, SHA-384, SHA-512) for script and stylesheet tags to protect against CDN tampering. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.
#FAQ
What is Subresource Integrity (SRI)? ▾
SRI is a security feature that allows browsers to verify that files fetched from CDNs or third-party servers have not been tampered with. You include a cryptographic hash in the integrity attribute of script or link tags, and the browser checks the downloaded file against that hash before executing it.
Which SRI hash algorithm should I use? ▾
SHA-384 is the most commonly used and provides a good balance of security and compatibility. SHA-256 is also widely supported. SHA-512 offers the highest security but is less commonly seen. You can include multiple hashes for fallback compatibility.
</> Embed this tool ▾
Copy this code to embed the tool on your website. Adjust the height to fit your layout.
<iframe src="https://www.browserutils.dev/embed/sri-hash-generator" width="100%" height="500" frameborder="0" title="SRI Hash Generator"></iframe>