CSP Builder
Build and lint production-ready CSP rules and HTTP Header records locally in your browser.
Worked Example
W3C CSP Level 3default-src: 'self'
script-src: 'self' https://cdn.example.net
style-src: 'self' 'unsafe-inline'
img-src: 'self' data: https:
connect-src: 'self' https://api.example.net
object-src: 'none'
base-uri: 'self'
frame-ancestors: 'none'
upgrade-insecure-requests:# HTTP Response Header
Content-Security-Policy: default-src 'self'; script-src 'self' https://cdn.example.net; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https://api.example.net; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; upgrade-insecure-requests
# Nginx
...Technical Architecture
Zero-Upload Local Engine
Processes CSP strictly inside browser memory so certificates, keys, and configs never leave your device.
RFC & Standard Compliant
Implements exact BigInt subnet math, ASN.1 DER parsing, and RFC-compliant HTTP Header generation.
Deterministic Ops Output
Produces clean, auditable HTTP Header ready for DNS zones, Nginx, Docker, systemd, and CI pipelines.
Instant Browser Execution
Lightweight pure-script engine with native Web Crypto hashing and instant keyboard workflows.
How to use CSP Builder
- 1Paste your CSP input or open a local config file in the left editor.
- 2Adjust output format, hash algorithm, or indentation options in the toolbar above.
- 3Inspect the instant HTTP Header result on the right, then copy or download it directly.
Frequently Asked Questions
Are my CSP configs or certificates uploaded to a server?
No. Every calculation, ASN.1 decode, and validation step runs strictly inside your browser memory so private configs never leave your machine.
What standards does CSP Builder follow?
CSP Builder follows modern RFC and POSIX conventions for CSP processing to generate accurate, production-ready HTTP Header output.
Can I chain the output into another NetFmt tool?
Yes. Use the Next Step button above the editor to send the current HTTP Header result straight into another NetFmt tool without re-pasting.