CSP Generator

Generate Content Security Policy headers from common directives, trusted domains, nonce options, reporting endpoints, and security presets.

Upload a local file or paste manually. Files are processed in your browser.

Free Online CSP Generator

Generate Content Security Policy headers from common directives, trusted domains, nonce options, reporting endpoints, and security presets. This tool runs locally in your browser, so pasted HTML, robots.txt files, keywords, and policy drafts stay on your device.