Skip to content

Free Image Compressor & Converter

Compress JPEG, PNG, WebP & HEIC up to 95% — no upload, runs entirely in your browser.

Drop an image or browse

JPEG, PNG, WebP, HEIC, TIFF & more

Files stay on your device
Settings
FormatWebP for best compression
Quality82 is a solid default
82
Higher = larger file. JPEG uses perceptual scaling.
Resize1.000 = original size
Options
Compression
Progress0%

TL;DR

Free browser-based image compressor using FFmpeg WebAssembly. Accepts JPEG, PNG, WebP, HEIC, TIFF, BMP, GIF. Outputs WebP, JPEG, or PNG. Quality range 1–100. Typical reduction: 50–90%. Includes crop, resize, metadata stripping. Files never leave your device. No account or watermark. Works offline.

What Is Browser-Based WebP, JPEG & PNG Image Compression?

Browser-based image compression uses FFmpeg compiled to WebAssembly to convert and compress images entirely inside your browser — no upload, no server, no queue. Drop in a JPEG, PNG, WebP, HEIC, TIFF, BMP, GIF, or RAW file and choose your output format: WebP for maximum compression (30-50% smaller than JPEG according to Google’s Web.dev benchmarks), JPEG for broad compatibility, or PNG for lossless results. You control the quality level (1–100), whether to strip EXIF metadata, and optionally resize or crop before encoding. The compressed image is written to memory and downloaded directly — your original file is never touched and never leaves your device.

What Do Format, Quality, and Resize Settings Mean?

Output Format
WebP uses a modern predictive coding algorithm that typically produces files 25–50% smaller than JPEG at equivalent visual quality, and supports both lossy and lossless modes. JPEG uses DCT-based lossy compression — universally supported but larger than WebP. PNG is lossless and ideal for screenshots, logos, or any image with transparency.
Quality Slider
Quality controls how aggressively the encoder discards imperceptible detail. For WebP and JPEG, 75–85% is the practical sweet spot — indistinguishable from the original for most photos. Dropping to 60–70% is fine for thumbnails and small previews. Below 50% introduces visible artefacts. PNG ignores this slider since it is always lossless.
Resize & Crop
Pixel count has a quadratic effect on file size — halving both width and height cuts the pixel count to one-quarter, which typically reduces file size by 70–80% at the same quality setting. The crop tool lets you remove empty borders or reframe to a specific aspect ratio before encoding, so the encoder never wastes bytes on unwanted pixels.

How to Compress an Image Online in Four Steps

1

Drop or select your file

Drag any image — JPEG, PNG, WebP, HEIC, TIFF, BMP, GIF — onto the upload area, or click to browse. HEIC files from iPhone are automatically converted to a previewable format before encoding.

2

Resize or crop (optional)

Scale down with the resize slider or enter exact pixel dimensions. Use the crop overlay to trim borders or reframe to a standard aspect ratio. The live preview updates instantly as you adjust.

3

Choose output format and quality

Pick WebP for the smallest file, JPEG for maximum compatibility, or PNG for lossless output. Set quality to 75–85% for photos, or enable lossless mode for pixel-perfect preservation.

4

Compress and download

Click “Compress Image”. FFmpeg.wasm encodes the file locally and the result downloads automatically. The size reduction percentage is shown alongside the output file size.

Why Is WebP Smaller Than JPEG and PNG?

WebP is 25-50% smaller than JPEG at equivalent visual quality. Developed by Google as a successor to both JPEG and PNG, WebP’s lossy mode uses a block-based prediction algorithm derived from VP8 video compression, which models how the human visual system perceives contrast and colour. For a 3 MB JPEG photo, converting to WebP at 80% quality typically produces a file in the 1.2–1.8 MB range with no visible difference on screen.

WebP lossless mode uses a completely different algorithm (LZ77 + Huffman coding on prediction residuals) that beats PNG by 20–30% on typical photographs. However, for images with large areas of flat colour — like UI screenshots or logos — PNG often compresses more predictably, making it the safer choice when pixel-perfect reproduction is required. JPEG remains the best option when you need the output to open in software that does not yet support WebP.

Image Compression FAQ — Common Questions Answered

How to Get the Smallest Image File Size

Resize to the display size before compressing

If an image will be displayed at 800×600 px on screen, saving it at 4000×3000 px and relying on the browser to downscale wastes 25× the bandwidth. Always resize to the largest size the image will actually be rendered at. This single step typically saves more than any quality setting adjustment.

Use WebP for web, JPEG for print and legacy software

WebP is the default for a reason — it is smaller and supported everywhere modern. However, some print bureaus, CMS platforms, and email clients still expect JPEG. When in doubt about the destination, generate both: WebP for web delivery and a JPEG fallback at 85% for everything else.

Strip metadata for sharing, keep it for archival

EXIF data is valuable for your personal photo library (camera settings, date, location) but unnecessary — and potentially privacy-exposing — when sharing publicly. Enable “Strip Metadata” for images going to social media or email, and disable it when archiving your originals.

Screenshots compress better as PNG than JPEG

Screenshots contain flat colour, sharp text edges, and repeating UI patterns that lossless PNG handles extremely well. Converting a screenshot to JPEG introduces blurring and ringing artefacts around text. If the screenshot has photographic content embedded in it, WebP lossless is a good middle ground.

How to Convert HEIC to JPG on Mac (and PNG Too)

iPhones and iPads save photos in HEIC (High Efficiency Image Container) format by default since iOS 11. While HEIC produces smaller files than JPEG, it isn't universally supported — many Windows apps, web platforms, and older software can't open HEIC files. To convert HEIC to JPG on Mac, simply upload your .heic file to LocalSquash and select JPEG as the output format. The conversion runs entirely in your browser — no Preview workarounds, no Automator scripts, and no third-party Mac app required.

Need to convert HEIC to PNG instead? Select PNG as the output format for lossless, pixel-perfect conversion with transparency support. PNG is ideal when you need to edit the image further in Photoshop, Figma, or other design tools without any generation loss. Both HEIC to JPG and HEIC to PNG conversions preserve the original resolution and colour profile.

HEIC → JPG

Best for sharing iPhone photos via email, WhatsApp, or social media. JPEG is supported by every device and platform. Quality slider lets you balance file size vs. detail.

HEIC → PNG

Best for design work, editing, and archival. PNG is lossless and supports transparency. Larger files than JPEG but zero quality loss during conversion.

How to Compress PNG Files Online

PNG files are lossless by design, which means they preserve every pixel but often result in large file sizes — especially for photographs. To compress a PNG file effectively, you have two approaches: keep PNG format and reduce dimensions (lossless, smaller pixel count = smaller file), or convert to WebP lossless for 20-30% smaller files at identical quality. LocalSquash lets you compress PNG online using either method, entirely in your browser.

For screenshots, diagrams, and images with text, PNG remains the best format because its lossless compression avoids the blurring artefacts that JPEG introduces around sharp edges. For photographs stored as PNG, converting to WebP at 80-85% lossy quality typically reduces file size by 80-90% with no visible difference. The “Strip Metadata” option removes embedded colour profiles and other headers that add 10-50 KB to each file.

Convert JPEG to JPG — Are They the Same?

JPEG and JPG are the exact same format. The three-letter .jpg extension exists because early versions of Windows (DOS, Windows 3.1) required three-character file extensions, while macOS and Linux allowed .jpeg from the start. Modern operating systems treat both extensions identically — there is no quality, compression, or compatibility difference. To convert JPEG to JPG, you can simply rename the file extension. If you want to simultaneously compress the image, upload it to LocalSquash, select JPEG output, and the downloaded file will be a fully optimised .jpeg that any system, browser, or app recognises.

Need to Compress Video Too?

LocalSquash also includes a free online video compressor that uses the same browser-based FFmpeg engine. Compress MP4, MOV, AVI, MKV, and WebM files by up to 95% with H.264 encoding — no upload required. Trim, crop, adjust CRF and resolution, all without your footage leaving your device.

Compress a video