Skip to content
GPLWP Guides

How to convert images to JPG in WordPress

Media & Galleries Time About 20 minutes 6 steps Updated 30 Oct 2026

MEDIA & GALLERIES
The short answer

WordPress does not provide a JPG conversion button for ordinary PNG, WebP or GIF uploads. For one image, convert it to JPG before uploading, then replace the image in your content. For existing or bulk media, use a converter plugin or custom PHP code, and keep backups before replacing files.

The route
  1. 01Check the source image
  2. 02Convert the image before upload
  3. 03Upload the new JPG
  4. 04Replace the old image
  5. 05Use a converter for existing media
  6. 06Choose the fast route

What you need

  • Administrator or Editor access to WordPress
  • A backup of the site or original image files
  • An image editor or WordPress image conversion tool

Check the source image

Decide whether JPG is suitable before converting. JPG works well for photographs, but it does not support transparency. If the source is a PNG with a transparent background, choose a background colour first or the converted image may look different.

Keep the original file until you have checked the converted image, its dimensions and its appearance on the site.

Convert the image before upload

For a one-off conversion, open the image in an image editor and use Export or Save as, then choose JPEG or .jpg. Use a quality setting around 80–90 for photographs, then check the file size and sharpness.

This is the simplest manual route. WordPress can upload images to the Media Library, but it does not provide a general format-conversion control for changing an existing PNG, WebP or GIF into a JPG.

Upload the new JPG

In WordPress, go to Media and upload the converted JPG, or upload it while editing the post or page. WordPress will create the attachment and its usual image sizes after upload.

Give the file a descriptive name before uploading. Do not simply rename image.png to image.jpg; changing the extension does not change the file format.

Replace the old image

Edit each post, page, gallery or template that uses the old image and select the new JPG. Check the desktop and mobile layouts, the featured image, captions, alt text and any links to the original file.

Uploading a new JPG normally creates a new attachment and URL. Do not delete the old image until you have checked the front end, because old URLs may still be used in posts, CSS, page-builder data or external bookmarks.

Use a converter for existing media

If you need to convert many images inside WordPress, install a reputable image-conversion plugin that explicitly supports JPG output and existing Media Library files. Look for controls that let you keep the original, convert image subsizes and update attachment or content references.

This is where the manual route becomes slow and risky. WordPress's built-in editor supports operations such as cropping, rotating and scaling, but its documented controls do not include a general output-format conversion option.

Choose the fast route

Fast way: convert the image outside WordPress, upload the JPG, replace the image where it is used, and leave the original in place until you have checked every reference.

If the conversion must happen on the server or you need to process existing media in bulk, jpg-php is a reasonable option when basic server-side PHP conversion is the main requirement. Before using it on a live site, confirm that it handles your source formats, creates the required WordPress image sizes and gives you a way to preserve or restore originals.

The fast route

Let jpg-php do it

Likely a server-side PHP utility for JPG image conversion; choose it only when basic format conversion is the main need.

Get jpg-php

Sources

  1. wordpress.org /documentation/article/edit-media/?utm_source=openai
  2. wordpress.org /documentation/article/use-images/?utm_source=openai
  3. wordpress.org /documentation/article/image-block/?utm_source=openai
  4. developer.wordpress.org /reference/functions/wp_get_image_editor_output_format/?utm_…

Questions

Can WordPress convert a PNG to JPG without a plugin?
Not as a normal Media Library operation. WordPress's built-in image editor can crop, rotate and scale an image, but it does not expose a general control for saving an ordinary PNG, WebP or GIF as a JPG. For a single file, convert it in an image editor before uploading. For existing or bulk media, use a converter plugin or custom development.
What happens to transparent PNG areas when converted to JPG?
Transparent areas need a background colour because JPG does not store transparency. Depending on the conversion tool, transparent pixels may become white, black or another default colour. Set the background deliberately before exporting, then inspect the result at its intended size. Keep the PNG if the image is a logo, icon or graphic that must retain transparent edges.
Will converting an image keep the same WordPress URL?
Usually not when you convert the file before uploading, because the JPG becomes a new Media Library attachment with its own file URL and attachment ID. Replace the old image in posts, galleries and templates, and keep the old file until you have checked for remaining references. A plugin that replaces files may preserve references, but confirm its behaviour first.
Can WordPress automatically convert HEIC images to JPG?
Recent WordPress versions can convert HEIC and HEIF images to JPEG during image processing when the server has the required image support. That behaviour is different from converting every PNG or WebP in the Media Library. If HEIC uploads fail, the server may lack a suitable decoder, so converting the photo before upload is the safer fallback.
Should I delete the original image after conversion?
Do not delete it immediately. First check the converted image, responsive sizes, galleries, featured images, page-builder layouts and direct links. Deleting the original can leave broken images if an old URL is still referenced. Once you have confirmed that the JPG is used everywhere and a backup exists, remove unused originals through the Media Library or your normal media-cleanup process.