SRI Hash Generator
Generate SHA-256, SHA-384, and SHA-512 Subresource Integrity values in the browser for text or files, and build ready-to-use integrity HTML snippets.
SRI Hash Generator
The SRI Hash Generator creates SHA-256, SHA-384, and SHA-512 Subresource Integrity values for text or files locally in the browser and can also build reusable integrity HTML snippets.
How do you use it?
- Choose text mode or file mode.
- Enter the resource contents or upload the static asset file.
- Generate the hashes and copy the SRI value you need.
- If you have a resource URL, copy the generated HTML integrity snippet directly.
Features
- Supports text and file input
- Outputs SHA-256, SHA-384, and SHA-512 SRI values together
- Builds HTML snippets with integrity and crossorigin
Why use this tool?
- Useful for CDN scripts, stylesheets, and frontend asset integrity checks
- Faster than manually converting hashes from command-line tooling and easier to paste into templates
- Handy for verifying third-party or self-hosted asset integrity before release