Skip to content
Zesona
SRI Hash GeneratorLocal

SRI Hash Generator

Compute a Subresource Integrity (SRI) hash for a script or stylesheet.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

0 characters

Paste the exact bytes of the file.

Fill in File content to continue.

Enter your input to see the result

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Paste the exact file contents.

  2. 2

    Copy the integrity attribute onto the matching tag.

Questions about SRI Hash Generator

Why SRI?

It lets the browser verify a CDN-hosted file has not been tampered with, by matching its hash to the one you set.

Is my data uploaded?

No. Everything is built in your browser from the values you enter.

Does the SRI Hash Generator work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the SRI Hash Generator keeps working with the network switched off and nothing is ever sent to a server.

Is anything I enter into the SRI Hash Generator uploaded or stored?

No. The SRI Hash Generator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.

Can I use the SRI Hash Generator on a phone or tablet?

Yes. The page is responsive, so the SRI Hash Generator works the same in a mobile browser as on a desktop, and there is no app to install.

Other tools you might reach for next.