JavaScript Formatter/Minifier
JavaScript formatter powered by the Prettier engine for consistent indentation and style, plus a minifier that strips whitespace and comments. Free and instant in your browser, no upload, no install.
Embed
What is JavaScript Formatter/Minifier?
JavaScript formatter powered by the Prettier engine for consistent indentation and style, plus a minifier that strips whitespace and comments. Free and instant in your browser, no upload, no install.
How to Use
- 1Enter JavaScript— Paste your JavaScript code on the left.
- 2Select mode— Choose format or minify mode.
- 3Execute— Click the execute button and the result will be displayed.
Related Tools
Frequently Asked Questions
Currently only JavaScript (ES2024) is supported. TypeScript support is planned for a future update.
Indentation size can be selected, and singleQuote and trailingComma are applied by default.
Yes, modern syntax including import/export, dynamic import, and top-level await are supported.
No. Prettier standalone runs directly in the browser.
Yes, the Babel parser automatically handles JSX syntax.