Browser-only tool
SRI hash calculator
Paste asset content to generate `integrity` attributes for `<script>` or `<link>` tags. Useful for static integrity hardening workflows.
Browser-only tool
Paste asset content to generate `integrity` attributes for `<script>` or `<link>` tags. Useful for static integrity hardening workflows.
Warning: SRI verifies bytes only. It does not prove script trustworthiness and fails whenever file bytes change.
Content is hashed locally in your browser and is not uploaded.
SRI lets browsers verify that fetched assets match expected hashes before executing them.
SHA-384 is a common default for SRI, while SHA-512 offers a longer hash.
Any byte change invalidates the hash, including build changes, CDN transforms, or file updates.
No. SRI and CSP are complementary controls.
Yes. The page computes hashes in the browser.