WordPress Plugin

Convert images to
WebP automatically

A lightweight WordPress plugin that converts JPEG and PNG uploads to WebP on your server โ€” no API, no account, no monthly limits.

100%
Free forever
0
API keys
PHP 7.4+
Compatible
WP 6.0+
Requires
GPLv2
License

Project Overview

What it does

Hooks into WordPress's native upload pipeline to replace images with WebP equivalents โ€” including every thumbnail size.

โšก

Silent conversion on upload

Every JPEG and PNG uploaded through WordPress is automatically converted to WebP in the same request โ€” editors and authors don't need to do anything.

๐Ÿ”„

Replaces the file entirely

Unlike plugins that create a secondary .webp alongside the original, Halka updates the attachment record itself โ€” no redirect rules, no duplicate files.

๐Ÿ–ผ๏ธ

All thumbnail sizes converted

Thumbnail, medium, large, and every custom registered size is regenerated as WebP so srcset, featured images, and Media Library previews are always correct.

๐Ÿ 

Fully self-hosted

Uses only WordPress's built-in WP_Image_Editor backed by GD or Imagick. Everything runs on your server โ€” no external HTTP requests, no third-party services.

Key Features

What's included

Everything to optimize images from day one โ€” and convert what's already there.

โšก

Auto convert on upload

Converts JPEG, PNG and optionally GIF the moment they land in the Media Library.

๐Ÿ“ฆ

Bulk converter

Batch-processes existing Media Library images in small AJAX batches โ€” safe on shared hosting.

๐Ÿ–ฑ๏ธ

Per-image button

A Convert to WebP button on every Media Library row for on-demand conversion without a full bulk run.

๐ŸŽš๏ธ

Quality controls

Separate quality settings for WebP and JPEG. Max dimension capping with auto-resize on upload.

โœ‚๏ธ

Metadata stripping

Optionally strips EXIF and IPTC metadata via Imagick before conversion to reduce file size further.

๐Ÿ“Š

Savings indicator

Shows the percentage file size reduction per image directly in the Media Library column.

๐Ÿ”’

Secure AJAX handlers

All conversion actions protected with nonces and WordPress capability checks.

๐Ÿ›ก๏ธ

Safe fallback

If conversion fails for any reason the original file is preserved and returned untouched.

Free Plugin Comparison

Why choose Halka

Compared to the most popular free WebP plugins on WordPress.org.

Halka vs. Smush Free ยท ShortPixel Free ยท WebP Express

โœ“ Halka does this

โœ“No monthly image limit โ€” unlimited conversions
โœ“Works immediately โ€” no account or API key
โœ“No .htaccess or server config required
โœ“Converts all thumbnail sizes, not just the original
โœ“Per-image convert button in Media Library
โœ“Memory-safe bulk conversion on shared hosting

โœ— Others require or lack

โœ—Smush free: 50 images/month cap
โœ—ShortPixel free: 100 credits/month limit
โœ—Most require account creation before use
โœ—WebP Express needs .htaccess rewrite rules
โœ—Free tiers skip thumbnail sub-sizes
โœ—Bulk tools often hang mid-batch on low memory
01

No monthly image limit

Smush free caps at 50 images/month. ShortPixel gives 100 credits/month then stops. Halka converts every image on every upload, forever, at no cost.

02

Zero setup friction

Every major free plugin requires account creation and API key configuration. Halka activates and runs immediately โ€” configure quality in Settings, done.

03

No server configuration

WebP Express and similar tools need .htaccess or Nginx rules. Halka needs nothing outside WordPress itself โ€” works on any host, any setup.

04

Every thumbnail size converted

Most free plugins convert only the full-size original and leave JPEG thumbnails. Halka regenerates every registered size so srcset, featured images, and previews are all WebP.

05

Bulk conversion that doesn't crash

Explicitly destroys Imagick objects via PHP Reflection after each image to prevent memory exhaustion โ€” the primary reason other self-hosted bulk tools silently hang on shared hosting.

Technologies

Built with

No external libraries โ€” only WordPress core APIs and standard PHP.

Core

PHP 7.4+

Server-side OOP class architecture and image processing pipeline

WordPress

WP_Image_Editor

Native WordPress image API โ€” no external image libraries required

WordPress

Settings API

Options registration, sanitization, and settings page rendering

WordPress

AJAX API

Nonce-protected handlers for bulk batches and per-image conversions

Core

GD / Imagick

PHP image encoding โ€” Imagick preferred, GD used as fallback

UI

jQuery (bundled)

Progress bar, AJAX calls, and per-image button interactions

UI

CSS3

Settings page layout and Media Library column styling

Compat

PHP Reflection

Explicit Imagick destruction after bulk conversion to prevent memory exhaustion

Requirements

Server requirements

Works on any standard WordPress hosting. WebP is supported by the vast majority of modern hosts.

PHP Version

7.4 or higher

WordPress

6.0 or higher

Image Library

GD or Imagick

WebP Encoding

GD 2.0+ or Imagick with WEBP

External API

None required

Server Config

No changes needed