Subresource Integrity (SRI) Hash Generator

100% Client-Side Private

Generate W3C Subresource Integrity (SRI) SHA-256, SHA-384, and SHA-512 hashes for script and link tags.

Computed SRI Hashes (RFC 9530 / W3C SRI)
SHA-384 (Recommended by W3C)
sha384-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyMxC8lvZVFvnrDW25S5cK6Q
Recommended
SHA-512 (Maximum Collision Resistance)
sha512-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyMxC8lvZVFvnrDW25S5cK6QT9+/IX6i6lJTJUb0t/ZDIw==
Strong
SHA-256 (Baseline)
sha256-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyM=
Standard
HTML Script Tag (<script integrity="...">)
<script src="https://cdn.example.com/assets/app.min.js" integrity="sha384-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyMxC8lvZVFvnrDW25S5cK6Q" crossorigin="anonymous"></script>
HTML Link Tag (<link rel="stylesheet" integrity="...">)
<link rel="stylesheet" href="https://cdn.example.com/assets/app.min.js" integrity="sha384-MQvJb2VRb56w1tuUuXCukE/fvyF+oupSUyVG9Lf2QyMxC8lvZVFvnrDW25S5cK6Q" crossorigin="anonymous">

Pin this tool to your browser side panel

Access this utility anytime with Alt+M without switching tabs. 100% offline & free.

Get Extension

How to Generate SRI Hashes

  1. 1Paste your JavaScript code or CSS stylesheet into the input box.
  2. 2Enter the public CDN URL where the asset will be hosted.
  3. 3Copy the generated <script> or <link> tag with the integrity and crossorigin attributes.

Supply Chain Attack Mitigation

Browsers verify the downloaded asset against the declared hash and block execution if a compromised CDN modifies the file content.

Frequently Asked Questions

Enjoying Subresource Integrity (SRI) Hash Generator?Help your engineering peers discover private, ad-free tools!

MiniToolDesk is 100% free and client-side. Your support keeps the web ad-free.

Related Developer Utilities