Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS

SRI Hash Validator

Paste an SRI integrity attribute (the integrity="..." value of a script or link tag) and validate it without uploading anything. The tool splits it into its individual algorithm-token pairs, checks that each algorithm is one of sha256, sha384 or sha512, and that the base64 value decodes to the exact digest length for that algorithm (32, 48 or 64 bytes). It also flags an unexpected algorithm, malformed base64, and an empty or missing token. When you also paste the expected content, it compares each token against the real digest, so you can confirm which integrity hashes actually match the asset before you ship it.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

Questions

What does the validator check?

It parses the integrity attribute of a script or style tag, checks that it names a known hash algorithm (sha256, sha384 or sha512), and that the value is a valid Base64 digest of the expected length.

Does it hash the file for me?

No. This tool validates an already-written integrity attribute. To compute an integrity value from an asset, use the companion sri-hash-generator tool.

What does a mismatched hash mean?

It means the served bytes differ from what the integrity attribute pins, so the browser would refuse to run the resource. That is the signal to re-generate the hash from the exact deployed asset.

How it works

SRI Hash Validator runs entirely in your browser tab. Your input is processed by JavaScript on this device. Nothing is uploaded, and the page works offline once it has loaded.

See category