SRI Hash Generator
- Fetching…
- The file could not be fetched. The server must allow cross-origin requests (CORS). Download the file and use the file tab instead.
- integrity attribute
- HTML tag
- SHA-256, SHA-384 and SHA-512 together
- Copy
- Provide a file, some content or a URL to get its hash.
- Size
- Script
- Stylesheet
- Enter the full URL of the file, for example https://cdn.example.com/lib.min.js
- The crossorigin="anonymous" attribute is required, and the server must send CORS headers, or the browser will block the file.
- If the file changes by even one byte, the browser refuses to load it. Pin an exact version in the URL.
- The file could not be read.
About this tool
Subresource Integrity (SRI) lets a browser check that a script or stylesheet loaded from a CDN has not been changed. Give this tool the file, get the integrity value and a ready-to-paste HTML tag. Pasted content and chosen files are hashed in your browser; the URL option makes your browser download that file directly from its server.
Frequently asked questions
What is SRI Hash Generator?
Create the integrity attribute and HTML tag for scripts and stylesheets loaded from a CDN. It is one of the Security & Crypto tools on MyCodeTips.
How do I use SRI Hash Generator?
Open the tool, enter or paste your input, and the result appears right away. Use the Copy button to copy it.
Is SRI Hash Generator free to use?
Yes. It is free to use and does not need an account.
Is my data safe with SRI Hash Generator?
The result is produced on our servers. We do not sell your data; see our privacy policy for details.
Can I share my result?
Yes. Use the share buttons below the tool to post a link or copy a link to the tool page.
Which tools are related to SRI Hash Generator?
CSP Builder & Evaluator, Hash Generator (MD5, SHA-256), HTTP Security Headers Checker.
- Send output to…
- Nothing to send yet.
- Received output from {tool}
- Undo
- Dismiss