DEVELOPER & CODE · LOCAL WORKBENCH

CSP Formatter

Turn a long Content-Security-Policy value into one directive per line for manual review, with repeated names called out.

DEVELOPER & CODE · LOCAL WORKBENCH · BROWSER WORKSPACE

Split the policy. Review every directive.

Turn a long Content-Security-Policy value into one directive per line for manual review, with repeated names called out.

01 · POLICY HEADERFORMAT ONLY
Formatting is not a security audit.

This only separates semicolon-delimited directives and normalizes whitespace. It does not judge whether a policy is safe, complete, or compatible with your site.

02 · ONE DIRECTIVE PER LINE3 directives
INPUT CHARACTERS59
REPEATED NAMES0
PROCESSINGBrowser only
01default-src
default-src: 'self'
'self'
02img-src
img-src: 'self' data:
'self'data:
03object-src
object-src: 'none'
'none'
Plain text output
default-src: 'self'
img-src: 'self' data:
object-src: 'none'
◎

Runs in this browser. Results are estimates or editing cues. Review the assumptions and source-specific limits before using them in a consequential decision.

Back to the tool library ↗

Need a feature from the original version? Open the current ECECH tool

How this app works

Turn a long Content-Security-Policy value into one directive per line for manual review, with repeated names called out. Processing is local; output is not a security certification.