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. Config files
  3. File upload security policy builder
Your files stay on your device

File upload security policy builder

Describe your upload rules and get a policy document plus server-side enforcement snippets for Nginx, Express, or ASP.NET Core.

This tool is in beta

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

Report a problem

Describe the uploads, the allowlist, and a size cap to build the policy.

The principle behind every line: only server-side checks are security controls. The extension on a filename is a claim, the stored bytes are the evidence; that is why the snippets read the file header against a signature table instead of trusting the MIME header. Honest limits of this builder: it writes templates, not reviewed code; its signature table covers common families (PNG, JPEG, GIF, WebP, PDF, ZIP-based office files, MP4, and more) and names any extension it cannot check rather than inventing one; and it cannot scan files or re-encode them here. Those steps exist as hooks in the code for your server to run.

Your upload rules

Up to 500 characters, becomes the policy's scope
Generate code forEvery snippet enforces on the server; nothing here trusts the browser
Comma separated. An allow-list, never a block-list
Claims the stored bytes must confirm, comma separated
Up to 2,048 MB, fractions fine
The stored name is generated server-side; the client's name stays display metadata
Decoding and re-encoding strips EXIF GPS and beats validating bytes
A dedicated hostname that shares no cookies or script context with the app
The check runs before the body is parsed or stored
Scans must fail closed: an unavailable scanner rejects the upload

The builder always writes the safe storage pattern (server-generated names), whether or not the box is checked; the flag decides how the policy words the rule.

More config file tools

  • nginx.conf explainer
  • SSH config explainer
  • Password policy tester
All config file tools

Was this tool useful?