syntaqxsyntaqx/
postsprojectsdocsmiscabout
home/misc/js
postsprojectsdocsmiscabout

© 2026 Chase Pierce

APITermsPrivacy|

JavaScript Beautify / Minify / Obfuscate

Format, compress, or obfuscate JavaScript and JSON. Everything runs in your browser, nothing is sent to a server.

About this tool

Beautify uses Prettier to reformat source with consistent indentation, quoting, and line breaks. Choose the JSON parser for strict JSON input.

Minify uses Terser to compress and mangle JavaScript. Output is functionally equivalent but significantly smaller. Mangling can break code that introspects Function.name or relies on exact identifier names.

Obfuscate uses javascript-obfuscator to make code harder to read. This is not encryption and can be reversed with effort. Higher presets add significant runtime overhead.

All three libraries run entirely in your browser. Source code never leaves your machine.

References

  • Prettier - Options
  • Terser - Options
  • javascript-obfuscator