CSP Analyzer and Generator
Paste your Content-Security-Policy to see its directives and warnings for unsafe-inline, unsafe-eval and wildcards; leave it empty to get a starter policy for the services you use.
Results appear here as you type.
This tool runs entirely in your browser; nothing you enter is sent to a server or stored.
In short
CSP (Content Security Policy) is a header telling the browser which sources may load scripts, styles, images and frames, greatly reducing the impact of XSS. Try a new policy with the Report-Only header first.
What does CSP Analyzer and Generator do?
Paste your Content-Security-Policy to see its directives and warnings for unsafe-inline, unsafe-eval and wildcards; leave it empty to get a starter policy for the services you use. It is free and needs no sign-up.
Who uses it and when?
- Developers tightening security headers
- Teams closing pen-test findings
- Sites using Google Analytics and Meta Pixel
Frequently asked questions
Is CSP Analyzer and Generator free?
Yes. The tool is free, needs no account and the data you enter is not stored.