Canvas
The image fits within both limits without upscaling. The browser encodes JPEG and WebP with the selected quality, and PNG uses lossless encoding.
Preparing your comprehensive developer toolkit
Practical Guide
Compress and convert images to JPEG, WebP or PNG. Set separate width and height limits and compare both dimensions and file sizes.
Image compression reduces the bytes needed to store an image. Reducing dimensions and choosing an encoding format can both affect the result.
The image fits within both limits without upscaling. The browser encodes JPEG and WebP with the selected quality, and PNG uses lossless encoding.
The output retains the source proportions while respecting the tighter limit. An already small image is not enlarged.
Compare JPEG and WebP output at the same dimensions before choosing an asset for a web page.
No. File size depends on the source, dimensions, format and quality. JPEG uses a white background for transparency, and animated inputs export a single frame.
The tool processes your input in the current browser session.
Canvas image encoders and quality options.
Browser image formats and their characteristics.
Open the tool to try these features.