ToolBuddy
In Browser

SRI Generator

Build a Subresource Integrity value for a script or stylesheet. SHA-384 is the default. Paste the file text or choose a file, then copy the sha384 value into an integrity attribute. The digest is computed with Web Crypto in this tab. Nothing is uploaded, and the page does not fetch a URL.

Runs in your browser. Nothing is uploaded.

Algorithm

Standard Base64 with the algorithm prefix. Browsers check it when the tag sets crossorigin.

Integrity

-

About this tool

Build the integrity value browsers check before they run a script or apply a stylesheet loaded from another origin. SHA-384 is the default. SHA-256 and SHA-512 are available too. The result is the algorithm prefix plus standard Base64, the form an integrity attribute expects.

How to use: paste the file text or choose the file you will host, pick the algorithm, and copy the value. Put it on the script or link tag next to crossorigin. This page does not request the URL. It hashes the bytes you give it.

Example: a short console.log file becomes sha384- followed by a Base64 digest. The same bytes and algorithm always produce the same value, so you can compare it with a checksum you already trust.

The digest is computed with Web Crypto in this tab. Source text and files stay on the device. Related: the hash generator when you need hex or MD5 instead of an integrity attribute. After the page loads, hashing works offline.

FAQ

Related Crypto tools