Filename Sanitizer
Clean and sanitize filenames by removing illegal characters for Windows, Linux, and Mac
API Documentation
Request Endpoint
POST /en/api/tools/filename-sanitizer
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| filename | text | Yes | - |
| replacementChar | text | No | Character to replace illegal characters with |
| trimWhitespace | checkbox | No | Remove leading and trailing whitespace |
| trimDots | checkbox | No | Remove leading and trailing dots (can cause issues in some systems) |
| maxLength | number | No | Maximum filename length (0 = no limit, Windows typically limits to 255) |
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-filename-sanitizer": {
"name": "filename-sanitizer",
"description": "Clean and sanitize filenames by removing illegal characters for Windows, Linux, and Mac",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=filename-sanitizer",
"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]