HotConvert Image Optimizer for WordPress
Convert your images to WebP or AVIF as soon as they are uploaded, compress and resize them, and find the images that slow your site down. Free, no account needed.
Free · 300 images/day per site · WordPress 5.8+ · PHP 7.4+
What the plugin does
Lighter images, a faster site, without changing the way you work in WordPress.
Automatic conversion at upload
Every image you upload is converted to WebP by default. You can also choose AVIF, JPEG, PNG, or keep the original format.
Compression with a quality setting
Set the quality level yourself to find the right balance between file size and visual quality.
Resize oversized images
Images wider than the maximum width you define are automatically scaled down.
Media analysis
A dedicated screen in the WordPress admin finds the images that slow your site down (heavy files, legacy JPEG/PNG/GIF/BMP formats, images wider than the max width) and converts them in bulk.
URLs updated in your posts
When an image is converted, the URLs inside your posts are updated so your pages use the new file.
Original kept, one-click restore
The original image is kept as a backup. You can restore it in one click at any time.
Free, no account needed
The plugin registers your site automatically and gets a free daily quota of 300 images per site. Requires WordPress 5.8+ and PHP 7.4+.
How to install
The plugin installs like any other WordPress plugin, in about a minute.
- 1
Download the hotconvert-image-optimizer.zip file from this page.
- 2
In your WordPress admin, go to Plugins → Add New.
- 3
Click Upload Plugin, then choose the zip file and click Install Now.
- 4
Click Activate.
- 5
Open Media → HotConvert to choose the output format, quality and maximum width.
- 6
Run the media analysis to optimize the images already in your library.
Developers: use the API
The plugin relies on a free HTTP API. You can call it directly from your own code: register a site to get a site key, then send images to optimize. Each site gets a free quota of 300 images per day.
https://api.hotconvert.com/wp/v1/registerRegisters a site and returns its key. JSON body: site_url (required), site_name, wp_version and plugin_version (optional). Limited to 10 registrations per IP address per day.
{
"site_key": "hcwp_…",
"daily_limit": 300,
"formats": ["avif", "jpeg", "original", "png", "webp"]
}/wp/v1/statusReturns the site quota. Send the key in the X-HC-Site-Key header.
{
"site_url": "https://example.com",
"daily_limit": 300,
"used_today": 12,
"remaining_today": 288,
"avif": true
}/wp/v1/optimizeOptimizes an image sent as multipart/form-data, with the key in the X-HC-Site-Key header. The response body is the optimized image itself.
Form fields
file- The image to optimize (25 MB maximum). Required.
format- Output format: webp, avif, jpeg, png or original. Default: webp.
quality- Quality from 30 to 100. Default: 82.
max_width- Maximum width in pixels: 0 (no resize) or a value between 320 and 8000.
Response headers
The image comes back as raw bytes; details are in the headers:
X-HC-Format- Format of the returned image.
X-HC-Original-Size- Size of the original file, in bytes.
X-HC-Output-Size- Size of the returned file, in bytes.
X-HC-Width / X-HC-Height- Width and height of the returned image, in pixels.
X-HC-Skipped- Empty if the image was optimized; no_gain if the result would not be smaller; animated for animated images.
X-HC-Remaining-Today- Number of images still available today for this site.
Errors
- 401
invalid_site_key - Missing or invalid site key.
- 413
file_too_large - The file exceeds 25 MB.
- 422
not_an_image - The file is not an image.
- 422
unsupported_format - The input image format is not supported.
- 422
image_too_large - The image dimensions are too large to process.
- 422
unsupported_target_format - The requested output format is not available.
- 429
daily_limit_reached - The daily quota for this site has been reached.
- 429
too_many_registrations - Too many registrations from this IP address today (on /wp/v1/register).
# 1. Register the site once and keep the site_key
curl -X POST https://api.hotconvert.com/wp/v1/register \
-H "Content-Type: application/json" \
-d '{"site_url":"https://example.com","site_name":"My blog"}'
# 2. Check the daily quota
curl https://api.hotconvert.com/wp/v1/status \
-H "X-HC-Site-Key: hcwp_xxxxxxxx"
# 3. Optimize an image (WebP, quality 82, max 1920 px wide)
curl -X POST https://api.hotconvert.com/wp/v1/optimize \
-H "X-HC-Site-Key: hcwp_xxxxxxxx" \
-F "[email protected]" \
-F "format=webp" \
-F "quality=82" \
-F "max_width=1920" \
-D headers.txt -o photo.webp<?php
// 1. Register the site (once), then store the key in an option.
$res = wp_remote_post( 'https://api.hotconvert.com/wp/v1/register', array(
'headers' => array( 'Content-Type' => 'application/json' ),
'body' => wp_json_encode( array(
'site_url' => home_url(),
'site_name' => get_bloginfo( 'name' ),
) ),
) );
$site_key = json_decode( wp_remote_retrieve_body( $res ), true )['site_key'];
// 2. Send an image as multipart/form-data.
$file = '/path/to/photo.jpg';
$boundary = wp_generate_password( 24, false );
$body = '';
foreach ( array( 'format' => 'webp', 'quality' => '82', 'max_width' => '1920' ) as $name => $value ) {
$body .= "--$boundary\r\nContent-Disposition: form-data; name=\"$name\"\r\n\r\n$value\r\n";
}
$body .= "--$boundary\r\nContent-Disposition: form-data; name=\"file\"; filename=\"" . basename( $file ) . "\"\r\n";
$body .= "Content-Type: image/jpeg\r\n\r\n" . file_get_contents( $file ) . "\r\n--$boundary--\r\n";
$response = wp_remote_post( 'https://api.hotconvert.com/wp/v1/optimize', array(
'timeout' => 60,
'headers' => array(
'X-HC-Site-Key' => $site_key,
'Content-Type' => 'multipart/form-data; boundary=' . $boundary,
),
'body' => $body,
) );
if ( ! is_wp_error( $response ) && 200 === wp_remote_retrieve_response_code( $response ) ) {
$format = wp_remote_retrieve_header( $response, 'x-hc-format' );
file_put_contents( '/path/to/photo.' . $format, wp_remote_retrieve_body( $response ) );
}Free quota: 300 images per day per site, files up to 25 MB, 10 site registrations per IP address per day.
Frequently asked questions
Is the plugin really free?
Yes. The plugin is free and needs no account: it registers your site automatically and gets a free quota of 300 images per day.
Which formats can my images be converted to?
WebP by default. You can also choose AVIF, JPEG or PNG, or keep the original format and only compress and resize.
Can I go back to my original images?
Yes. The original is kept as a backup and can be restored in one click.
What about the images already on my site?
The Media analysis screen finds heavy files, images in legacy formats (JPEG, PNG, GIF, BMP) and images wider than the max width, then converts them in bulk. The URLs inside your posts are updated.
What are the requirements?
WordPress 5.8 or later and PHP 7.4 or later.
Ready to lighten your images?
Install the plugin in a minute and start optimizing your WordPress media library.
Download the plugin (.zip)