Free online tool

Minify JSON, CSS, or JavaScript

Remove unnecessary spacing and comments from supported code to create a compact copy. JSON input is parsed before formatting so invalid syntax can be reported.

Open the interactive Code Minifier

The interactive tool loads in the page. Enable JavaScript to enter data, process content, and download results.

Quick guide

How to use this tool

  1. 01Choose JSON, CSS, or JavaScript mode.
  2. 02Paste your source code and minify it.
  3. 03Review the output and copy or download it.

Capabilities

Features and supported formats

  • Separate modes for JSON, CSS, and JavaScript.
  • Shows source and output sizes.
  • Keeps the source editable and reports invalid JSON.

Supported formats

Input and output: JSON, CSS, and JavaScript text.

Answers

Frequently asked questions

Does minifying change what my code does?

Minification removes whitespace and comments; always review and test the output in your own project before release.

Is this a full JavaScript compiler?

No. It performs lightweight in-browser minification; it is not a compiler, bundler, or substitute for project tests.