SRI Hash Generator
Generate SHA-256, SHA-384 and SHA-512 Subresource Integrity values from exact file bytes or UTF-8 text.
Upload the exact deployed file for byte-accurate hashes. Any whitespace, encoding or line-ending change produces a different integrity value.
Enter or paste your input
The example is ready to edit. Your input stays in this browser.
Choose your settings
Change the direction or options only if you need to.
Processed locally in your browser. Avoid sharing the result if it contains private data.
How to use SRI Hash Generator
- Paste your input or load the included example.
- Check the input format described above the editor.
- Select Generate SRI, then inspect the result or any validation message.
- Copy or download the output for your workflow.
Format and limitations
Upload the exact deployed file for byte-accurate hashes. Any whitespace, encoding or line-ending change produces a different integrity value.
Example input
console.log("Hello");Practical guides
- Subresource Integrity Guide: Generate SRI for Scripts and CSS — Add integrity hashes to external scripts and stylesheets and understand exact bytes, CORS, and version pinning.
- How to Fix an SRI Hash Mismatch in the Browser — Diagnose integrity failures caused by changed files, line endings, CDN transformations, redirects, and CORS.
Does this tool upload my input?
The transformation runs in your browser. This tool does not send input to a conversion API. Browser memory limits still apply; split very large inputs into manageable batches.