How to use
Drop a JavaScript or CSS file into the drop area on the left. You can also paste text and choose “Make hash from text”.
Choose the hash algorithm (sha384 by default). sha256 and sha512 values are computed at the same time.
Enter the URL or path where the file is served in the src field; the tag updates to use it.
Copy the integrity value or the tag and add them to your script or link element.
To check an existing integrity attribute, paste it into the check field to see whether it matches the file.
What it does
sha256, sha384 and sha512
The values of all three algorithms are computed in one read. The default is sha384.
Tags ready to paste
script and link tags are built with integrity and crossorigin="anonymous". You can change the src; quotes and angle brackets are escaped.
Check an existing integrity
Reads several hashes separated by spaces. When there are several, only the strongest algorithm decides, as W3C SRI specifies.
Shows the line-ending style
Pasted text is hashed as UTF-8 bytes, and the tool shows whether it uses LF or CRLF, because a different line ending gives a different hash.
Use cases
- Add integrity to a <script> that loads jQuery or another library from a CDN
- Regenerate the integrity value of a <link> after changing your own stylesheet
- Check that a downloaded file matches the value published by its provider
- Confirm that an external script is unchanged before you load it on your site
Supported formats
Input
Output
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| Make integrity values from files and pasted text | Supported | — |
| script and link tags with crossorigin | Supported | — |
| Check against an existing integrity (several hashes) | Supported | — |
| Fetch a served file from a URL and hash it | Not supported | Save the file and add it here |
| Read integrity attributes from a live page | Not supported | Only the values you paste are checked |
| Algorithms that SRI does not define (such as md5 or sha1) | Not supported | — |
Limits & notes
- The tool never fetches a URL. Save the same file that is served and build the value from it.
- Files up to 100 MB each; pasted text up to 10 MB.
- If a CDN or server compresses the file or changes its line endings, the hash changes. Rebuild it from the file as served.
- For a file from another origin without the crossorigin attribute, the browser blocks the request when integrity is set.
Privacy & safety
Files and pasted text are processed only in your browser. Nothing is sent to or stored on a server.
FAQ
Which should I use: sha256, sha384 or sha512?
Can I generate the hash of a CDN file directly?
Does changing line endings change the hash?
Is crossorigin="anonymous" required?
Why does a check say mismatch?
Related tools
File Hash — Checksum Calculator & Verifier
Drop a file to get its SHA-256 (and more); paste the published hash to see match or mismatch instantly. Even multi-gigabyte ISOs are read in chunks on your own device — nothing is uploaded.
CSP Studio
Paste a Content-Security-Policy header or meta tag to see unsafe-inline, unsafe-eval, wildcards and missing object-src or base-uri, ranked high, medium or low, with a suggested policy. Generation and hash calculation are included.
Crypto Studio — Hash, HMAC, Encryption & Keys
Type text and see 12 hashes — SHA-256, SHA-3, BLAKE3 and more — at once. Verify webhook HMAC signatures, encrypt text with a password, generate key pairs and create or check bcrypt hashes, all on your own device with nothing uploaded.
security.txt Generator & Checker
A security.txt file tells security researchers where to report a vulnerability. Fill in Contact and Expires to get a file that follows RFC 9116, or paste an existing file to see line-numbered problems.
HTML Inspector
Paste a page’s HTML to review SEO and accessibility basics at a glance: heading structure, meta tags, Open Graph, image alt text, links and structured data — with a preview of how it may look in search and on social media.
robots.txt Tester
Paste a robots.txt to see instantly whether a URL is allowed or blocked for Googlebot or AI crawlers, and which line decided it. Misspellings and directives Google ignores are flagged too.
Last updated: