Canonical: https://toolipedia.app/csp-evaluator

# CSP Evaluator

Paste a Content-Security-Policy and see weaknesses such as unsafe-inline, wildcard sources, missing directives and hosts that are known to help bypass a policy.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > CSP Evaluator

## About CSP Evaluator

Paste a Content-Security-Policy header, a bare policy or a meta tag and get a list of weaknesses sorted by severity. It flags script-src with unsafe-inline or unsafe-eval, wildcard and scheme sources such as https:, data: URLs, missing object-src, base-uri, frame-ancestors and form-action, keywords written without quotes, unknown or repeated directives, and hosts that are widely reported to help bypass policies. The list of risky hosts is editable. It reads the policy text only and cannot see which scripts your pages really load.

## How to use CSP Evaluator
1. Paste your policy, the whole header line or the meta tag into the first box.
2. Review the findings from High to Info and the table of directives that were read.
3. Edit the policy in your server settings, paste it again and repeat until no high or medium findings remain.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- csp evaluator
- content security policy checker
- csp analyzer
- check csp header
- unsafe-inline csp warning

## Frequently asked questions

### Is unsafe-inline always bad?

In script-src it lets injected inline scripts run, which defeats most of the point of a CSP. If you also use a nonce or hash, modern browsers ignore unsafe-inline, so it stays only as a fallback.

### What is strict-dynamic?

It trusts scripts loaded by an already trusted script (one with a nonce or hash) and ignores the host allow list. It lets a short policy still work with scripts that load other scripts.

### Why are some CDNs flagged?

Public hosts that serve user files, JSONP endpoints or old Angular copies can be abused to run attacker code while staying on your allow list. The list is editable in the second box and is only a starting point.

### Is CSP Evaluator free?

Yes. CSP Evaluator on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with CSP Evaluator:
- [Content Security Policy generator](https://toolipedia.app/csp-generator)
- [JSONPath tester](https://toolipedia.app/jsonpath-tester)
- [Hosts File Builder](https://toolipedia.app/hosts-file-builder)
- [Translation Placeholder Checker](https://toolipedia.app/translation-placeholder-checker)
- [HTML Sanitizer](https://toolipedia.app/html-sanitizer-client-side)
