SRI Hash Generator
Subresource Integrity hashes.
Runs entirely in your browser — nothing you enter is uploaded, logged, or tracked.
Subresource Integrity lets a browser verify that a script or stylesheet it loads has not been modified — you add an integrity="sha384-…" attribute and the browser refuses the file if the hash does not match. Drop a file (or paste its contents) to generate the SRI hash and the ready-to-paste tag. The file is hashed locally and never uploaded.
Frequently asked questions
What is Subresource Integrity?
An integrity attribute on a <script> or <link> tag containing a base64 hash of the expected file. If the served file’s hash differs (e.g. a CDN was compromised), the browser blocks it.
Which hash should I use?
sha384 is the common default; sha256 and sha512 are also valid. The tool outputs all three plus the full tag.
Is my file uploaded?
No — it is hashed in your browser with the Web Crypto API and never sent anywhere.