Categories

Image to Base64 Converter

Convert images to Base64 encoding with support for various formats and quality settings

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: image/jpeg, image/png, image/webp, image/gif

API Documentation

Request Endpoint

POST /en/api/tools/image-to-base64

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"
  }
}
Text: Text

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]