# Css Minifier — REST API endpoint `css-minifier`

Minify CSS (strip comments and whitespace) or beautify compressed CSS, and return the output with byte sizes and the percentage saved. Minify removes comments, whitespace around punctuation, and the last semicolon in each block. Beautify puts one declaration per line with the chosen indentation.

- Category: developer
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, API key for tools/call, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/css-minifier/execute (API key, 60 req/min per IP)
- API key: Running a tool needs an API key. Keys are not for sale yet: ask for early access. Without a key, a tool call answers HTTP 402 Payment Required with the error code PAYMENT_REQUIRED. The catalog and the schemas stay open without a key. https://findutils.com/api/#api-keys
- Reference page: https://findutils.com/api/css-minifier/
- Same tool on the other surface: https://findutils.com/mcp/css-minifier/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/css-minifier/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "css": "body {\n  color: red;\n  margin: 0;\n}"
  }'

# Parameter schema (no key needed)
curl https://api.findutils.com/api/tools/css-minifier
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `css` | string | yes | The CSS source to minify or beautify. |
| `mode` | string (minify \| beautify) | no | minify = compress, beautify = expand for readability. Default: minify. Default: `"minify"`. |
| `indent` | integer | no | Spaces per indentation level in beautify mode (1-8). Default: 2. Default: `2`. |

Example arguments (verified):

```json
{
  "css": "body {\n  color: red;\n  margin: 0;\n}"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/ --header "Authorization: Bearer YOUR_API_KEY"
```

Then ask the client to call `findutils:css_minifier`. Full MCP reference: https://findutils.com/mcp/css-minifier/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
