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.

01

Resource input

Choose how to provide the content to hash.

The browser fetches this URL only when you select Generate. The server must permit CORS; redirects are blocked.

Hash algorithm
HTML resource type

Used only when building an HTML snippet. The integrity hash itself is identical for the same bytes.

02

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.