How to use this developer tool
- Paste or upload the expected source text.
- Review any options shown below the input.
- Select Deduplicate Sources or press Ctrl/Cmd + Enter.
- Check the notes, then copy or download the output.
Remove repeated source expressions from each directive in a CSP policy without alphabetizing or changing the first occurrence. Directive names are compared case-insensitively, and duplicate directives are folded together. The result is easier to review in configuration files and response headers. This cleanup does not assess whether a source is trustworthy, whether host patterns overlap, or whether nonce and hash values are current.
CSP Source List Deduplicator turns the entered source into a structured or generated result that can be inspected before use.
Input stays in this browser tab. Always remove live secrets before sharing screenshots or downloaded results.
script-src 'self' https://cdn.example.com https://cdn.example.com 'nonce-abc' 'self'; img-src data: https://images.example.com data:
Running the sample produces output that reflects the parsed fields and reports any unsupported or security-sensitive detail.
Groups directives by normalized name and performs exact token deduplication while retaining first-seen order. Processing is deterministic except where cryptographic random values are intentionally generated.
This browser tool does not execute remote requests, expand shell variables, inspect server behavior, or replace application-specific security review.
No. Processing runs in the browser and the page does not transmit the entered text.
Paste a CSP policy with repeated sources using the syntax shown in the sample.
Use it as a reviewed starting point. Environment-specific security, authentication, and error handling still need verification.
The parser handles documented common syntax and reports constructs that would require shell, browser, or server context.
Compare the parsed URL, headers, body, directives, or origins with the source and test the final configuration in a non-production environment.
| Field | Meaning |
|---|---|
| Output | Generated or parsed text |
| Summary | Counts and completion state |
| Notes | Warnings and review guidance |
Browse more tools in this developer category.
Open category hub