CSP Validator

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.

A few things to know.

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.

  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.