JavaScript Minifier
Parse and compress JavaScript with Terser rather than stripping characters with text substitutions.
Run the javascript minifier
Text processingWhat javascript minifier helps you do
Parse and compress JavaScript with Terser rather than stripping characters with text substitutions. Quoted strings, regular expressions and comments need language-aware processing. Test the compressed script in its original loading context, especially if other files depend on global names.
Prepare a useful input
Example input: function greet(name) { return "Hello, " + name; } console.log(greet("Maya")); Save the original input alongside the result so another person can reproduce the check and judge whether a proposed change addresses the same page or file.
Read the result before making changes
Minification does not find application bugs or make untrusted code safe. This tool returns text and does not execute the submitted script. Keep a copy of the original file or text. Review the generated output and test it in the system where you intend to use it before replacing a production configuration.
Keep execution context and public interfaces stable
A script loaded as a classic global file has different assumptions from an ES module. This pass parses and compresses the supplied JavaScript without executing it, but your application still owns dependencies between files and external callers. A function name used by another page or inline event handler may require a build configuration that preserves its interface. Check the minified output in the actual loading context, including source maps when debugging a release. Preserve the readable original and relevant license notices in the build workflow. If parsing fails, fix the input or choose the appropriate compiler stage rather than deleting characters until the error disappears.
Verify the result and continue
Load the result in its real script context and exercise the public functions other files call. Keep source maps in the appropriate development workflow. Do not execute an unfamiliar submitted script merely to see whether minification worked; parser success and application behavior are different checks. Continue with the javascript error checker or explore the performance tool cluster.
How this tool works
Parse and compress JavaScript with Terser rather than stripping characters with text substitutions. A deterministic parser or documented transformation processes your supplied input. The result is a reviewable output, with no invented network observations or ranking data.
What the result does and does not establish
Minification does not find application bugs or make untrusted code safe. This tool returns text and does not execute the submitted script.
Use this check as part of a repeatable website review. Record what you found, make a specific change and run the same check again.
Browse all toolsContent and technical review workflow