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

Check standard JavaScript syntax without running it

Return a valid or invalid parser result without evaluating any expression or statement.

Local processingNo sign-upNever executed

Input

Choose script or module when that distinction matters.

Local

Syntax report

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

What this tool proves

Explicit static behavior

Syntax validity answers whether the selected script, module, or unambiguous grammar can be parsed. It does not prove runtime correctness.

Parser acceptance is not runtime validation

Syntax validity answers whether the selected script, module, or unambiguous grammar can be parsed. It does not prove runtime correctness.

Invalid syntax is returned as a structured result, while resource-limit failures remain hard errors.

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