SRI Integrity Hash Generator
Calculate SHA-256, SHA-384, and SHA-512 for local text or files, and generate a HTML integrity attribute.
How to use the SRI integrity hash generator
SRI integrity hash generator processes input only in the current browser; it does not upload, connect to the internet, or save user data.
Input content
Paste static asset content or select a local file.
Select a processing method
Select a hash algorithm and calculate a byte-level digest locally.
Check and export
Copy the integrity value and HTML example; remote URL will not be read.
Limitations and Notes
- Maximum input 20 MiB; only processes text or files explicitly provided by the user.
- After resource content changes, integrity must be recalculated; the old value cannot continue to be used for the new file.
- The tool only provides locally processed results; important configurations, secrets, documents, and published content must still be reviewed in the target environment.
FAQ
Will the input be uploaded to a server?
No. The page only uses browser memory, the local file API, and local resources already provided with the site.
Can I directly enter CDN URL?
No. The tool does not fetch URL, to avoid turning the page into a remote resource proxy.
Why do the results still require manual review?
Edge-case syntax, regional standards, third-party readers, and target runtime environments may differ; the tool does not replace final validation.