About

Tool No. 91 of Pikkola, 28 November 2026

The hash a browser checks before it runs a script is a digest of exact bytes. This page computes SHA-256, SHA-384 and SHA-512 over the file you drop, writes the script and link tags that carry the value, and verifies an attribute you were given.

What it does

The digest is of the response body

Not the file on disk before minification, not the compressed bytes on the wire, and not whatever a CDN happens to serve in your region. That is why the page hashes the artefact you give it and never fetches a URL: the only bytes that matter are the ones the browser receives.

CORS is the hidden dependency

To hash a cross origin response the browser has to read its body, which needs crossorigin="anonymous" on the tag and Access-Control-Allow-Origin on the response. Without both, the failure is a CORS error before the digest is even compared.

A pin is not a vouch

A hash you computed from a compromised build is a perfect pin on a malicious file. Integrity stops a file being swapped after you approved it; it says nothing about whether the file you approved was safe.

What it is not

It does not fetch the URL, check CORS, lint a policy or scan the file. It produces a digest and a tag, and it verifies a claim you already have.

Contact

A file whose integrity this page computes differently from your build tool, or a provider worth adding to the guide, is worth the exact bytes: hello@pikkola.com.

Back to the studio