JFIF to WEBP

Turn JFIF pictures into smaller WebP files in your browser, many at once, with nothing uploaded.

Your pictures are turned into WebP files in your browser. They are not uploaded.

JFIF files (.jfif), and the same kind under the endings .jpg and .jpeg. One picture or many at once. Drop them here, or paste copied files with Ctrl+V (⌘V on a Mac).

How the WebP is to be

These choices are remembered on this device and nowhere else. Your pictures never are.

The files themselves under the ending .jpg, with nothing in them changed, for when a .jpg is all you need.

Good to know

A JFIF file (.jfif) is a JPG picture under another ending: JFIF is the name of the layout that JPG files have. On some Windows computers a web browser saves JPG pictures from web pages with this ending, and not every program opens it. Where only the ending is in the way, the same file named .jpg is enough: "Save it as a .jpg instead" under a picture hands that out, not a byte of it changed. Turn it into a WebP when you want a smaller file for a web page.

A WebP by a quality number is made the way a JFIF is, as every JPG is: fine detail the eye hardly misses is left out, a little more of it than the JFIF already left out. Each card says how far the WebP is from the JFIF, and the larger look lets you flip between the two and shows where they differ. A WebP without loss keeps every pixel of the JFIF exactly, and takes several times the room.

A WebP of a photo is usually much smaller than the JFIF. It is not always: a JFIF that was saved coarsely, turned into a WebP at a high quality number, comes out larger than it was, because the WebP then stores the JFIF's own roughness with care. The card says so when it happens. To be sure of a smaller file, ask for a share of the JFIF's own size.

A WebP by quality stores color at half the sharpness of light and dark, as many JFIF files do too. Thin colored lines and small colored letters can come out a little duller; without loss they stay as they are. A JFIF's color profile goes along when it changes what is shown, so the WebP shows the same colors in programs that read profiles.

The WebP is made by your browser's own WebP writer. A WebP cannot be wider or taller than 16,383 pixels, and it has screen colors only, no print colors. By a quality number or to a file size the page takes pictures of up to 190 megapixels; without loss, any a WebP can hold. Turning a JFIF into a WebP does not make it sharper than the JFIF is.

Rate this tool

How useful was this tool?

JFIF to WebP

To convert JFIF to WebP, drop your .jfif pictures on the box Choose JFIF pictures to turn into WebP, or click it to pick them from your device. Its small print reads: “JFIF files (.jfif), and the same kind under the endings .jpg and .jpeg. One picture or many at once. Drop them here, or paste copied files with Ctrl+V (⌘V on a Mac).”

The work starts by itself, with the line Turning the picture into a WebP… under the box. Each picture then has a card saying how large its WebP came out, and a Save the WebP button with the new name, such as (saved-from-web.webp). After a click the page says Saved. The box now reads Choose other JFIF pictures; new files take the place of the old ones.

The WebP is made by your browser, on your device. Above the box the page says: “Your pictures are turned into WebP files in your browser. They are not uploaded.” The live tests checked it: through a whole run, every save and both ZIPs included, the page posted nothing to the site, and the tool asked nothing of any other site.

What a JFIF file is, and when a WebP is the answer

Nothing about the picture in a .jfif file is special: it is a JPG. JPEG File Interchange Format, JFIF for short, is the name of the layout JPG files are written in, so a .jfif renamed to .jpg is an ordinary .jpg file.

Where it comes from: save a picture from a web page, and on some Windows computers the file lands as .jfif. That is reported for Chrome and Firefox on Windows 10, and said to come from a Windows setting that pairs the picture type image/jpeg with the .jfif ending. As Good to know puts it, “not every program opens it.”

So there are two things you may be after, and this page does both:

  • A smaller file for a web page: turn it into a WebP. In the page’s words: “Turn it into a WebP when you want a smaller file for a web page.”
  • A file that a program or a form accepts: nothing needs converting. Each card offers Save it as a .jpg instead (see “Only need a .jpg?” below).

Which files go in

The page tells a JFIF by its first bytes, not by its name. In testing, files ending in .jfif, .JFIF, .jfi, .jif, .jpe, .jpg and .jpeg were all taken. A JPG under a wrong ending is taken as well, with a note. The test file jpg-named.png got “The name of the file ends in .png, but the file is a JPG, the kind a JFIF is.”

You can choose up to 100 pictures at once; the page makes them two at a time. Files you copied in your file manager can be pasted anywhere on the page with Ctrl+V.

Three ways to make the WebP

The card How the WebP is to be holds one set of choices for every picture on the page. How it is made offers:

  • By a quality number, where the page starts: the usual way for a web page.
  • To a file size, when a site or a form sets a limit.
  • Without loss: every pixel exactly as in the JFIF, when nothing may change.

Under it come Colors and two tick boxes for the camera’s details. Change any choice, and a moment later every WebP on the page is made again. “These choices are remembered on this device and nowhere else. Your pictures never are.”

JFIF vs WebP: how much smaller the WebP is

Usually far smaller. Every test JFIF turned at quality 80, where the page starts, came out smaller: by 46% to 90%, most of them by 60% or more. In Chrome 158, a phone photo of 2.0 MB became 488.1 KB (75% smaller), and a 56.1 KB picture saved from a web page became 20.2 KB (64% smaller).

It isn’t always smaller. As Good to know explains, a JFIF that was saved coarsely, turned at a high quality number, comes out larger, “because the WebP then stores the JFIF's own roughness with care.” A progressive JFIF of 82.6 KB, saved at quality 85, turned at quality 95, gave The WebP: 108.6 KB, 31% larger than the JFIF. Quality 95. and the note:

At quality 95 this WebP takes more room than the JFIF it was made from: a WebP this fine stores the JFIF's own roughness with care, and that takes room. At quality 75 it would be 36.2 KB, 56% smaller than the JFIF.

That figure comes from a second WebP made at 75. When the quality is 75 or lower, or 75 would not be smaller either, the note ends “Lower the quality, or ask for a share of the JFIF's own size.” instead.

Which quality to choose for a web page

Quality is a slider from 1 to 99 that starts at 80. The hint under it:

A lower number gives a smaller file and a picture farther from the JFIF. Each card says how far. Above 90, a WebP often comes out larger than the JFIF it is made from.

You don’t have to try numbers one by one. Under each picture, Show the size at other qualities makes its WebP at 60, 70, 80 and 90, with your Colors and camera-detail choices, and lists the sizes. While it works, the line reads Making it at four qualities…. For the web picture (1,200 × 800 pixels, 56.1 KB, saved at quality 85) it gave:

The WebP at other qualities: 16.7 KB at 60, 17.2 KB at 70, 20.2 KB at 80, 34.4 KB at 90. The JFIF has 56.1 KB.

Each size in that line is a link, and under it the page says “Click a size to set Quality to its number. That goes for every picture on the page.” A click on 16.7 KB at 60 set Quality to 60, every WebP on the page was made again, and the card read The WebP: 16.7 KB, 70% smaller than the JFIF. Quality 60. The size in use is shown in bold. If How it is made stood elsewhere, the click switches it to By a quality number.

Working out the sizes leaves the WebP on the card as it is. The line stays when the WebP is made again, and goes only when Colors or the camera-detail choices change, since the sizes rest on those. The same button on other test pictures, in Chrome 158:

Picture At 60 At 70 At 80 At 90 The JFIF
A progressive JFIF, 816 × 608 28.6 KB 33.2 KB 44.7 KB 77.9 KB 82.6 KB
Print colors (CMYK), 250 × 187 2,810 bytes 3,436 bytes 5,504 bytes 10.6 KB 31.2 KB
A phone photo, 3,264 × 2,448 333.2 KB 375.0 KB 488.1 KB 818.7 KB 2.0 MB
A photo of 12 megapixels 269.4 KB 396.2 KB 814.8 KB 1.9 MB 2.5 MB
A logo on white, 600 × 300 3,616 bytes 3,864 bytes 4,784 bytes 7,042 bytes 15.2 KB
Adobe RGB, with its profile, 480 × 320 4,806 bytes 4,846 bytes 4,980 bytes 5,778 bytes 20.0 KB

The best number depends on the picture. The web picture, saved at 85 already, shrinks by only a sixth from 80 to 60, while the 12-megapixel photo drops to a third. In the small Adobe RGB picture, the 3,196-byte color profile is more than half the file at every quality. The sizes took 0.4 s for the web picture, 3.7 s for the phone photo and 5.7 s for the 12-megapixel photo, by the test’s clock in Chrome 158.

What you give up shows on the card’s check line. For the web picture, a color value was off by 1.6 of 255 on average at 60 (51 at most), by 1.4 at 80 (38) and by 1.2 at 90 (34). For a web page, 80 is a sound start; the sizes line shows what a lower number would save on your picture, and one click uses it.

Fitting a file size limit

With To a file size, a box No larger than appears, with a unit beside it: KB, MB or % of the JFIF's own size. It starts at 100 KB. For each picture the page looks for “the highest quality, from 10 to 99, whose file is no larger than this”, in about six tries. A file doesn’t always grow with the quality number, so the card says the highest the page found. “A KB is 1,000 bytes.” The same 56.1 KB picture, asked for 20 KB:

The WebP: 19.33 KB, 66% smaller than the JFIF. Quality 79, the highest the page found that fits 20 KB (19,326 bytes).

A color profile or camera details that go along are counted in: asked for 400 KB, the phone photo got quality 74 without its camera details and quality 70 with them.

When even quality 10 is too large, you still get that WebP. Asked for 5 KB, the same picture gave The WebP: 9,646 bytes, 83% smaller than the JFIF. Quality 10, the lowest the page goes: it does not fit 5 KB. with the note:

Even at the lowest quality this picture takes more room than you asked for. Make it smaller in pixels first with the Image Resizer, then turn it into a WebP.

If a JFIF is already under the size you typed in KB or MB, the page looks for a WebP no larger than the JFIF itself instead. The 56.1 KB picture, asked for 100 KB, gave The WebP: 52.38 KB, 6.6% smaller than the JFIF. Quality 94, the highest the page found that fits the JFIF's own size, 56.1 KB (52,378 bytes). and the note:

You asked for no more than 100 KB, and this JFIF is under that already. So the page looked for the highest quality whose WebP is no larger than the JFIF itself.

That is why a generous limit gives a WebP only a little smaller than its JFIF. For a clearly smaller file, ask for less, or for a share: at 50 % of the JFIF's own size, each WebP aims at half of its own JFIF.

Without loss, when no pixel may change

Choose Without loss: every pixel exactly as in the JFIF when the WebP must hold the JFIF’s pixels exactly. The hint:

The WebP holds every pixel exactly as the JFIF has it, and the page checks that it does. It comes out several times as large as the JFIF: keeping pixels exactly takes more room than a JFIF gives them.

The two browsers pack such a WebP differently. For the 56.1 KB picture, Chrome 158 gave The WebP: 420.6 KB, 7.5 times the size of the JFIF. Without loss. and Firefox 158 The WebP: 384.6 KB, 6.9 times the size of the JFIF. Without loss. Both cards then said “Checked: read back, the WebP gives every pixel of the JFIF, exactly.”, and Pillow agreed for both files. The 12-megapixel photo came to 10.3 MB in Chrome (4.2 times its JFIF) and 8.7 MB in Firefox (3.6 times).

So without loss is no way to a smaller file, and it doesn’t undo what the JFIF left out when it was saved: “Turning a JFIF into a WebP does not make it sharper than the JFIF is.”

Color profile: kept, or turned into sRGB

Colors starts at The JFIF's own, with its color profile where it has one that matters: the WebP gets the JFIF’s own color numbers, and a profile goes along where it changes what is shown. A test JFIF tagged Adobe RGB kept its profile, and the card said “The WebP carries the JFIF's color profile (Compatible with Adobe RGB (1998), 3,196 bytes) beside the same numbers, so it shows the same colors in programs that read profiles.” The profile in the saved WebP was the JFIF’s, byte for byte, and so was a ProPhoto RGB one.

The second choice, Turned into the ordinary kind (sRGB), without a profile, is for programs that don’t read profiles. The Adobe RGB test picture (480 × 320) came to 4,980 bytes with its profile and 2,048 bytes turned into sRGB, with the note “The colors were turned into the ordinary kind (sRGB), as you chose. The JFIF's color profile (Compatible with Adobe RGB (1998)) is not in the WebP, and colors that sRGB cannot hold were brought inside it.”

Chrome adds an sRGB profile of its own to each WebP; the page takes it out, so the 20.2 KB WebP of the web picture held nothing but the picture.

Print colors (CMYK) are turned into screen colors by your browser, and the card says: “This JFIF is in print colors (CMYK). A WebP has only screen colors, so your browser turned them into red, green and blue for it.”

The camera’s details (EXIF) and the place

The details a camera writes into a photo stay out of the WebP unless you tick Keep what the camera wrote into the picture (its EXIF details: date, camera, place) in the WebP. The box is not ticked at first. For a phone photo that holds the place it was taken, the card said “What the camera wrote into the JFIF, the place it was taken among it, is not in the WebP.”

With the tick, the WebP grew from 488.1 KB to 508.6 KB, and the card said “What the camera wrote into the JFIF is in the WebP too (20.5 KB), the place it was taken among it.” A second tick box then appears: Leave the place where the photo was taken out of them. With both, the card said “What the camera wrote into the JFIF is in the WebP too (20.5 KB), without the place it was taken: the list that held the place was emptied.”

Read with Pillow, the WebP with both ticks still named the phone’s maker and model and held no place entries, where the one with the place kept held 14. If the page can’t be certain the place is gone, it keeps none of the details, and says so.

What each card tells you

A card has a small picture, drawn from the WebP itself, and three lines: what the JFIF is, how large the WebP came out, and a check (see the Example below).

The first line ends, where the file tells it, with the quality the JFIF was saved at, such as saved at quality 85, on the 1 to 100 scale most programs use. The page reads it from the file’s own tables and gives it only where they match that scale exactly; the phone photo and the print-color picture got no number.

The check line comes from reading the WebP back and comparing every red, green and blue value of every pixel with the JFIF’s, on a scale of 0 to 255: the average difference, then the largest. In testing, the largest sat at sharp edges: in the Adobe RGB picture (by 167 at most), every pixel off by 30 or more lay within 2 pixels of a sharp change of color.

Notes come under the lines. A photo stored on its side is saved upright, and a note says so: the test picture stored 203 × 131 came out 131 × 203.

Flipping between the WebP and the JFIF

Look at it larger, beside the JFIF shows the WebP big, right in its card. Show the JFIF, or a click on the picture, puts the JFIF in the same place, so what changed shows as you flip. Show where they differ draws the differences: “Black where the WebP is the same as the JFIF, lighter the farther off it is, white from 32 of 255 on.” Show it enlarges the view up to At four times its size.

Only need a .jpg? Save the same file

When a program or a form refuses only the .jfif ending, take the file as a .jpg. Under each card’s check line is Save it as a .jpg instead (saved-from-web.jpg), with the line “The same file under the ending .jpg, with nothing in it changed. That is enough where a program only refuses the ending.” The page confirms with Saved as a .jpg.

The download is the very file you chose, renamed. Tests in Chromium, Chrome and Firefox compared the two: byte for byte the same. A file already named .jpg or .jpeg doesn’t get this button.

With two or more pictures, Save them all as .jpg in one ZIP (jfif-as-jpg.zip) does the same for all of them: “The files themselves under the ending .jpg, with nothing in them changed, for when a .jpg is all you need.” In the test ZIP, every file was its JFIF, byte for byte.

Putting the WebP on a web page: the HTML

Each card also holds the HTML that shows the picture on a web page, with Copy the HTML for a web page above it. For the test picture the line reads:

<picture><source srcset="saved-from-web.webp" type="image/webp"><img src="saved-from-web.jpg" width="1200" height="800" alt=""></picture>

Below it, What the picture shows, for the alt of the HTML: has a text box for up to 300 characters. What you type appears in the line at once, and the copy takes it along. Quotes, & and angle brackets are written the way HTML needs them: typed as A "red" & blue <kite>, the alt became alt="A &quot;red&quot; &amp; blue &lt;kite&gt;", and browsers read it back exactly as typed. The page explains:

It names the WebP for browsers that read WebP and the .jpg for the rest, with the picture's width and height so that the page does not jump while the picture loads. Put both files beside the page. What you type in the box goes between the quotes of alt; leave it empty for a picture that is only decoration.

After a click on the copy button the page says Copied. Where a browser doesn’t let the page copy, it says “Your browser did not let the page copy it. Select the line and copy it yourself.”, and one click on the line selects all of it.

Save both files it names in one ZIP (saved-from-web.zip) hands over what the line needs in one download, and the page says Saved. For the test picture the ZIP held saved-from-web.webp, the WebP of the card, and saved-from-web.jpg, the JFIF itself, both byte for byte: 76,497 bytes in all. With several pictures, the two ZIPs above the cards hold every file under the names the HTML lines use.

The names are those the two save buttons give; a picture already named .jpg keeps its own. Width and height are the picture’s as shown (131 and 203 for the photo stored on its side), and names are written the way a web address needs them: the second of five pictures called photo gave srcset="photo%20(2).webp". In testing, the copied text was the line shown, and browsers read it as a picture with the WebP first.

A batch of JFIF files

Choose or drop up to 100 pictures. With 101 chosen at once, the page said “You chose 101 files. The first 100 were taken.” From two pictures on, a line above the cards gives the totals. For those 100 it read:

Pictures: 100. The JFIF files together: 626.9 KB. The WebP files: 242.8 KB, 61% smaller.

Files the page can’t turn are counted under it, as in Files left out: 1.

Save all as one ZIP (jfif-to-webp.zip) puts every WebP in one download. Each WebP is named after its JFIF, and names never clash: five pictures all called photo, under five endings, became photo.webp, photo (2).webp and so on.

Example

The test picture saved-from-web.jfif, 56,061 bytes, at the choices the page starts with: quality 80, the JFIF’s own colors, no camera details. In Chrome 158, its card read:

JFIF, 1,200 × 800 pixels, 56.1 KB, saved at quality 85

The WebP: 20.2 KB, 64% smaller than the JFIF. Quality 80.

Read back and set against the JFIF: a color value is off by 1.4 of 255 on average, by 38 at most.

Under it stood Save the WebP (saved-from-web.webp) and Save it as a .jpg instead (saved-from-web.jpg), then Show the size at other qualities, and the HTML line with its alt box and Save both files it names in one ZIP (saved-from-web.zip). The WebP was ready 0.1 s after the file was chosen. The saved file was 20,190 bytes, 1,200 × 800 pixels, and Pillow measured the same 1.4 and 38 against the JFIF.

How long it takes

These are the page’s own counts on the live page, on a desktop computer with an AMD Ryzen 9 3950X: from the moment a file is chosen until its WebP is made, read back and checked.

Picture How Chrome 158 Firefox 158
A JFIF saved from a web page, 1,200 × 800, 56.1 KB quality 80 0.1 s 0.1 s
The same without loss 0.2 s 0.5 s
The same to 20 KB 0.3 s 0.3 s
A phone photo, 3,264 × 2,448, 2.0 MB quality 80 1.0 s 1.0 s
A photo of 12 megapixels, 4,032 × 3,024, 2.5 MB quality 80 1.6 s 1.6 s
The same without loss 4.6 s 7.6 s
The same to 500 KB 6.4 s 6.2 s
A test picture of stripes, 6,000 × 5,000 (30 megapixels) quality 80 2.6 s 2.7 s

Limits and refused files

A WebP can be at most 16,383 pixels wide or tall. A JFIF of 16,383 × 40 was turned; a larger one is refused at once rather than cut down:

A WebP cannot be wider or taller than 16,383 pixels, and this picture is 17,000 × 600. Make it smaller first with the Image Resizer.

Good to know adds: “By a quality number or to a file size the page takes pictures of up to 190 megapixels; without loss, any a WebP can hold.” There is no limit in megabytes.

Files that aren’t a JFIF get a card with the reason, and the others go on:

  • A PNG named .jfif: “This file is a PNG picture, not a JFIF or JPG. PNG to WebP turns those into WebP.”
  • A WebP named .jfif: “This file is a WebP already, whatever its name says. There is nothing to turn.”
  • A file that is no picture: “This file is not a JFIF or JPG picture: it does not begin the way such a file does.”
  • A picture copied as a picture rather than as a file: “What you pasted is a picture copied as a picture. It arrives as a PNG, not as a JFIF.”
  • A picture dragged from another web page: “That was the address of a picture, not the picture itself. Save the picture to your device and choose the file.”

Rare kinds of JFIF that browsers don’t read are refused in words, and no empty WebP is handed out. One packed with arithmetic coding got “This JFIF is packed in a way browsers do not read (arithmetic coding), so the page cannot open it.” JFIF files with 12 bits for each color, lossless ones and hierarchical ones get lines of the same kind. A damaged file gets “Your browser could not open this JFIF: the file is damaged.”

A JFIF cut short, by a download that broke off for example, still gives a WebP of what your browser can read. In Chrome the card said:

This JFIF ends too soon: it was cut short, perhaps by a download that broke off. The WebP holds what your browser could still read of it. The part that is missing, 66% of the picture, is see-through in the WebP.

In Firefox the last sentence was “Where the picture is missing, your browser filled it in with a plain color.” If you can, save the picture again.

One ZIP holds up to 4 GB; past that, the page says “Together these WebP files are over 4 GB, more than one ZIP of this kind holds. Save them one by one.” And where a browser can’t write WebP files at all, the page says so on opening: “Your browser cannot make WebP files for a page, so this page cannot work in it. Chrome and Firefox can.”

Tests ran on the live page in Chromium 147, Chrome 158 and Firefox 158 on a desktop computer, and at a phone’s screen width. Not tried: Safari, Edge, a real phone, and a Windows computer saving its own .jfif files.

Which tool for which job

  • Your picture ends in .jpg already: JPG to WebP. Same engine: in testing, one file gave the same WebP, byte for byte, on both pages.
  • A PNG, or a picture copied as a picture: PNG to WebP.
  • A copy to edit and save again and again, or a see-through background: JFIF to PNG.
  • Keep a JPG, just smaller: Image Compressor.
  • Fewer pixels first, for a picture over 16,383 pixels, one that doesn’t fit your size even at quality 10, or a phone photo much wider than your page shows it: Image Resizer. It takes a .jfif, and this page takes the JPG it gives back.

FAQ

How do I convert JFIF to WebP?

Drop your .jfif files on the box Choose JFIF pictures to turn into WebP, or click it to pick them; each becomes a WebP in your browser straight away, with nothing uploaded. Save one with Save the WebP, or all of them with Save all as one ZIP.

What is a JFIF file?

A JPG picture with the ending .jfif. The name comes from the JPEG File Interchange Format, the layout JPG files are written in, which is why renaming it to .jpg gives an ordinary JPG file.

Why do my pictures save as .jfif?

Because of a Windows setting, by the reports: on some Windows computers it pairs the JPG picture type with the ending .jfif, and Chrome and Firefox then save pictures from web pages under that ending. The picture inside is an ordinary JPG.

Is WebP smaller than JFIF?

Usually by a lot: at quality 80, every test JFIF came out smaller, most by 60% or more, and a 2.0 MB phone photo became 488.1 KB. A JFIF saved coarsely and turned at a high quality number can come out larger, and the card says so; a WebP without loss is several times larger.

What WebP quality should I use for a web page?

Start at 80, the number the page starts with, then click Show the size at other qualities to see what 60, 70 and 90 give for your picture, and click a size to use it. A 56.1 KB web picture was 20.2 KB at 80 and 16.7 KB at 60, while a 12-megapixel photo went from 814.8 KB at 80 to 269.4 KB at 60. Above 90, a WebP often comes out larger than its JFIF.

Can I convert JFIF to WebP without losing quality?

Yes, with Without loss: every pixel exactly as in the JFIF: every pixel stays as it is, and the card confirms it after reading the WebP back. Expect a much larger file, 420.6 KB in Chrome and 384.6 KB in Firefox from a 56.1 KB JFIF; for a smaller file with a small, measured loss, use a quality number.

How do I convert a JFIF to a WebP under 100 KB?

Pick To a file size; the box already says 100 KB. The page tries qualities from 10 to 99 and keeps the highest whose WebP fits, and a JFIF already under 100 KB gets a WebP no larger than itself. If even quality 10 is too large, the card says to make the picture smaller in pixels first.

Can I convert multiple JFIF files to WebP at once?

Yes: choose or drop up to 100 at a time. A line above the cards shows how much smaller they are together, and Save all as one ZIP downloads every WebP as jfif-to-webp.zip.

How do I change a JFIF to JPG without converting it?

Choose it here and use Save it as a .jpg instead on its card, or Save them all as .jpg in one ZIP for several. The file is handed back renamed, the same byte for byte.

Note: All processing is done client-side. We do not store or see your data.

Related Tools

Contact

Missing something?

Feel free to request missing tools or give some feedback using our contact form.

Contact Us