CSP Hash Helper

Compute CSP 'sha256-…' / 'sha384-…' / 'sha512-…' tokens for inline scripts/styles. Client-side only.

home · tools · csp builder

1) Paste the exact inline contents

Hashing is byte-exact. If the browser sees different whitespace/newlines, the hash won’t match.

Example output: 'sha256-Base64Here...' then add to script-src or style-src.

Gotchas (why hashes “don’t work”)

No uploads; everything computed in your browser via WebCrypto.