Skip to content
Grammar
ECMAScript
Deadline
2,000 ms
Runtime
Browser

Remove JavaScript comments and layout without mangling names

Remove comments and unnecessary layout while preserving identifier names and disabling compression.

Local processingNo sign-upNever executed

Input

Paste valid standard JavaScript; names and program logic remain intact.

Local

Minified JavaScript

Submit the example or replace it with your own input. Source is parsed but never executed.

What this tool proves

Explicit static behavior

This conservative mode targets transfer size without rewriting logic. Terser compression and mangling are both disabled so the output remains recognizable.

Minification does not imply optimization or obfuscation

This conservative mode targets transfer size without rewriting logic. Terser compression and mangling are both disabled so the output remains recognizable.

A strict parse occurs first, and the resulting text is bounded to 1 MiB. Comments are intentionally not preserved.

Static analysis has a deliberate safety boundary

Tool Swim parses source as standard ECMAScript inside a disposable Web Worker with a 2,000 ms deadline. It never calls eval, Function, imported modules, or user code.

Source and results stay in the current browser tab. The public tool makes no API request, stores no preset, and does not require an account or telemetry.

Primary references

Questions and answers

Related JavaScript tools