Image Comparison Block – Before After Image Slider
Before and after image comparison slider block for Gutenberg. Lightweight, accessible, responsive and touch friendly. No jQuery.
Solid choice
Image Comparison Block is a solid plugin choice in 2026, with a few things worth checking first. It runs on 700+ sites, is rated 4/5 and was last updated 2 weeks ago, and scores 78/100 on our health check.
- Actively developed — last update 2 weeks ago
- Tested with the latest WordPress (7.1)
- Momentum — downloads up 3371.1% vs the previous 30 days
- Small user base (700+ active installs)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Image Comparison Block stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| before after | #9 |
| comparison slider | #11 |
| image compare | #9 |
| image comparison | #6 |
| photo comparison | #6 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4 from 6 reviews
About Image Comparison Block
From the official readme · v1.7.1Description
Image Comparison Block is a lightweight before and after image comparison slider for the WordPress block editor (Gutenberg). Place two images on top of each other and let visitors drag, click or swipe the handle to reveal the difference.
It is built with native block editor components, has no jQuery or third-party JavaScript libraries, and loads its tiny front-end script only on pages that actually use the block, so it will not slow down the rest of your site.
Perfect For
A before/after slider is the clearest way to show a transformation. Use it for:
- Photographers and retouchers: original vs. edited photos, color grading, RAW vs. final.
- Designers and agencies: old website vs. redesign, mockup vs. final product.
- Real estate and interior design: home staging, renovation and remodeling results.
- Construction, landscaping and cleaning services: project progress and results.
- Beauty, cosmetics, dental and fitness: treatment and transformation results.
- Car detailing and restoration: before and after the job.
- Education and science: maps, satellite images and changes over time.
- Product reviews: compare screenshots, settings or image quality side by side.
Key Features
- Lightweight and fast: no jQuery or external libraries. Assets load only where the block is used.
- Native Gutenberg block: built with core block editor components, works with any block theme or classic theme, including the Site Editor (FSE).
- Horizontal and vertical comparison modes.
- Drag, click or swipe to compare. Touch friendly, without blocking page scrolling on mobile.
- Optional move on hover mode.
- Adjustable starting position of the slider.
- Optional before and after labels, always visible or shown on hover.
- Handle styles: circle, square or line, with custom color, background, size and line width.
- Label styles: position, text color, background and font size.
- Border, rounded corners, box shadow and aspect ratio (crops both images evenly).
- Wide and full width alignment, margin controls and HTML anchors.
- Responsive images with
srcsetandsizesfor images from the Media Library. - Accessible: keyboard operable handle (arrow keys, Page Up/Down, Home/End), announced as a slider to screen readers, and respects the “reduce motion” setting.
- Live, interactive preview in the editor.
- Swap or replace images from the block toolbar, with alt text controls for SEO.
- Use multiple comparison sliders on the same page.
- Translation ready.
How to Use
- Add the Image Compare block from the Media category, or type
/image comparein the editor. - Choose a before image and an after image from the Media Library.
- Pick the orientation, starting position, labels and styles from the block sidebar.
- Publish. Your before/after slider is live.
Why Image Comparison Block?
Many image comparison plugins depend on jQuery, page builders or heavy sliders. Image Comparison Block is a single, focused block that does one thing well: a fast, accessible and good-looking before and after image slider that fits right into the block editor.
Installation
- Upload the plugin files to the
/wp-content/plugins/image-compare-blockdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the “Plugins” screen in WordPress.
- Open the block editor and add the “Image Compare” block from the Media category, or type
/image compare. - Select a before image and an after image.
Changelog
Plugin renamed to Image Comparison Block. No changes to your existing blocks.
1.7.1
- Renamed the plugin to “Image Comparison Block – Before After Image Slider”.
- Improved: Plugin description, features and FAQ.
1.7.0
- Rebuilt the block with block.json (API version 3) and @wordpress/scripts.
- New: Server-side rendering with responsive images (
srcset/sizes). - New: Lightweight slider shared by the editor and front end. Removed the bundled third-party libraries.
- New: Organized sidebar with Settings (Images, Slider, Labels) and Styles (Handle, Labels) tabs.
- New: Handle style, color, background, size and line width options.
- New: Label position, colors and font size options.
- New: Border, radius, shadow and aspect ratio support.
- New: Starting position and “show labels on hover” settings.
- New: Swap images and replace images from the block toolbar.
- New: Alt text controls for both images.
- New: Wide/full alignment and margin support. HTML anchors are kept.
- New: Keyboard and screen reader support for the slider handle.
- New: Interactive preview in the editor.
- Improved: Touch support that does not block page scrolling.
- Improved: The front-end script and styles only load on pages that use the block.
- Improved: All output is escaped and all strings are translatable.
- Removed: Redirect to the plugin page on activation.
- Fixed: Removed the deprecated
wp-editordependency. - Fixed: Stray “undefined” CSS class in saved block markup.
- Blocks created with 1.0.0 and 1.5.0 – 1.6.2 are migrated automatically, keeping their HTML anchors and custom CSS classes.
1.6.2
- Compatibility with the latest WordPress version.
1.6.1
- Admin page updated.
- Popup notice issue fixed.
1.6.0
- Labels position issue fixed.
- Admin page updated.
1.5.0
- Compatibility with the latest WordPress version.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Image Comparison Block alternatives
All before after plugins →FAQ
Image Comparison Block: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Image Comparison Block free?
Yes. Image Comparison Block is free to download and use from the official WordPress.org plugin directory.
Is Image Comparison Block safe to use in 2026?
Image Comparison Block is a solid plugin choice in 2026, with a few things worth checking first. It runs on 700+ sites, is rated 4/5 and was last updated 2 weeks ago, and scores 78/100 on our health check.
How many websites use Image Comparison Block?
Image Comparison Block is active on 700+ WordPress websites and has been downloaded 9,814 times since it launched in October 2021. It was downloaded 1,319 times in the last 30 days.
Does Image Comparison Block work with WordPress 7.1?
Yes. The developer has tested Image Comparison Block up to WordPress 7.1.5, the latest release. It requires WordPress 6.6 or newer.
What PHP version does Image Comparison Block need?
Image Comparison Block requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Image Comparison Block last updated?
The latest version, 1.7.1, was released on November 9, 2026 (2 weeks ago).
Who makes Image Comparison Block?
Image Comparison Block is developed and maintained by Binsaifullah.
What are the best alternatives to Image Comparison Block?
The most popular alternatives to Image Comparison Block are Ultimate Before After Image… (30K+ installs), WP Before After Image Slider (1K+ installs) and Before After Image Compare (200+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



