Code Minifier

Minify JavaScript, CSS, and HTML with byte-level savings.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is minify_code.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "minify_code",
7 "arguments": {
8 "language": "js",
9 "code": "example",
10 "jsMangle": true,
11 "jsCompress": true,
12 "cssLevel": 2,
13 "htmlAggressive": false
14 }
15 }
16}

How it works

Free code minifier. Shrink JavaScript with Terser and CSS with csso, plus a structural HTML pass that strips comments, collapses whitespace, and cleans redundant attributes. Toggle mangling, compression, and aggressive HTML options, then compare before/after byte counts and the savings percentage.

  1. 01

    Pick a language

    Switch between the JavaScript, CSS, and HTML tabs.

  2. 02

    Tune the options

    Turn mangling and compression on or off, pick the CSS optimization level, or enable aggressive HTML mode.

  3. 03

    Copy the output

    Read the before/after byte counts and the savings percentage, then copy or download the minified code.

FAQ