Compress Video Online
Shrink MP4 video size using in-browser hardware acceleration. No upload, no watermark.
Related Video Tools
About this video compression tool
Select an MP4 or MOV video file, choose a target size or quality preset (High, Medium, or Low), and click Compress Video. The video stream is re-encoded on your device using hardware-accelerated WebCodecs, while the source audio track is passed through untouched to preserve original sound fidelity without any cloud uploads or watermarks.
Reducing video file sizes for email attachments, messaging apps, and web hosting traditionally forced a compromise between slow cloud upload queues and lossy audio degradation. This tool uses native WebCodecs VideoDecoder and VideoEncoder APIs directly within your browser tab to re-encode H.264 video at your chosen bitrate. Because processing runs on your local GPU or hardware media engine, compression finishes rapidly without sending a single byte across the internet.
Step by step
- 1Select source videoChoose an MP4 or MOV file up to 2 GB. The demuxer reads the movie headers, calculates current video and audio bitrates, and verifies that the video track is encoded in H.264/AVC.
- 2Choose compression modeSelect a quality preset or enter an explicit target file size in megabytes. The calculator estimates the required video bitrate while reserving bandwidth for the untouched audio track.
- 3Hardware-accelerated re-encodingClick Compress Video. WebCodecs decodes frames into GPU textures and re-encodes them through hardware H.264 pipelines with strict backpressure to prevent browser memory exhaustion.
- 4Download optimized MP4Save the compressed video file immediately. The tool packages the re-encoded video packets and untouched audio packets into a compliant MP4 container with updated duration headers.
How WebCodecs hardware re-encoding works
Unlike older web video tools that rely on slow software WebAssembly builds of FFmpeg, this tool leverages modern browser WebCodecs APIs (VideoDecoder and VideoEncoder). WebCodecs interfaces directly with your system graphics hardware (Apple Silicon Media Engine, Intel Quick Sync, Nvidia NVENC, or AMD VCE) through the operating system. Raw video samples are decoded directly into VideoFrame objects and passed to the hardware encoder at precise bitrates. This delivers encoding speeds comparable to desktop editing software while executing entirely inside a standard browser sandbox.
Untouched audio passthrough for flawless sound
Most online video compressors transcode both video and audio streams simultaneously, which wastes processing cycles and often introduces noticeable audio compression artifacts or synchronization drift. This tool isolates the audio track during demuxing and passes the original compressed audio packets (such as AAC or MP3) directly through into the output container without touching or re-encoding them. You get substantial video size reduction without sacrificing any acoustic fidelity or altering sound dynamics.
Dynamic AVC profile and level selection
H.264 (AVC) encoders require a valid profile and level configuration string (for example, avc1.42001e for Baseline 3.0 up to avc1.640033 for High 5.1). Specifying an invalid or mismatched level causes hardware encoders to reject the configuration. Our encoding engine inspects the source video resolution and frame rate to automatically assign the appropriate AVC profile and level, ensuring maximum hardware compatibility and flawless playback across mobile devices, smart TVs, and legacy desktop media players.
Bounded queue backpressure and memory safety
High-speed video decoding can rapidly flood browser memory if decoded frames accumulate faster than the hardware encoder can compress them. An unconstrained decode loop decoding 1080p frames at 60 fps would allocate gigabytes of uncompressed RGBA pixel buffers in seconds, crashing the browser tab. This engine implements backpressure monitoring via encoder.encodeQueueSize and the ondequeue callback. Decoding pauses whenever the queue exceeds 4 frames and resumes only when the hardware encoder has drained the backlog, keeping RAM usage strictly bounded.
Zero upload security guarantee
Every response from this site is served with a Content Security Policy whose connect-src directive is set to none. That is not a promise in marketing copy; it is an instruction to your browser, and the browser is the one enforcing it. While this page is open it cannot open a connection to anywhere — not to this site, not to anyone else — so there is no path by which your document could be uploaded, not by a bug, not by a future change, not by a script that should not be here. e2e/egress-proof.spec.ts asserts the served header and then tries to send data out by every route a page has and requires each attempt to be refused, and it runs on every build.
The second half of the guarantee is that the code has nowhere to send anything from. lib/tools/local-source-policy.test.ts reads every source file under lib/tools, workers, components and app on every test run and fails the build if any of them contains fetch, XMLHttpRequest, WebSocket, EventSource, sendBeacon or a peer connection, or even a remote address written down in a comment. A tool here cannot acquire an upload by accident, because the file that would have to contain one cannot be committed.
Client-side processing limits
Computations run directly on your own device using WebAssembly, Web Workers, and modern browser APIs including Web Crypto and TextDecoder. There are no server queues, no background telemetry, and no temporary cloud files created. Large operations remain responsive by offloading heavy parsing and conversion tasks to dedicated worker threads, ensuring the browser UI never freezes during intensive document and data processing tasks.
Questions people ask
- Does compressing a video reduce its visual quality?
- Compression works by lowering the video bitrate and discarding imperceptible high-frequency visual data. High preset preserves nearly all visual sharpness, while Low preset produces the smallest file size suitable for messaging and quick previews.
- Why is audio quality completely preserved?
- The tool extracts the original compressed audio bitstream (such as AAC) and packages it directly into the output MP4 container without re-encoding. This ensures 100% original audio fidelity, eliminates transcoding artifacts, and avoids audio drift.
- Why are HEVC and AV1 videos not supported for compression?
- Browsers provide mature hardware WebCodecs encoding support for H.264 (AVC). HEVC and AV1 encoding requires specialized licensing and hardware capabilities that are not universally exposed to browser sandboxes. We explicitly refuse HEVC and AV1 up front.
- Will the compressed video have a watermark?
- No. This tool never applies watermarks, brand logos, or visual overlays. The output is a clean, compliant MP4 file containing solely your own compressed video and original audio streams.
- Are my video files uploaded to any external server?
- No. All video decoding and encoding happens locally on your computer using hardware acceleration under strict Content Security Policies that prohibit external network requests.