CSP Directive Parser

Parse a bounded Content-Security-Policy string by directives and tokens.

Scope: This is a local structural parser, not a policy validator, browser emulator, vulnerability scanner, or effectiveness assessment.

Workbench

Inputs stay on this page.

Bounded local tokenization only. Policy enforcement and resource loading are not tested.

How to use CSP Directive Parser

  1. Enter the content-security-policy field value.

  2. Press “Parse CSP directives”.

  3. 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.