WebTool

JS / TS Formatter

Free online JavaScript and TypeScript formatter powered by Prettier, with JSX/TSX support and reverse minify — local.

Privacy: all processing happens locally in your browser. Your input never leaves your device.

What is JS / TS Formatter?

This tool embeds the Prettier engine (the same one behind VS Code formatting) to beautify JavaScript/TypeScript code online: consistent indentation, quotes, semicolons and line breaks, with JSX/TSX support. Pasting a minified third-party script here and formatting it is the first step to reading it. Reverse minification (stripping comments and extra whitespace) is supported too. Everything is processed locally.

How to Use

  1. Paste JS/TS code
  2. It formats automatically (or click Minify)
  3. Copy the result

FAQ

Which formatting rules are used?
Prettier defaults: 2-space indent, double quotes and trailing semicolons — consistent with most team style guides.
Can it restore obfuscated variable names?
No. Formatting only restores layout; recovering variable names needs a deobfuscator, with limited effect.

Related Tools

Last updated 2026-09-04