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_minifierFull 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
- Escape / UnescapeEscape or unescape strings for JSON, JavaScript, HTML attribute, XML, and SQL contexts.
- JavaScript AST ViewerParse JS with Acorn and explore the ESTree AST as a collapsible tree and raw JSON.
- JS / Node Stack Trace ParserParse V8 and Firefox stack traces into structured frames — function, file, line, column.
- JSON → Code ObjectRender a JSON sample as a literal in JS, TS, Python, PHP, Ruby, Go, Rust, and Java side by side.