CSP Analyzer

Analyze a Content Security Policy for potential issues

Supported subset: ten builder source-list directives; analyzer additionally assesses frame-ancestors and marks other directives unassessed. Quoted self/none/unsafe-inline/unsafe-eval, schemes, ASCII host sources, and literal quoted nonce/SHA-256/384/512 sources are supported. This is not complete CSP grammar validation or a security score. Findings are rule-based risk indicators and recommendations; review before deployment. High denotes syntax problems or weakened code restrictions, Medium broad trust/transport, Low scope, information or recommendations. Nonces should be unpredictable and generated per response. The starter policy requires adaptation to your application.

Processing stays in this browser. No website is contacted. CR, LF and other control characters are rejected. Inputs are limited to 200000 characters per field. Editing removes previous results; Clear restores starter controls and removes results, errors and warnings.

How to use CSP Analyzer

Analyze a Content Security Policy for potential issues

  1. Select the required security settings on a trusted device.
  2. Review the generated secret or policy before copying it to its destination.
  3. Review the result, then copy or download it.

Inputs and options

CSP value

Example input

policy: default-src 'self'; object-src 'none'

Use the example button when available, or paste these values into the corresponding fields.

Formats and limits

Supported subset: ten builder source-list directives; analyzer additionally assesses frame-ancestors and marks other directives unassessed. Quoted self/none/unsafe-inline/unsafe-eval, schemes, ASCII host sources, and literal quoted nonce/SHA-256/384/512 sources are supported. This is not complete CSP grammar validation or a security score. Findings are rule-based risk indicators and recommendations; review before deployment. High denotes syntax problems or weakened code restrictions, Medium broad trust/transport, Low scope, information or recommendations. Nonces should be unpredictable and generated per response. The starter policy requires adaptation to your application.

Frequently asked questions

Are my inputs uploaded?

Tool processing runs on your device. Your input is not sent to a processing server. Some tools may download runtime files or use platform features; see the tool notes.

What should I check before using the result?

Generate secrets on a trusted device. Copying puts the result on your clipboard; clear it after use and avoid sharing secrets.

Can I use this tool for free?

Yes. ToolXovo tools are free to use. Beta tools are still being validated; check their notes and exported results.