All Tools
Utilities

Code Minifier & Formatter

Minify or prettify JSON, CSS, or JavaScript

Free No sign-up Fast
Use Code Minifier & Formatter
Upload a file instead

About this tool

Compress JSON, CSS, or JavaScript by stripping whitespace and comments, or reformat minified code back into a readable layout.

Frequently asked questions

Why minify code?
Minified code strips whitespace, comments, and sometimes shortens variable names, producing a smaller file that loads faster in production — at the cost of being unreadable, which is why you keep an unminified source copy separately.
Is minified code the same as obfuscated code?
No — minification only removes unnecessary characters for smaller file size; it doesn't intentionally try to make the logic hard to understand the way obfuscation does.
Can I validate my code without changing it?
Yes — the "validate" mode checks whether your code parses correctly without minifying or reformatting it.