Subresource Integrity (SRI) Hash Generator

Generate cryptographic integrity hashes and ready-to-use HTML tags for external JavaScript and CSS assets.

Asset Configuration

SRI Results

--
Ready to generate...
<script src="..." integrity="..." crossorigin="anonymous"></script>

About Subresource Integrity

  • Security Guarantee: SRI enables browsers to verify that files fetched from external Content Delivery Networks (CDNs) are delivered without unexpected manipulation or malicious injection.
  • Cross-Origin Usage: The `crossorigin="anonymous"` attribute is required when fetching resources from a different origin to ensure security headers match.
  • Algorithm Standards: SHA-384 provides a robust balance of security and cryptographic length for modern production environments.

Subresource Integrity (SRI) Hash Generator is a browser-based utility for security-focused developer work. It helps you transform, inspect, generate, or evaluate the relevant input without installing a separate desktop tool.

How to use this tool

Enter or paste the required input, select the available options, then review the generated result before copying or applying it in your project. Check the output in its real target environment when accuracy matters.