Localsquash uses FFmpeg.wasm, a WebAssembly port of the industry-standard FFmpeg multimedia framework, to perform professional-grade compression directly in your browser with zero server-side processing. FFmpeg is widely used across streaming, editing, and transcoding workflows, which makes it a solid foundation for reliable local media processing.
Video compression uses H.264/AVC encoding with configurable CRF (Constant Rate Factor). CRF 18–23 gives near-lossless quality; CRF 28–35 maximizes compression. Compressed video exports as MP4 for broad compatibility, while trim-only exports keep the original container when possible.
Image compression supports WebP (30–50% better compression than JPEG), JPEG, and PNG with quality adjustable from 1–100%.
Audio compression offers AAC, MP3, and Opus with bitrates from 32kbps to 320kbps.
- FFmpeg WebAssembly
- The industry-standard FFmpeg multimedia framework compiled to WebAssembly, enabling professional-grade encoding to run entirely inside a web browser with zero server-side processing.
- CRF (Constant Rate Factor)
- A quality-based encoding parameter for H.264 video. Values range 0–51: CRF 18–22 is near-lossless, CRF 23–26 balances quality and size, CRF 28–35 maximizes compression.
- WebP
- A modern image format by Google offering 30–50% better compression than JPEG at equivalent visual quality. Supported by all modern browsers.
- AAC (Advanced Audio Coding)
- The successor to MP3, producing better audio quality at the same bitrate. Native codec for iOS, macOS, YouTube, and most streaming platforms.