Compressor.js Next
Docs
GitHub
Explore
About
Compressor.js Next
JavaScript image compressor and converter
Playground
Drop image here or
browse…
Options
strict
checkOrientation
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' }}
lastModifiedDate:
{{ input.lastModifiedDate || 'N/A' }}
name:
{{ input.name || 'N/A' }}
type:
{{ input.type || 'N/A' }}
size:
{{ prettySize(input.size) }}
Output image
(compressed image)
Download
lastModified:
{{ output.lastModified || 'N/A' }}
lastModifiedDate:
{{ output.lastModifiedDate || '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