Nutter Tools
Nutter Tools

A free toolbox that runs in your browser. A tool for every job.

Your files never leave your device

Images

  • Convert images
  • Compress images
  • Resize images
  • Crop
  • Watermark

PDF & files

  • Merge PDFs
  • Split a PDF
  • Images to PDF
  • PDF to images
  • Remove photo location

Video & audio

  • Compress video
  • Convert video
  • Video to GIF
  • Convert audio
  • Trim audio

Everyday

  • QR codes
  • Passwords
  • Time zones
  • Unit converter
  • Word count
  • Webcam test

Developer

  • JSON formatter
  • Base64
  • Regex tester
  • Hashes
  • JWT decoder

Site

  • About
  • Contact
  • Settings
  • Privacy
  • Terms
  • Site map
  • llms.txt

Everyday

  • Images
  • Video
  • Audio
  • PDF & files
  • Text
  • QR codes
  • Units & math
  • Time & dates
  • Color
  • Passwords & IDs
  • Device tests
  • Sun & moon

For developers

  • JSON
  • Encoding
  • Regex & cron
  • Web & auth
  • Hashing & encryption
  • Config files
  • Network
  • Browser
  • AI
  • Fake data
© Nutter Toolsnutter.tools
  1. Home
  2. Web & auth
  3. CSP nonce and hash generator
Your files stay on your device

CSP nonce and hash generator

Generate base64 CSP nonces from WebCrypto and turn pasted inline content into sha256, sha384, or sha512 source expressions with the script-src or style-src fragment.

This tool is in beta

Still being tested. If a result looks wrong, tell us.

Report a problem

Nonces

Pick a size and generate a batch; nothing is stored anywhere.

Not generated yet

Hashes

Paste the inline script or style text; the hash appears as you type.

Paste inline content to hash

Nonces come from the browser CSPRNG and never leave this tab; hashes run through the WebCrypto digest of your pasted text. Neither mechanism is fetched, stored, or synced. Nonces and hashes answer different problems: a nonce allows one generated tag per response, a hash allows one fixed snippet forever. Mixing them under the same directive is allowed, but a script-src with strict-dynamic ignores hashes entirely. When you allow inline scripts at all, the CSP evaluator can read the whole policy and tell you what else slipped in.

Nonce and hash setup

Random bytes128 bits is the everyday choice
How manyUp to 50 per batch
The exact bytes between the tags
Directive
Algorithm

More web & auth tools

  • CSP evaluator & builder
  • Subresource integrity
  • Hash generator
All web & auth tools

Was this tool useful?