No upload, 100% local, no account

Article

Optimize website media for speed and Core Web Vitals

Images account for roughly 40 percent of a typical web page's total weight, more than any other resource type, and video adds substantially more on media-heavy pages. Getting them right is the single highest-leverage step you can take for loading speed, Core Web Vitals scores, and search ranking. Best of all, none of it requires complex software or a remote server, and your files never leave your device.

Pick the right format before anything else

Format choice matters more than any quality slider. For photographs on a web page, WebP is the right default: it is 25 to 35 percent smaller than JPEG at the same visual quality and every modern browser supports it. AVIF compresses further still, up to 50 percent better than JPEG, at the cost of slower encoding. Use AVIF for hero images and product photos you compress once; use WebP for anything you process in batches or need quickly. PNG belongs only where you need lossless accuracy or a transparent background. SVG is the only sensible choice for logos, icons and illustrations: it scales to any size and often weighs a few kilobytes against hundreds for a rasterized equivalent.

FeatureGood (Pass)Needs ImprovementPoor (Fail)
LCP (Largest Contentful Paint)<= 2.5 s2.5 s - 4.0 s> 4.0 s
INP (Interaction to Next Paint)<= 200 ms200 ms - 500 ms> 500 ms
CLS (Cumulative Layout Shift)<= 0.100.10 - 0.25> 0.25
Target Cohort Percentile>= 75th percentile of visitsBetween 75th and 90th< 75th percentile

Compress images without visible quality loss

Start by resizing to the actual display dimensions: a hero image that displays at 1280 pixels wide does not need 4000 pixels of data. Resize first, then compress. For photographs, quality 80 in WebP or JPEG is the practical floor below which casual viewers start to notice, so aim for 75 to 85 and look at the output at full zoom before publishing. For graphics with text and flat areas, PNG lossless or SVG preserves sharpness that lossy formats smear. The image compressor on this site handles all of these formats, runs entirely in your browser, and applies the same algorithms as dedicated desktop tools.

FeatureHero Image (LCP Element)Inline / Content ImagesVideo Poster Element
Recommended FormatAVIF / WebPWebP / SVGWebP / JPEG
Target Weight Budget<= 100 - 150 KB<= 30 - 60 KB<= 40 - 80 KB
Loading & Priority Attributesfetchpriority="high" · loading="eager"loading="lazy" · decoding="async"preload="none" + poster
CLS Prevention AttributesExplicit width + height attributesaspect-ratio CSS containerReserved layout dimensions

Convert video for the web without uploading it

Background loops and embedded video are where web media optimization often falls short. An MP4 with H.264 plays everywhere, and WebM is the royalty-free alternative supported by every modern browser. This site's video converter encodes WebM with VP8, which sits in the same compression class as H.264, so the container switch alone will not shrink the file: the gain is a fully royalty-free codec chain and native alpha-channel support, not a size cut. The practical approach is to convert once to WebM, serve it as the preferred source in a video element, and keep the MP4 as fallback for older browsers. The conversion runs inside your browser via FFmpeg compiled to WebAssembly: nothing is uploaded, and files up to 500 MB on desktop (150 MB on mobile) convert without a queue. For inline background video, also consider the video trimmer to cut out dead seconds before encoding: duration is the biggest driver of file size.

Inline assets: base64 and SVG

Very small images, icons and favicons embedded directly in HTML or CSS as base64 strings eliminate one network round-trip per asset. This makes sense for assets under about 2 KB that appear on every page, such as a logo sprite or a loading indicator. Larger assets should stay as separate files because base64 encodes 33 percent larger than the binary, and browsers cache file references but not inline data independently. The SVG optimizer removes editor cruft from exported SVGs without touching the visual output. The Image to Base64 converter generates the ready-to-paste data URI in your browser.

Trade-off between a separate cached file requiring an extra HTTP request and a Base64 inline asset that is about 33% larger and re-sent with every page
External cached asset versus inline Base64 data URI

Serve the right size and load it first

Two delivery details matter as much as the files themselves. The first is responsive sizing. With a srcset list of width descriptors (image-400.webp 400w, image-800.webp 800w and so on) the browser picks the smallest file that still covers the screen, multiplying the CSS width by the device pixel ratio before it requests anything. A phone with a 390px wide layout and a 3x screen needs about 1170 pixels, so it fetches the 1200w version and skips the desktop original. The second is priority. Browsers run a preload scanner that reads ahead and starts downloading images before the main parser reaches them; adding fetchpriority="high" to your largest above-the-fold image tells the browser to pull it first, which is usually what decides your Largest Contentful Paint.

Bars comparing a 4000 pixel camera original with the 1280 pixel width the layout displays it at, showing resizing saves more than quality settings
A camera photo against the width the layout displays it atA hero image shown at 1280 pixels wide does not need the 4000 pixels a camera captured. Resizing to the displayed width removes most of the excess before any quality setting is touched.

Tools in this article

Frequently asked questions

Does image compression affect my search ranking?

Google uses Core Web Vitals as a ranking signal, and Largest Contentful Paint is almost always an image or a video poster. A page whose hero image loads in under a second scores better than one where it takes three seconds. Compression and the right format directly affect this metric, so yes, image optimization has a measurable SEO impact. The effect is strongest on mobile, where connections are slower and the penalty for heavy images is larger.

Why process media locally instead of using a web service?

Most online media tools require uploading your files to a remote server, which takes time, consumes bandwidth, and means a copy of your file exists on infrastructure you do not control. The tools on this site run entirely in your browser: your images and videos are processed on your device and the output is downloaded directly. There is no account, no upload wait, and nothing about your files is ever sent to a server.

Sources