Image to Base64 Converter
Convert images to Base64 encoding with support for various formats and quality settings
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | - |
| outputFormat | select | Yes | - |
| includeDataUri | checkbox | No | - |
| maxWidth | number | No | - |
| maxHeight | number | No | - |
File type parameters need to be uploaded first via POST /upload/image-to-base64 to get filePath, then pass filePath to the corresponding file field.
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-image-to-base64": {
"name": "image-to-base64",
"description": "Convert images to Base64 encoding with support for various formats and quality settings",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-to-base64",
"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.
Supports URL file links or Base64 encoding for file parameters.
If you encounter any issues, please contact us at [email protected]