NETWORK & WEB

Content Security Policy Analyzer

Audit a Content-Security-Policy directive by directive, including script-src, object-src and base-uri.

Runs locallyYour input never leaves this device
WORKBENCH

2 MB input limit · no history kept

Analyzes the policy text only — no requests are sentThe score flags obvious gaps; it doesn't verify browser compatibility or app behavior.
HOW TO USE

How to use the Content Security Policy Analyzer

A CSP is only as strong as its weakest directive. This analyzer parses every directive and flags unsafe-inline, unsafe-eval, wildcards, data: scripts and missing object-src, base-uri, frame-ancestors and form-action.

  1. Paste your input into the workbench above. Mask production credentials or personal data first.
  2. Adjust the options you need and click Analyze CSP.
  3. Review and copy the result, then cross-check important conclusions against the original evidence.
USE CASES

Content Security Policy Analyzer use cases

  • Harden a CSP before enforcing it.
  • Review CSPs in web application security assessments.
  • Find XSS bypass opportunities in CTFs.

Related topics: content security policy, csp, xss, security headers, frontend security

FAQ

Content Security Policy Analyzer FAQ

Does the Content Security Policy Analyzer upload my data?

No. Tool input and results stay in the current tab. Navigation may load static site assets, but does not upload the data you enter.

Is the Content Security Policy Analyzer free? Do I need an account?

It's free with no account and no usage limits, like every other tool on SecTools.

Can I use the Content Security Policy Analyzer on mobile or offline?

Yes. It works in mobile and desktop browsers and keeps working offline once the page has loaded. You can also self-host the open-source code on an internal network.

Can I treat the Content Security Policy Analyzer's results as a final verdict?

Use them for triage and cross-checking. For important incidents, keep the original evidence and confirm with your formal verification or forensic process.

SECURITY NOTE

Use it safely

This tool supports analysis and interpretation; it doesn't replace a formal security review. Avoid pasting live credentials, private keys or production passwords on a shared computer. Close the tab when you're done and your input is gone.