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.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
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.
Related tools
See category- Subresource Integrity (SRI) Hash Generator
- Text Hash Generator
- File Hash / Checksum
- HTTP Security Headers Analyzer
Subresource Integrity (SRI) Hash Generator
Generate SRI integrity hashes for scripts and styles.
Text Hash Generator
Hash text with MD5, SHA-1, SHA-256, SHA-384 or SHA-512 and output hex, Base64 or base64url.
File Hash / Checksum
Compute SHA-256/384/512 and SHA-1 checksums for one or more files.
HTTP Security Headers Analyzer
Review pasted HTTP response headers for common browser security protections.