DevToolbox
Developer utility hub
126 tools available
Categories
Basic Auth GeneratorBcrypt Hash & Verify ToolCertificate Chain ViewerCORS Header GeneratorCSP GeneratorCSR DecoderHash GeneratorHMAC GeneratorJWT DecoderJWT Signer / VerifierPassword Strength CheckerRSA Keypair GeneratorUnix Permission CalculatorX.509 Certificate Decoder

Made withby Shashank Dubey

© 2026 Shashank Dubey. All rights reserved.

DevToolbox
Developer utility hub
HomeAbout
Back to all tools
Security

CSP Generator

Generate Content-Security-Policy headers and meta tags from common directive inputs.

Quick context
  • Runs entirely client-side with no server dependency.
  • Built for copy-paste workflows and fast iteration.
  • Optimized for desktop and mobile editing sessions.
cspcontent security policyheaders
default-src
script-src
style-src
img-src
font-src
connect-src
object-src
frame-ancestors
Directives
9
Header length
260
Useful when embedding CSP into server middleware or reverse proxies.
Mode
Upgrade on

CSP header

Use this in an HTTP response header.

Meta tag

Use this inside the HTML document head when headers are not available.

Policy directives

Each directive is broken into its individual source expressions.