SRI Hash Generator
Generate a Subresource Integrity hash for scripts and stylesheets.
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-..."Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Bcrypt Hash Generator
Encoders & Crypto
Generate and verify bcrypt password hashes with adjustable cost.
Checksum Comparator
Encoders & Crypto
Hash text or a file and compare against an expected checksum.
File Hash Calculator
Encoders & Crypto
Compute SHA-1/256/384/512 digests of a local file.
Hash Generator
Encoders & Crypto
Generate MD5, SHA-1/256/384/512 hashes of text.
HMAC Generator
Encoders & Crypto
Sign a message with HMAC using a secret key.
JWT Encoder
Encoders & Crypto
Build and sign a JWT with HS256/384/512 from a header, payload, and secret.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser