JS Script Minifier
Strip comments and collapse whitespace in JavaScript safely (no variable renaming).
Why use this tool?
Strip comments and extra whitespace from JavaScript safely. It doesn't rename variables, so for maximum compression use a build tool like esbuild or Terser.
How to use it
- Paste your JavaScript.
- Click Minify JS.
- Copy the output.
Related tools
- Base64 Encode/Decode - Encode text to Base64 or decode Base64 back to text, with correct UTF-8 handling for emoji and non-Latin scripts.
- Regular Expression Tester - Test JavaScript regular expressions live, with highlighted matches and capture groups.
- JWT Claims Token Decoder - Decode JWT header and payload, check expiry, and verify HS256/384/512 signatures locally.
- UUID Generator - Generate random RFC 4122 version 4 UUIDs in bulk.
- Unix Timestamp Converter - Convert Unix epoch timestamps (seconds or milliseconds) to dates and back.
- API Request Tester - Send HTTP requests with custom method, headers and body directly from your browser and inspect the response.