Make smaller WebP and AVIF copies of your WordPress images while keeping your original Media Library files and existing URLs untouched. Preview the result on one photo in your browser before optimizing your library, or try the interactive demo at kilobyte.gabi.to. Unlimited and free, with no account, API key, or monthly credit limits.
Kilobyte also ships with native WordPress Abilities API support (WordPress 6.9+).
WordPress Abilities let plugins expose specific functionality to an MCP server, such as Uncanny Automator MCP or similar MCP plugins, so your AI assistant can automatically inspect savings, optimize or restore images, regenerate thumbnails, and update preferences out of the box.
Quality preview · Compare WebP, AVIF, or original output side by side in your browser before saving.
- Unlimited free image optimization: Optimize your entire Media Library with no account, API key, monthly quota, or per-thumbnail limits.
- Agent-ready WordPress Abilities API & MCP support: Registers seven WordPress abilities under the
kilobyte-image-optimizercategory (kilobyte/get-stats,kilobyte/get-queue,kilobyte/get-settings,kilobyte/update-settings,kilobyte/optimize-image,kilobyte/restore-image,kilobyte/regenerate-thumbnails) on WordPress 6.9+ / 7.x with JSON schemas, semantic annotations, and per-attachment capability checks. Works automatically with Uncanny Automator MCP and similar WordPress MCP plugins. - Live quality preview & single optimize: Compare compression side by side on any photo from your Media Library or computer, switch formats (WebP, AVIF, Original) and compression presets (High, Balanced, Smallest) live, and save immediately with Optimize now (or Download copy for local files).
- Selective optimize: Multi-select specific Media Library photos (paginated for large selections) to optimize a single post, landing page, or gallery without running a full bulk job.
- Bulk image optimizer: Process your entire Media Library with resumable pagination, live ETA, reload protection, per-reason skip totals, links to unavailable entries, and one-click retry for failed items.
- Automatic image compression on upload: Creates smaller copies right after WordPress saves the original, using your browser for Gutenberg and Media Library uploads, or scheduled background tasks for classic, mobile app, and server-handled REST uploads.
- WebP & AVIF converter + static GIF support: Converts JPEG, PNG, BMP, and static GIF images to WebP or AVIF while automatically preserving animated GIFs, APNGs, and animated WebPs.
- Browser Web Worker + automatic server fallback: Runs compression off the main thread in your browser (no
exec()required), and falls back automatically to WordPress's built-in image editor (Imagick or GD) when needed. - Non-destructive originals & one-click restore: Keeps original Media Library files and existing URLs intact, serves smaller copies via
<picture>with automatic fallback, and lets you restore a single image or choose Restore all. - Cache-safe 24-hour deferred cleanup: Keeps retired copies available for at least 24 hours before eligible copies are removed in bounded background batches while preserving recovery state across reinstalls.
- Resize optimized copies: Scale down oversized copies to your maximum width and height while leaving the uploaded original untouched.
- Regenerate thumbnails: Rebuild registered WordPress thumbnail sizes without breaking existing thumbnail or original URLs.
- Copyable optimization summary: Copy a plain-text summary of optimized counts, estimated transfer savings, and active format in one click.
- Optional auto alt text & image decoding hints: Fill empty alt text cleanly from attachment filenames on upload and add browser image decoding hints.
- Per-attachment permissions & multisite awareness: Enforces WordPress
edit_postpermissions across REST routes and Media Library controls and scopes network lifecycle operations per site. - WP-CLI & developer hooks:
wp kilobyte optimize,wp kilobyte restore,wp kilobyte stats(--reconcile),wp kilobyte purge-backupskilobyte_io_settings: filter active plugin preferenceskilobyte_io_should_optimize/kilobyte_io_after_optimize: control and react to optimizationkilobyte_io_variant_filename: customize generated variant filenameskilobyte_io_variant_changed: action fired on create/restore for page-cache invalidation
We care about your experience because we are WordPress users too. Kilobyte is designed to feel like a natural part of WordPress:
- Ready right after activation: Works out of the box with no account, API key, or monthly quota. Processing runs in your browser or with your WordPress site's built-in image editor.
- Calm admin experience: Keeps your WordPress dashboard clean and focused on your media, with simple controls and all settings available out of the box.
- Native WordPress interface: Built with
@wordpress/componentsacross four focused tabs: Preview, Selective optimize, Bulk optimize, and Preference. - Safe by default: Leaves your original Media Library files and existing image URLs untouched, so you can test freely and restore anytime.
- WordPress 6.6 or later (tested up to 7.1)
- PHP 7.4 or later
- Node.js 24.15+ (for building frontend assets from source)
- Upload the
kilobyte-image-optimizerfolder to/wp-content/plugins/(or install the release ZIP via Plugins → Add New → Upload Plugin). - Activate Kilobyte Image Optimizer.
- Open Media → Optimization, test any photo in Preview, optimize chosen files in Selective optimize, or run Bulk optimize.
See CONTRIBUTING.md for architecture notes, coding standards, local setup, and pull request guidelines.
# Install dev dependencies
composer install
npm ci
# Watch and rebuild frontend assets
npm run start
# Auto-fix PHP formatting (WordPress-VIP-Go + WordPress-Extra)
npm run lint:php:fix
# Run the PHPUnit integration tests (see tests/README.md for the test database setup)
composer test
composer test:coverage
# Run PHPCS (uncached), TypeScript check, production build, and headless Plugin Check
npm run verify
# Build a clean WordPress.org release ZIP in dist/
npm run packageLicensed under the GNU General Public License v2.0 or later (GPL-2.0-or-later).




