Video Compressor

Compress video files by reducing file size while maintaining quality using CRF, resolution scaling, and codec optimization

Click to upload file or drag and drop file here

Maximum file size: 500MB Supported formats: video/*

0 23 51

Lower = better quality, larger file. 18-28 is recommended (23 is default for H.264)

10 100 100

Scale down resolution to reduce file size further (100% = original size)

32 128 320

Audio quality (lower = smaller file, 128kbps is standard)

Remove audio track completely for maximum compression

Key Facts

Category
Images, Audio & Video
Input Types
file, range, select, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The Video Compressor is a powerful utility designed to reduce video file sizes while preserving visual quality. By adjusting the Constant Rate Factor (CRF), scaling resolution, and optimizing audio bitrates, you can easily prepare videos for web publishing, email attachments, or storage optimization without losing clarity.

When to Use

  • When you need to reduce large video files to meet strict email, messaging, or web upload size limits.
  • When optimizing video assets for website performance to ensure faster loading times and lower bandwidth consumption.
  • When archiving large video libraries and wanting to save disk space using efficient codecs and resolution scaling.

How It Works

  • Upload your video file (up to 500MB) in formats such as MP4, WebM, MKV, AVI, or MOV.
  • Adjust the compression parameters, including the Constant Rate Factor (CRF) for quality control, compression speed preset, and resolution scale percentage.
  • Optionally configure audio settings by lowering the audio bitrate or removing the audio track entirely to maximize space savings.
  • Select your preferred output format and run the compressor to download the optimized video file.

Use Cases

Preparing high-definition MP4 recordings for email attachments by scaling down the resolution and increasing the CRF.
Optimizing website background videos by converting them to WebM format and removing the audio track to minimize page load times.
Compressing raw camera footage to MKV or MP4 using a slow preset to maximize storage space on external drives.

Examples

1. Optimizing a Website Background Video

Web Developer
Background
A developer needs to add a 45MB MP4 video as a hero background on a landing page, but it is causing slow page load speeds.
Problem
The video file is too large and contains unnecessary audio, slowing down mobile visitors.
How to Use
Upload the MP4 video, set the Resolution Scale to 75%, select WebM as the output format, check 'Remove Audio', and set the CRF to 25.
Example Config
videoFile: 'hero.mp4', scalePercent: 75, outputFormat: 'webm', removeAudio: true, crf: 25
Outcome
The video is compressed to under 8MB in WebM format with no audio track, significantly improving landing page load times.

2. Compressing a Lecture Recording for Email Sharing

Online Educator
Background
An instructor wants to email a 150MB MP4 lecture recording to students, but the email client limits attachments to 25MB.
Problem
The video file size exceeds the email attachment limit while retaining unnecessary high-fidelity audio and resolution.
How to Use
Upload the lecture video, set the CRF to 28, change the Resolution Scale to 50%, and lower the Audio Bitrate to 64kbps.
Example Config
videoFile: 'lecture.mp4', crf: 28, scalePercent: 50, audioBitrate: 64
Outcome
The video file size is reduced to 22MB, allowing it to be successfully attached and sent via email.

Try with Samples

audio, video, file

Related Hubs

FAQ

What is CRF and how does it affect my video?

CRF stands for Constant Rate Factor. Lower values yield higher quality and larger files, while higher values (up to 51) reduce file size but lower visual quality.

Can I compress a video and convert its format at the same time?

Yes, you can choose from output formats like MP4, WebM, MKV, AVI, and MOV during the compression process.

How does the compression speed preset affect the output?

Slower presets take longer to process but produce better compression efficiency, resulting in smaller file sizes for the same quality level.

Is it possible to completely remove audio from the video?

Yes, you can check the 'Remove Audio' option to strip the audio track and achieve maximum file size reduction.

What is the maximum file size I can upload for compression?

The tool supports video file uploads up to 500 MB.

API Documentation

Request Endpoint

POST /en/api/tools/video-compressor

Request Parameters

Parameter Name Type Required Description
videoFile file (Upload required) Yes -
crf range No Lower = better quality, larger file. 18-28 is recommended (23 is default for H.264)
preset select No -
scalePercent range No Scale down resolution to reduce file size further (100% = original size)
outputFormat select No -
audioBitrate range No Audio quality (lower = smaller file, 128kbps is standard)
removeAudio checkbox No Remove audio track completely for maximum compression

File type parameters need to be uploaded first via POST /upload/video-compressor 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-video-compressor": {
      "name": "video-compressor",
      "description": "Compress video files by reducing file size while maintaining quality using CRF, resolution scaling, and codec optimization",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=video-compressor",
      "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]