SRI Hash Generator

Generate a Subresource Integrity hash for scripts and stylesheets.

Works Offline
Privacy First
No Login
No API

Content (JS/CSS/text)

Drop a file here

Drop a .js or .css file to hash its content

Integrity output

About the SRI Hash Generator

Paste JavaScript, CSS, or any text content (or drop a file) to generate a Subresource Integrity hash using SHA-256, SHA-384, or SHA-512. Get the integrity attribute plus a ready-to-use script or link tag snippet.

Examples

Hash a script

console.log('hi');

Output

integrity="sha384-..."

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser