CSP Builder
Build a Content-Security-Policy header directive by directive, or paste an existing policy to check it. Weak spots like unsafe-inline, wildcards and missing directives are flagged with what to do instead.
Runs entirely in your browser. Nothing you put in here gets uploaded.
Policy
Everything from your own origin, images also from data: URLs.
default-srcThe fallback for every fetch directive the policy does not set.
img-srcImages and favicons.
object-srcPlugins loaded through object and embed. Almost always 'none'.
base-uriURLs a base element may set. Does not fall back to default-src.
form-actionWhere forms may submit to. Does not fall back to default-src.
frame-ancestorsWho may embed this page in a frame. The modern X-Frame-Options.
upgrade-insecure-requestsLoads every http:// resource over https:// instead.
Takes no value. Listing it switches it on.
Output
The policy ready to deploy. Report-Only logs violations without blocking anything, a safe way to try a policy on a live site.
- Directives
- 7
- Header size
- 147 B
Findings
Checks in the spirit of Google's CSP Evaluator, worst first, each with a concrete fix.
No serious weaknesses found
Every check passed.
- High
- 0
- Medium
- 0
- Low
- 0
- Info
- 0
Next steps
Keep going. These tools open with your result loaded in.
Convert text into every case at once: title case in the APA, AP, Chicago, MLA, Bluebook, AMA and NYT styles, sentence case, upper, lower, camelCase, snake_case, kebab-case and more.
Count words, characters, sentences, paragraphs, lines and more as you type, with estimated reading and speaking time.
Remove duplicate lines from a list or text, keeping the first occurrence. Optionally ignore case and whitespace, or drop blank lines too.
Replace text in two modes: plain find and replace all, or regular expressions with flag controls and capture group references like $1.
Paste a UUID to see what it carries: version, variant, and for time-based versions the exact timestamp, clock sequence and node. Also shows the raw bytes, the 128-bit integer and the URN form.
Decode Base64 to text or encode text to Base64. Paste into the top box, read the result below, and flip the direction with one click. Handles Unicode correctly, reads URL-safe Base64, and shows binary payloads as a hex dump you can download.
Convert numbers between binary, octal, decimal, hexadecimal and any base up to 36. Type into any field and the others update as you go. Handles huge integers without losing precision and accepts 0x, 0b and 0o prefixes.
Convert between scientific notation and full numbers as you type. Reads 1.23e5, 1.23 × 10^5 and plain numbers, shows the value written out, in normalized scientific notation and in engineering notation, and can round to any number of significant digits.