Free · No sign-up · Runs in browser

JavaScript Formatter

Quick JavaScript re-indenter with configurable indentation. Preserves string, template, regex literals, and comments. 100% client-side.

JavaScript Input
Formatted
// Formatted JavaScript will appear here…

JavaScript Formatter

A lightweight JavaScript re-indenter for quick cleanup. Not a full AST formatter — for strict Prettier-grade output use Prettier itself. Perfect for pasting minified or one-line scripts to read what they do.

Related

Shrink JS with the JS Minifier.

Literal-aware

Strings, templates, regex, and comments survive untouched.

Instant

Formatting runs in your browser.

Fully private

Code never leaves your device.