Code Minify & Unminify
Minify or format JavaScript, CSS, HTML and JSON with adjustable indentation.
Hover over or focus a field for help. Press Escape to close.
How it works
Paste your content or load the example. Choose the available options, run the tool, then copy or download the result.
A practical example
JavaScript
const greeting = "Hello"; console.log(greeting);
Result
const greeting="Hello";console.log(greeting);
Frequently asked questions
Is my input sent to a server?
No. Your content is processed in this browser. It is never sent to the server or saved.
What should I know about Code Minify & Unminify?
Select the language before running. Unminify restores formatting, not deleted comments or original variable names. JavaScript names are preserved. Code is parsed without being executed.