CSP Builder - Free Online Content Security Policy Tool | IconVault
Build a Content-Security-Policy header visually: toggle directives, add sources with one click, start from strict, balanced or legacy presets. Free.
CSP Builder
Build a Content-Security-Policy header visually
default-src
Fallback for every fetch directive
script-src
Where scripts may load from
style-src
Where stylesheets may load from
img-src
Where images may load from
connect-src
fetch, WebSocket, EventSource targets
font-src
Where fonts may load from
frame-src
Where frames may be embedded from
media-src
Where audio/video may load from
object-src
Plugins and embeds (usually 'none')
base-uri
Allowed <base> tag URLs
form-action
Where forms may submit to
frame-ancestors
Who may embed this page
Generated header
default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https:; font-src 'self' https: data:; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests
5 of 5 free copies left.
Content-Security-Policy response header, or as a <meta http-equiv> tag for testing. Meta tags cannot use frame-ancestors or reporting.About this tool
IconVault's CSP Builder turns writing a Content-Security-Policy header into clicking instead of memorizing. Toggle any of 12 directives, from default-src and script-src to frame-ancestors and form-action, and add sources with one-click chips like 'self', 'none', https:, data: and blob:. You can also type custom hosts and hashes.
Start from a Strict, Balanced or Legacy preset instead of a blank page, watch the finished header assemble live, and copy it when it looks right. The strict preset flags the tradeoff honestly: maximum protection means inline scripts and styles are blocked, so you will need nonces or hashes. Free and runs fully in your browser.
Frequently asked questions
Popular searches
More tools
AES Encryptor
AES-256-GCM text encryption in your browser
HMAC Generator
HMAC-SHA signatures in hex or Base64, with tag verify mode
Header Analyzer
Paste raw response headers, get a security audit in seconds
JWT Builder
Sign and verify HS256/HS384/HS512 tokens
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon