/ tool · 02
CSP Hash Generator
Generate a hash for an inline <script> or <style> block, to include in your Content Security Policy.
Code to hash
Coverage
- SHA-256 / 384 / 512 — the three CSP algos
- byte-exact — hash on the exact bytes entered
- type auto — JS / CSS / unknown heuristic
- script-src / style-src — ready-to-paste directives
- quote auto — CSP value pre-quoted
- full header — full Content-Security-Policy line