Hash & SRI Generator

// SHA-256 · SHA-384 · SHA-512 · checksums · SRI · CSP hashes

0 characters · 0 bytes (UTF-8)
Show
Format

Hashes

SHA-256
—
SHA-384
—
SHA-512
—

Subresource Integrity

integrity value
—
HTML tag
—

Hash the exact file the browser will download. A CDN's minified build differs from the npm source, and any change to the file breaks the hash, which is the point.

CSP hash source (for an inline <script> or <style>)
—

Paste the exact contents between the tags, whitespace included. Add the value to script-src or style-src in your policy.