CSP Directive Parser
Parse a bounded Content-Security-Policy string by directives and tokens.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: This is a local structural parser, not a policy validator, browser emulator, vulnerability scanner, or effectiveness assessment.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use CSP Directive Parser
Enter the content-security-policy field value.
Press “Parse CSP directives”.
Copy the result, or download it as csp-directives.json.
About this tool
Parse a bounded Content-Security-Policy string by directives and tokens.
Bounded local tokenization only. Policy enforcement and resource loading are not tested.

