← All tools

SRI Hash Generator

Generate SHA-256, SHA-384 or SHA-512 Subresource Integrity from exact local bytes, with escaped script or stylesheet markup.

sri-hash-generatorLOCAL WORKSPACE

Enabling local controls…

Inputs and settings

Local processing without uploads or storage. Text limit: 32 KiB; file limit: 2 MiB. Cancellation discards results; the underlying Web Crypto operation cannot be aborted.

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.

MDN Subresource Integrity ↗Source tool controls ↗

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.