Whitespace Normalizer
Replace consecutive spaces/tabs with single space and trim line start/end whitespace
API Documentation
Request Endpoint
POST /en/api/tools/whitespace-normalizer
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | - |
| normalizeSpaces | checkbox | No | Replace consecutive spaces with a single space |
| normalizeTabs | checkbox | No | Replace tab characters with spaces |
| trimLines | checkbox | No | Remove whitespace from the beginning and end of each line |
| preserveLineBreaks | checkbox | No | Keep original line breaks (when disabled, collapses multiple consecutive line breaks) |
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-whitespace-normalizer": {
"name": "whitespace-normalizer",
"description": "Replace consecutive spaces/tabs with single space and trim line start/end whitespace",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=whitespace-normalizer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]