SRI Hash Generator

Paste JavaScript or CSS file contents and generate Subresource Integrity hashes plus script or link tags.

Need help with the calculation?
Ask AI about this article

Use this when you pin a CDN script or stylesheet and need the integrity attribute for the exact file bytes you are serving. The tool computes SHA-256, SHA-384 and SHA-512 values locally in the browser.

What to paste

Paste the final resource contents, not the URL response from a different build. Choose script or stylesheet to get a matching tag snippet.

Limit

The page does not fetch the resource URL. That is intentional so private files and unreleased bundles stay on your machine.