ToolJovia
Developer

SRI Hash Generator

Generate a Subresource Integrity SHA-2 token for exact pasted UTF-8 JavaScript or CSS contents.

✓ Browser-local processing

Loading tool…

How to use SRI Hash Generator

Build an integrity attribute token from resource text you already have. The output combines the standard algorithm label and Base64 digest; no resource URL is fetched.

  1. Paste exact UTF-8 resource contents and select SHA-256, SHA-384, or SHA-512.
  2. Select Run tool to generate an integrity attribute token.
  3. Review the result, then copy it or download the generated file.

Good to know

  • Text resources only, up to 200,000 characters. Pasting can alter encoding or line endings; the token must match the actual resource bytes.
  • The token alone does not configure an HTML tag, CORS, or trust in the original source. Verify deployment behavior with the exact served file.

Common questions

Can I paste the resource URL?

No. A URL string would be hashed as text. Paste the file contents; this tool never downloads a resource.

Keep going with related tools

All developer →