Skip to content
files.co

JPG vs PNG vs PDF: which format and when

JPG, PNG, and PDF each solve a different problem. Here's a plain guide to which one fits photos, sharp graphics, and multi-page documents, and when to convert.

DCDavid Carrero · · 6 min read

You snap a photo, design a logo, or finish a report, and then comes the question nobody teaches you: what file format do you save it as? JPG, PNG, and PDF show up everywhere, and people treat them like they’re interchangeable. They’re not. Each one was built for a different job, and using the wrong one gives you a blurry photo, a bloated file, or a document that falls apart when someone opens it.

Here’s how to tell them apart and pick the right one without thinking too hard.

Which format for what

JPG PNG PDF
Best for Photographs Screenshots, logos, line art, anything with sharp edges Documents meant to be read or printed
Compression Lossy — throws data away to get small Lossless — keeps every pixel Per-stream, and it can hold both kinds
Transparency No Yes Yes
Text stays crisp No, it smears at the edges Yes Yes, it is real text with a font
Re-saving repeatedly Degrades every time No loss No loss
Typical size for a photo Small Large Depends on what is inside
Multiple pages No No Yes

JPG: for photos

JPG: for photos

JPG (sometimes written JPEG) is the format your phone camera uses, and that’s the clue. It’s made for photographs and anything with smooth color and gentle gradients: a sunset, a portrait, a plate of food.

The trick JPG pulls off is compression. It throws away small details your eye barely registers, which keeps the file tiny while the photo still looks good. A high-resolution photo that would be huge as a raw file becomes a few hundred kilobytes as a JPG. That’s why the web runs on it.

The catch is that JPG struggles with sharp edges. Put text or a hard line on a flat background and you’ll see faint fuzz around it, called artifacts. And every time you re-save a JPG, it compresses again and loses a little more. Save the same JPG ten times and it starts to look rough.

So reach for JPG when:

  • The image is a photo or has lots of color and texture
  • You want a small file for the web, email, or social media
  • You don’t need a transparent background

Don’t use it for a logo, a screenshot of text, or a diagram. Those have sharp edges, and JPG will smudge them.

PNG: for sharpness and transparency

PNG is the opposite approach. It keeps every pixel exactly as you made it. Nothing gets thrown away, so text stays crisp and lines stay clean. That makes it the right pick for screenshots, logos, icons, charts, and any graphic with hard edges.

PNG also does the one thing JPG can’t: transparency. You can have a logo with no background, so it sits cleanly on top of any color. If you’ve ever needed a graphic that floats without a white box around it, you needed a PNG.

The cost is size. Because PNG keeps everything, a photo saved as PNG can be several times bigger than the same photo as a JPG, with no visible quality gain. So it’s a great format used in the wrong place when people save holiday photos as PNG.

Reach for PNG when:

  • The image has text, sharp lines, or solid blocks of color
  • You need a transparent background
  • You’re saving a screenshot or a logo

PDF: for documents

JPG and PNG hold a single image. PDF holds a document, and that’s a different thing entirely.

A PDF can have many pages. It keeps your fonts, layout, and spacing locked in place, so it looks the same on a phone, a laptop, or a printer halfway across the world. Open the same Word file on two machines and the lines might wrap differently. Open a PDF and it’s identical everywhere. That’s the whole point of it.

The other big win is selectable text. A PDF can carry real text underneath, so you can copy a paragraph, search for a word, or let a screen reader read it aloud. A photo of a page can’t do any of that. It’s just pixels, and the words inside are invisible to your computer.

Reach for PDF when:

  • You have more than one page
  • The layout matters and must not shift
  • People need to select, copy, or search the text
  • You’re sending a contract, invoice, report, or anything official

When to convert from one to another

Most of the time you save in the right format from the start. But often enough you’ve got the wrong one and need to switch.

Photos into a PDF. Say you scanned a stack of receipts as photos, or someone sent you five JPGs that are really pages of one document. Stitching them into a single PDF gives you one tidy file to send, print, or file away, instead of a messy pile of images. The files.co images to PDF tool does this, and it runs entirely in your browser. Your photos never leave your device.

A PDF into images. The reverse happens when you want to post one page on social media, drop it into a slide, or show it on a web page, places that want an image, not a PDF. The PDF to images tool pulls each page out as a JPG or PNG, again without uploading anything. When you do this, the JPG-or-PNG choice from earlier comes back: text-heavy pages look better as PNG, photo-heavy pages stay lighter as JPG.

One thing to keep in mind: converting can’t add quality that isn’t there. Turning a blurry JPG into a PDF gives you a blurry PDF. And a PDF that’s really a scanned image, with no text layer, won’t have selectable text until you run OCR on it. The format is a container. It carries whatever you put in.

The short version

JPG for photos. PNG for anything sharp or transparent. PDF when you’ve got a real document with pages and text that need to stay put. Get that right and you’ll skip the blurry logos and the 40 MB photo emails for good.

Frequently asked questions

Should I use JPG or PNG?

Photograph, JPG. Anything with sharp edges — a screenshot, a logo, a diagram, text in an image — PNG. The reason is the compression: JPG is lossy, so it throws data away to get small, which is invisible in a photo's soft gradients and very visible as a smeared halo around hard edges. PNG keeps every pixel, which is why it is bigger and why a screenshot stays readable.

Why does my screenshot look blurry after saving it as JPG?

Because JPG is built for photos and a screenshot is the opposite of a photo. Its compression works by discarding fine detail that the eye forgives in a gradient — but text and interface edges are all fine detail, so they come back fuzzy with a faint halo. Save screenshots as PNG. Once a JPG has smeared them, the detail is gone and re-saving as PNG cannot bring it back.

Does re-saving a JPG make it worse each time?

Yes. Every save re-compresses the image and throws away a little more, so a file that has been opened, edited and saved a dozen times is visibly worse than the original. PNG and PDF do not have this problem. If you are going to edit an image repeatedly, keep a lossless master and export JPGs from it rather than editing the JPG.

When should I convert images to PDF instead?

When the thing is a document rather than a picture: several pages that belong together, something to be printed, or something to be sent as one file. [Images to PDF](/images-to-pdf/) puts them in one document with a real page size, and unlike a folder of JPGs it stays in order and opens the same way on any machine.

Explore by category