About this tool
Paste minified, one-line or inconsistently indented JavaScript, or open a UTF-8 .js or .mjs file, and choose Format to print it with consistent indentation and line breaks. It is useful for reading a bundled library or tidying a copied snippet. TypeScript and JSX are not supported.
JavaScript is parsed and printed locally without running it. Names and expressions are preserved. Minify removes ordinary comments but keeps license and preservation comments.
UTF-8 text · up to 5 MiB · stays on this device
Editing the input or settings clears the previous result. Copy and download always use the latest completed conversion.
Your text and files stay on this device. Nothing is uploaded or saved by this tool.