SECURITY ยท INTEGRITY
SRI Hash Generator.
Generate a Subresource Integrity token from the exact bytes of a script or stylesheet. Use it to detect unexpected changes when a browser loads that resource.
Resource input
Choose how to provide the content to hash.
Your output
Copy the token or ready-to-use HTML.
Ready when you are
Your generated integrity token will appear here. No content is sent to our servers.
๐ Browser-local by default
File and text content never leave your device. URL mode makes a request directly from your browser to the chosen host, without sending credentials.
๐ Remote URL limitations
Only HTTPS URLs are accepted. CORS must allow the browser to read the resource, and HTTP redirects are blocked. For other URLs, download the file and hash it locally.
๐ Pin a specific version
Use versioned, immutable resource URLs whenever possible. Browser-specific or changing assets may not match the hash at a later time.
More on Subresource Integrity (MDN)