CSP Hash Generator

Hash an inline script for use in a CSP script-src directive.

'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='

About this tool

Paste an inline script (exact bytes!) and get the 'sha256-…' / 'sha384-…' / 'sha512-…' value to add to your Content-Security-Policy header.

An unhandled error has occurred. Reload ×