SRI Integrity Hash Generator

Calculate SHA-256, SHA-384, and SHA-512 for local text or files, and generate a HTML integrity attribute.

Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide

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.

  1. Input content

    Paste static asset content or select a local file.

  2. Select a processing method

    Select a hash algorithm and calculate a byte-level digest locally.

  3. 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.

Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback