Skip to content
benchline
ToolsMCPAbout
benchline

82 tools for people who ship the web. 70 run entirely in your browser. No account, no upload.

All tools operational

Tools

All toolsllms.txt generatorAI SEO checkerOG image generatorJWT decoder

Categories

All categoriesDeveloperData & FormatsSEO & AI SearchImage & MediaPDF & Documents

For agents

MCP setupAI accessllms.txtllms-full.txtOpenAPI

Benchline

AboutFounderPrivacyGitHubSitemap

benchline

© 2026 Benchline. Built by Waseem Anjum. MIT licensed.Built for the browser, callable over MCP.
  1. Tools
  2. Developer
  3. Code
  4. Code Minifier

Code Minifier

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

Runs in your browser
Use via MCP

MCP

Use this tool from your agent

Add the server once, then ask for the job in plain words. No key.

Setup guideAll MCP tools

Tool name

minify_code

Endpoint

https://benchline.fabwaseem.com/mcp
Auth
None
Rate
60 / min
  1. 1Add the server config for your client.
  2. 2Ask your agent to run minify_code, or describe the job.
  3. 3Or send the tools/call request yourself.
~/.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/call requestjson
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}

Next

Related tools

  • JSON formatterPretty-print, minify, and validate JSON, with the exact line and column when it fails.JSONMCPNew
  • SVG optimizerMinify an SVG, compare the size, and keep the viewBox unless you turn that off.ImageMCPNew
  • Page to MarkdownFetch a public page and turn the article into Markdown.AI searchMCPNew
  • Markdown HTMLConvert Markdown to HTML, or HTML back to Markdown, with a live preview.MarkupMCPNew

Guide

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. 1Pick a languageSwitch between the JavaScript, CSS, and HTML tabs.
  2. 2Tune the optionsTurn mangling and compression on or off, pick the CSS optimization level, or enable aggressive HTML mode.
  3. 3Copy the outputRead the before/after byte counts and the savings percentage, then copy or download the minified code.

FAQ

Questions people ask

JavaScriptCSSHTMLMore

Source

JavaScript sourcejavascript
1
2
3
4
5
6
7
8
function greet(name) {
const greeting = "Hello, " + name + "!";
console.log(greeting);
return greeting;
}
greet("world");
Mangle namesShorten local variable and function names.
CompressApply Terser's compression passes.

Minified

Nothing yet

Paste some code on the left.

Type or paste code to minify.⌘⇧C copy · esc reset