Generators

SRI Hash Generator

Generate Subresource Integrity (SRI) hashes for scripts and stylesheets. Supports SHA-256, SHA-384, and SHA-512.

About This Tool

Generate Subresource Integrity (SRI) hashes to verify that files loaded from CDNs or third-party servers haven’t been tampered with.

How to Use

  1. Paste the content of a JavaScript or CSS file
  2. Select the hash algorithm (SHA-256, SHA-384, or SHA-512)
  3. Click Generate to compute the SRI hash
  4. Copy the generated integrity attribute for your script or link tag

FAQ

Which hash algorithm should I use?

SHA-384 is recommended as a good balance between security and compatibility.