CSP Parser
Review CSP structure and risky settings
Audit results and the policy breakdown will appear here
What is CSP Parser?
CSP Parser organizes a Content Security Policy header into directives by category and runs a quick audit of risky patterns.
Paste a CSP string from browser developer tools or another source, and directives such as script-src and img-src are grouped for review. Values like 'unsafe-inline' or wildcards become easier to spot.
How to Use
Paste a CSP header into the input area, and the quick audit and directive list appear grouped by category. The parser reacts as you type, so you can compare small CSP changes while you edit.
Reading the Results
Quick Audit
The main checks are:
'unsafe-inline'or'unsafe-eval'- Wildcards like
* - Missing
default-srcorobject-src - Use of
http: data:orblob:allowed inscript-src
The result is shown with HIGH/MEDIUM/LOW severity, but it is still only a basic pattern-based check rather than a full security review.
Policy Breakdown
Directives are grouped into categories such as Fetch, Document, Navigation, and Reporting. This makes it easier to follow where each restriction applies and to see the policy as a whole.
Use Cases
- Doing a first pass on a newly written CSP
- Investigating a
Content Security Policy violation - Reviewing an existing site's policy for risky settings
- Checking how a new CDN, analytics script, or API source affects the policy
Things to Keep in Mind
- A valid CSP does not by itself eliminate all application security issues
- Before using a policy in production, test it with Report-Only mode and verify actual site behavior as well
Last updated:

