Network · Made a little simpler

CSP Validator

Review saved Content-Security-Policy headers or paste a policy value. Compare enforcement and report-only directives, repeated entries and resource fallback.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Paste a policy value, Content-Security-Policy field lines, or a saved response. Named fields determine each policy’s disposition.

A saved response uses its last final block by default. Headers and results stay on this device.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSP Validator: how to use it

  1. Paste saved CSP header lines, a response capture or one policy as text.
  2. Choose the disposition for bare policy text. Validate and examine recognized directives, repeats and grammar notes.
  3. Review the fallback coverage and copy or download the local JSON report.

Limits and notes

Use up to 50,000 characters, 20 separate policy entries and 500 directives. Checks common directive grammar and shows declared fallback per policy. Browser behavior, document context and other controls require separate verification.

How your privacy works →

CSP Validator: common questions

Which duplicate directive takes effect?

Inside one policy, the first occurrence controls. Separate policies are listed independently.

Does default-src set every directive?

It is a fallback for many fetch directives. Frame ancestors, form destinations and base URLs have separate directives.

What does report-only mean?

A report-only header identifies activity that would violate the policy. A destination controls where compatible browsers can send its reports.

Guides