SRI Hash Generator
Generate SHA-256, SHA-384 or SHA-512 Subresource Integrity from exact local bytes, with escaped script or stylesheet markup.
Enabling local controls…
Results
Review the inputs and run. Editing clears previous results.
Processing model and limits
Hash exact UTF-8 text (32 KiB) or file bytes (2 MiB); no newline normalization, fetch or execution. Cross-origin SRI requires CORS support from the resource server. An integrity match does not establish source trust. URL metadata only supplies markup and is never fetched.
How to use this tool
Choose an algorithm and local text or file, confirm the URL used in the markup, then generate, copy or download the complete output.
When not to use it
Hash exact UTF-8 text (32 KiB) or file bytes (2 MiB); no newline normalization, fetch or execution. Cross-origin SRI requires CORS support from the resource server. An integrity match does not establish source trust. URL metadata only supplies markup and is never fetched.