Format / Beautify re-indents JavaScript with js-beautify. Choose the indent size and brace style; existing blank lines are kept, up to two in a row.
Minify (Terser) runs Terser 5, the minifier used by most modern bundlers, with optional compression (dead code removal, constant folding, inlining) and name mangling. License comments starting with /*! or containing @license are kept if you tick that option. The status line shows the size before and after. Syntax errors are reported with their line and column.
Terser treats the input as a script, so top-level names are not mangled; wrap code in a function or module if you want those shortened too. Minify the final bundle as part of your build for production. This tool is for quick checks, snippets and inspecting what minification does. Both libraries load from a CDN on first use, and your code is processed locally.