Design
Convert Base64 encoded images back to image files with support for various formats
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/base64-to-image' \
-H 'Content-Type: application/json' \
-d '{"base64Data":"Paste your Base64 encoded image data here (with or without data URI prefix)...","outputFormat":"auto","autoDetectFormat":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/base64-to-image| Name | Type | Required | Description |
|---|---|---|---|
| base64Data | text | Yes | — |
| outputFormat | select | Yes | — |
| autoDetectFormat | checkbox | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-base64-to-image": {
"name": "base64-to-image",
"description": "Convert Base64 encoded images back to image files with support for various formats",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=base64-to-image",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "base64-to-image",
"arguments": {
"base64Data": "Paste your Base64 encoded image data here (with or without data URI prefix)...",
"outputFormat": "auto",
"autoDetectFormat": true
}
}
}Questions or issues? Contact [email protected]