Why it matters
Subresource Integrity makes the browser refuse a CDN file whose bytes have changed, which protects you if the CDN is compromised. The integrity value must be the base64 hash of the exact bytes the server sends.
This generator hashes the file on your device and writes the finished tag, so you don't have to pipe openssl through base64 by hand.
How to use it
- Open a file or paste the input the tool asks for.
- Press Generate hash. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Why does the browser block my file even with the right hash?
Usually the server changes the bytes (minifies, adds a BOM, re-encodes line endings) or the CDN doesn't send CORS headers for a cross-origin file.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.