CSP Policy Viewer — Content Security Policy Formatter
Parse a Content Security Policy string into grouped directives, highlight risky values such as `unsafe-inline`, and review whether the policy includes common baseline controls such as `default-src`, `object-src`, and `frame-ancestors`.
Best for
CSP review
Input
Pasted policy
Output
Warnings and groups
CSP workspace
Paste a CSP header value, then inspect the directive groups and the values that need more caution.
Policy summary
Review the score, directive count, unsafe values, and nonce or hash usage at a glance.
Frequently asked questions
Content Security Policy helps limit which sources can provide scripts, styles, images, frames, and other resources. It is mainly used to reduce XSS and related injection risks.
They weaken CSP substantially by allowing inline script execution or dynamic evaluation paths that attackers often abuse.
No. It only analyzes the CSP string you paste into the page, and everything stays local in your browser.
Related tools
Cookie Parser — Parse HTTP Cookie Strings
Parse pasted Set-Cookie or Cookie header strings to inspect cookie names, values, attributes, and common security flags.
User-Agent Parser — Browser & OS Detector
Parse user-agent strings to identify browser family, version, operating system, device class, rendering engine, CPU architecture, and likely bot labels.