Minifiers
Minify JSON, CSS, JavaScript, HTML, XML, SQL and Lua by stripping spaces, line breaks and comments, so files load faster.
All Minifiers
- JSON MinifyRemove spaces from JSON to make it smaller.
- XML MinifyRemove spaces and comments from XML to make it smaller.
- JS MinifyRemove spaces and comments from JavaScript to make it smaller.
- CSS MinifyRemove spaces and comments from CSS to make it smaller.
- SQL MinifierRemove spaces and comments from SQL to make it smaller.
- Lua MinifierRemove spaces and comments from Lua to make it smaller.
- HTML MinifyRemove spaces and comments from HTML to make it smaller.
- Text MinifierCollapse extra spaces and blank lines in plain text.
How it works
- Step 1
Pick your language below.
- Step 2
Paste the code and press Minify.
- Step 3
Copy or download the smaller version.
Good to know
- Minifying never changes what the code does — only how it’s laid out.
- Keep your readable original; minify the copy you publish.
- Free, no sign-up
- Runs in your browser
- Works on phones
Frequently asked questions
Are these Minifiers free?
Yes. Every one of these Minifiers is completely free, with no sign-up, no watermark and no daily limit.
Is the data I paste sent to a server?
No. Conversion runs in JavaScript inside this browser tab and nothing you paste is sent or stored. Even so, avoid pasting live passwords, API keys or private customer data into any website.
Why do I get an error?
Almost always the input isn’t quite valid: a missing comma or quote in JSON, an unclosed tag in XML, or a tab in YAML. The error message shows where parsing stopped — fix that spot, or press “Load example” to compare with input that works.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, tablets and computers — nothing to install.