Skip to content
BEAD

JavaScript Minifier

Minify JS / ES modules in your browser using Terser. Compression, mangling, and ECMA target are tunable.

Minified (0 chars, −100.0%)
</>Use this tool programmaticallycurl · JavaScript · MCP

Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.

curl
curl https://api.b-e-a-d.com/tools/js-minifier/run \
  -H "Content-Type: application/json" \
  -d '{
  "code": "a",
  "compress": true,
  "mangle": true,
  "keepClassnames": false,
  "ecma": 2020
}'
JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/js-minifier/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "code": "a",
  "compress": true,
  "mangle": true,
  "keepClassnames": false,
  "ecma": 2020
}),
});
const data = await res.json();
console.log(data.result);
MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
  "mcpServers": {
    "bead": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
    }
  }
}

# Then ask Claude to call:
mcp__bead__bead_js_minifier

Full reference: developer docs · OpenAPI spec

Engine

Powered by Terser, the same minifier that ships with Webpack and Rollup. Settings tune compression aggressiveness, mangling, ECMA target, and whether to keep comments / class names.

Privacy

Everything runs in your browser. Your code is never uploaded.

You might also like

Used in these workflows