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

Key Facts

Category
Media
Input Types
file, number, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Easily convert your MP4 video files into high-quality animated GIFs with our intuitive online tool, designed to give you full control over frame rate, duration, and color optimization.

When to Use

  • Creating short, shareable reaction clips from longer video files.
  • Generating lightweight animations for web content or social media posts.
  • Extracting specific highlights from a video without needing complex editing software.

How It Works

  • Upload your MP4 video file (up to 50MB).
  • Adjust settings like frame rate, start time, and duration to capture the perfect segment.
  • Fine-tune the output quality, color palette, and dithering options for the best visual results.
  • Click convert to process your file and download your new GIF.

Use Cases

Converting product demonstration clips for email marketing campaigns.
Turning funny video moments into custom memes for social media.
Creating quick visual tutorials or software walkthroughs for documentation.

Examples

1. Social Media Reaction GIF

Content Creator
Background
A creator has a 2-minute interview video and wants to isolate a 5-second funny reaction.
Problem
The original file is too large and in the wrong format for a quick social media post.
How to Use
Upload the video, set the start time to the reaction point, and set the duration to 5 seconds.
Example Config
startTime: 45, duration: 5, fps: 15
Outcome
A crisp, 5-second GIF ready for immediate sharing.

2. Website Feature Preview

Web Developer
Background
A developer needs to show a specific UI interaction on a landing page without embedding a heavy video player.
Problem
The video is too high-resolution and creates a slow page load time.
How to Use
Upload the screen recording, set the width to 600px, and enable color optimization.
Example Config
width: 600, optimize: true, colors: 128
Outcome
A lightweight, optimized GIF that demonstrates the feature without impacting site performance.

Try with Samples

image, video, file

Related Hubs

FAQ

Is there a limit on the video length?

Yes, the tool supports a maximum duration of 30 seconds for the generated GIF.

Can I change the dimensions of the GIF?

Yes, you can specify custom width and height values in pixels, up to a maximum of 2048px.

How does color optimization affect the file?

Enabling color optimization and adjusting the palette size helps reduce the final file size while maintaining visual clarity.

What is the maximum file size for uploads?

You can upload MP4 files up to 50MB in size.

Does this tool support dithering?

Yes, you can enable dithering to achieve smoother color transitions in your GIF.

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]