SRI Hash Generator

Create and compare Subresource Integrity values for scripts and stylesheets.

A selected file takes priority. Files are read locally.

Use the file option to preserve the exact original bytes and line endings.

Integrity result

Choose a resource to generate its token.

Using the attribute

Set the integrity attribute on the corresponding script or stylesheet. For a cross-origin resource, the serving origin must permit the request with CORS. Use the same bytes that users will receive.

Subresource Integrity specification