How to use CSP Policy Generator
- Start by adding the text you want to generate into CSP Policy Generator.
- Set Preset, script-src (optional), style-src (optional) so the output fits your use case.
- CSP Policy Generator updates the output automatically as you type.
- Finish by choosing Copy to take the output with you.
About this tool
There is no server behind CSP Policy Generator. CSP Policy Generator is a free HTTP & Security Header Tools utility that runs in your browser, doing its work on the input you provide without a backend.
Because it runs on your device, it is fast and private and works offline once loaded. Nothing you enter is uploaded, and it keeps working offline once the page has loaded.
Frequently asked questions
What is CSP Policy Generator for?
CSP Policy Generator lets you generate your input right in the browser using the Preset, script-src (optional) controls, with the result shown instantly and nothing uploaded.
Is CSP Policy Generator free to use?
Yes — CSP Policy Generator is completely free, with no usage limits.
Does CSP Policy Generator upload my data?
No — CSP Policy Generator processes everything locally in your browser, so nothing you enter is uploaded or stored.
Can I use CSP Policy Generator without a connection?
Yes — after the first load CSP Policy Generator runs entirely offline.