Free developer tool

JavaScript, JSON & CSS minifier

Minify JavaScript with Terser, JSON with the browser parser, or CSS with CSSO entirely in your browser with no code upload or execution.

Runs locallyUpdates as you type
Output
Your result will appear here.
Processed only on this device

About this tool

What javascript, json & css minifier does

Reduce JavaScript, JSON, or CSS source size with language-aware parsing, compression, and whitespace removal.

How it works

Bundled Terser and CSSO processors handle JavaScript and CSS. JSON is parsed for validity and serialized without insignificant whitespace. All processing stays local and supplied code is never executed.

Common uses

When to use it

  • Minify a JavaScript module for a small static asset
  • Compact JSON for a request or fixture
  • Compress CSS before embedding it

Scope

Limits to know

  • Aggressive JavaScript name mangling can make debugging harder
  • Minification is not encryption or a security boundary

Worked example

Example input and result

Use the prefilled value in the tool above or paste a similar value of your own.

Input
function greet(name) {
  const message = `Hello, ${name}!`;
  return message;
}
console.log(greet('admin'));
Result
function greet(e){return`Hello, ${e}!`}console.log(greet("admin"));

Quick answers

JavaScript, JSON & CSS minifier FAQ

Does minification run my JavaScript?

No. Terser parses and transforms the source without evaluating it.

Which languages can this minify?

JavaScript, JSON, and CSS are supported. JSON input must parse successfully before it is compacted.

Is the source uploaded?

No. The minifiers are bundled and run only in current-tab memory.