JavaScript Formatter & Minifier

Format and minify JavaScript locally with pinned parser-based tools; your code is never executed or uploaded.

Your JavaScript remains in the browser and is never executed by this tool. Maximum input: 1 MB UTF-8. Formatting uses js-beautify 1.15.4; minification uses Terser 5.51.2.

0 B / 1 MB
Advanced minification

Parser-based minification instead of regex deletion

JavaScript comments and whitespace cannot be safely removed with simple regular expressions because the same characters can appear in strings, template literals, regular-expression literals and modern syntax. This version uses Terser, which parses JavaScript before compressing it. The formatter uses js-beautify for readable indentation.

Safer defaults

Name mangling is off by default because shorter identifiers can make stack traces and debugging harder. Enable it only when you want a smaller production artifact and have tests/source maps appropriate to your project. Ebhor does not provide a “Run” button and never evaluates pasted code.

Privacy

No source code is submitted to an Ebhor API or stored by this page. Processing happens locally after the version-pinned browser libraries load. Avoid pasting secrets into any browser tool when they are unnecessary for the transformation.