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

Format JavaScript with explicit quote and semicolon choices

Normalize layout with Prettier after a strict standard-ECMAScript parse.

Local processingNo sign-upNever executed

Input

Paste standard JavaScript up to 256 KiB and choose the source grammar.

Local

Formatted JavaScript

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

What this tool proves

Explicit static behavior

Formatting changes presentation rather than program intent. Quote style and semicolon preference are explicit inputs while line width and indentation use stable documented defaults.

Formatting is a deterministic presentation transform

Formatting changes presentation rather than program intent. Quote style and semicolon preference are explicit inputs while line width and indentation use stable documented defaults.

The formatter first rejects unsupported or invalid syntax, then uses the pinned Babel and ESTree plugins. It does not execute formatted output.

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