Categories

Convert MP4 to GIF

Convert MP4 videos to GIF format with 30-second limit and customizable quality settings

Click to upload file or drag and drop file here

Maximum file size: 50MB Supported formats: video/mp4, video/x-m4v

Target width in pixels (max 2048)

Target height in pixels (max 2048)

Animation frame rate (1-30 fps)

Start conversion from this time (seconds)

Maximum 30 seconds for GIF

Higher quality = larger file size

More colors = better quality but larger file

Use optimized color palette for better compression

Apply dithering for smoother color transitions

API Documentation

Request Endpoint

POST /en/api/tools/mp4-to-gif

Request Parameters

Parameter Name Type Required Description
videoFile file (Upload required) Yes -
width number No Target width in pixels (max 2048)
height number No Target height in pixels (max 2048)
fps number No Animation frame rate (1-30 fps)
startTime number No Start conversion from this time (seconds)
duration number No Maximum 30 seconds for GIF
quality number No Higher quality = larger file size
colors number No More colors = better quality but larger file
optimize checkbox No Use optimized color palette for better compression
dithering checkbox No Apply dithering for smoother color transitions

File type parameters need to be uploaded first via POST /upload/mp4-to-gif to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "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)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-mp4-to-gif": {
      "name": "mp4-to-gif",
      "description": "Convert MP4 videos to GIF format with 30-second limit and customizable quality settings",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=mp4-to-gif",
      "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]