Convert JPG to WEBP
Turn JPG photos into WEBP. Same size, turned upright by the orientation tag, with CMYK made RGB.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JPG files on the dialor turn it to pick what to do
A WebP at the same size as your JPG.The picture keeps its width and height. It is encoded again at quality 90 unless you choose otherwise.
What you get
One WebP file with the same width and height as the JPG. If the JPG carries an orientation tag, the picture is turned upright, so it shows the way you see it in a photo app.
A CMYK JPG is made RGB. The conversion is lossy again at quality 90, so the result is not pixel for pixel the same as the JPG.
Quality and size
Set Quality to a value from 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Turn on Lossless to encode without losing anything where the format can. The pixels then match the input, and the file is much bigger than a lossy one.
Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller.
Resize, rotate, strip
Set Max width or Max height to shrink a large picture while keeping its shape. A picture that is already smaller stays as it is, so nothing is enlarged. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees. To resize without changing format, see resize JPG.
Turn on Strip metadata to remove EXIF data, such as the camera, the time, the GPS position and the color profile. The file gets a little smaller and says less about where it came from.
When it fails
A file that cannot be parsed stops the conversion with
input_corrupted. The JPG is damaged or is not a readable JPG.
JPG and WEBP.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · lossless
Lossless
Encodes without losing anything where the format can. The result is identical to the input in pixels or samples, and much bigger than a lossy one.
- 03 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 05 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90 - 06 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 07 · strip
Strip metadata
Removes EXIF and other metadata, such as the camera, the time and the GPS position a photo was taken at, and the color profile. The file gets a little smaller and says less about where it came from.
The formats
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
WebP
Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.
- Extensions
- .webp
- MIME type
- image
/webp - Kind
- Images
In your code.The same JPG to WEBP conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.webp$ cv convert photo.jpg photo.webpQuestions.What people ask about JPG to WEBP.
Not exactly. The conversion is lossy again at quality 90 unless you change Quality or turn on Lossless. Lossless makes the pixels identical to the input.
No, the width and height stay the same unless you set Max width or Max height. These only shrink pictures, never enlarge them.
The conversion turns the picture by the orientation tag in the JPG. Set Rotate if you want it turned further.
Yes. Turn on Strip metadata to remove EXIF data, including the GPS position the photo was taken at.