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. Regex & cron
  3. JavaScript minifier
Your files stay on your device

JavaScript minifier

Paste JavaScript and get smaller output: comments stripped and whitespace collapsed by a literal-aware scanner that preserves strings, template literals, regex literals, and newlines where semicolon insertion changes meaning, with no renaming or reordering.

This tool is in beta

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

Report a problem

Your JavaScript

208 characters · 5 lines

Paste some JavaScript to shrink it.

This tool strips comments and collapses whitespace. It never renames a variable, reorders a statement, or rewrites an expression, so it shrinks less than a real minifier like Terser would. Keep mode preserves every source line break, which is what automatic semicolon insertion is defined over; one-line mode joins the output and inserts an explicit semicolon where a return, throw, break, continue, yield, or a newline postfix relied on that break. A clean run is not a claim that the source parses.

Shrink options

Line breaksAutomatic semicolon insertion is defined in terms of line breaks

Pastes stay under 100,000 characters. Strings, template literals, and regex literals are copied byte for byte, and unterminated literals are refused with the line they start on.

More regex & cron tools

  • JSON formatter
  • JSON string escape
  • Regex tester
All regex & cron tools

Was this tool useful?