Compressor.js Next
Docs
GitHub
Explore
About
Compressor.js Next
JavaScript image compressor and converter
Playground
Drop image here or
browse…
Options
strict
retainExif
maxWidth
maxHeight
minWidth
minHeight
width
height
resize
none
contain
cover
quality
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
NaN
mimeType
auto
image/jpeg
image/png
image/webp
convertTypes
convertSize
Input image
(original image)
Download
lastModified:
{{ input.lastModified || 'N/A' }}
name:
{{ input.name || 'N/A' }}
type:
{{ input.type || 'N/A' }}
size:
{{ prettySize(input.size) }}
Output image
(compressed image)
Download
Canvas data is unreliable (e.g., due to browser fingerprinting resistance). Compression was skipped. JPEG images are returned with EXIF stripped (unless retainExif is enabled); other formats are returned unchanged.
lastModified:
{{ output.lastModified || 'N/A' }}
name:
{{ output.name || 'N/A' }}
type:
{{ output.type || 'N/A' }}
size:
{{ prettySize(output.size) }}
({{ ((1 - (output.size / input.size)) * 100).toFixed(2) }}% off)
Comparing images