Complementor/Whitespace cleaner
Content / widget · Elementor module

Whitespace Cleaner Tool Widget Plugin for Elementor

Let visitors paste text and clean it up: trim each line, collapse repeated spaces, tidy blank lines and copy the result, all in the browser.

Included in All AccessClassic Elementor widgetFrom $29 USD / year
Complementor / Whitespace cleanerProduct preview
Text, style and layout controls inside Elementor
01 / Interactive demonstration

Try the whitespace cleaner

These are the actual published widgets. Edit the text and press Clean text, or type in the live example; the result and the count of removed characters update in your browser.

02 / Inside WordPress

Whitespace cleaner controls in Elementor

Content sets the heading and its tag, the input label and placeholder, example text, the button and result labels and an optional icon. Behaviour chooses how blank lines are handled, whether special spaces are normalised, live updating, the removed-characters summary and the copy button. The Presentation tab styles text, gap, alignment, the input, both buttons with hover states, and the result box.

03 / Website use cases

Where to use whitespace cleaner

Text pasted from documents, emails and web pages often carries double spaces, tabs, non-breaking spaces and stray blank lines that break forms, listings and code. Whitespace cleaner gives your visitors a small on-page tool: paste the text, press Clean text, see how many characters were removed and copy the result. Nothing is sent to a server.

01

Writing and SEO tools pages

Offer a quick text tidy-up next to your other free tools.

02

Support and documentation

Help customers clean pasted log lines or addresses before sending them.

03

Teams and agencies

Give staff a simple on-site tool for tidying copy from documents.

04 / Installation and setup

How to add a whitespace cleaner in Elementor

Start with Complementor installed and your license connected. Enable this module in the WordPress library, then configure it in Elementor.

  1. Install Complementor, connect your license and enable Whitespace cleaner in the Complementor library.

  2. Drag the Whitespace cleaner widget onto the page in Elementor.

  3. In Content, set the heading, labels and optional example text.

  4. In Behaviour, choose how blank lines are handled and whether to update while typing.

  5. Style the input, buttons and result box in Presentation, then publish and try it.

05 / Content and style controls

Customize whitespace cleaner in Elementor

Configure the settings available for this module to suit the page you are building.

  • Trims each line and collapses runs of spaces and tabs.

  • Blank lines: keep one between paragraphs, keep all or remove all.

  • Turns non-breaking and other Unicode spaces into normal spaces and drops zero-width spaces.

  • Shows “21 characters removed.” or that the text was already tidy.

  • Copy result button with a fallback for sites without the Clipboard API.

  • Optional live updating while visitors type.

  • Style the input, buttons with hover colours and the result box.

06 / Choose the right approach

Whitespace cleaner and Elementor alternatives

Compare the existing Elementor workflow with this Complementor module before choosing your setup.

Find and replace in a text editor

Code editors can do this with regular expressions. Prefer them for one-off private work; use this widget when your visitors need the tool on your site.

WordPress sanitising on save

WordPress cleans some markup when content is saved, but it does not tidy spacing in text visitors want to reuse elsewhere.

Elementor HTML widget with custom script

You can write your own tool in an HTML widget. This widget gives the same result with native controls, translations and styling.

07 / Requirements and compatibility

Whitespace cleaner compatibility with Elementor

WordPress 6.5+PHP 8.0+Elementor 3.25+
  • Requires Elementor.
  • JavaScript is needed to clean new text; the example result is rendered on the server.
  • Spaces only: it does not fix spelling, punctuation or HTML.

Complementor uses classic Elementor APIs. Atomic-native controls are not implemented. Check your theme, cache and integrations on a staging site before release.

08 / Common setup problems

Troubleshoot whitespace cleaner

Check these settings if the published page behaves differently from the editor.

Why are indents removed?

Each line is trimmed, so leading spaces and tabs go. This tool is for prose and lists, not for indented code.

Why do two lines stay apart by one blank line?

Blank lines is set to Keep one between paragraphs. Choose Remove all to join them.

Why does Copy result not copy?

Some browsers block copying without a user action. The widget then says so; select the result and copy it manually.

Why does the result not change while typing?

Update while typing is off. Turn it on in Behaviour, or press Clean text.

09 / Frequently asked questions

Whitespace cleaner plugin questions

Does it need Elementor Pro?

No. It works with the free version of Elementor.

Is the text sent anywhere?

No. Cleaning and copying happen in the visitor's browser; nothing is submitted or stored.

Does it change line breaks inside a line?

No. Line breaks are kept; only spaces within and around lines, and extra blank lines, are changed.

Is it accessible?

Yes. The field and result have labels, buttons are keyboard accessible with a visible focus outline, and the summary is announced as a status message.

Can I show an example?

Yes. Initial input is cleaned when the page loads, so visitors see a before and after.

10 / Annual All Access subscription

Get whitespace cleaner with Complementor

This module is included with all 1007 current Complementor solutions. Choose your production website allowance; every plan includes the same modules.

All Access · 1 site

One website

$29USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 1 site ↗

Renews at $29 USD each year.

All Access · 5 sites

A few websites

$49USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 5 sites ↗

Renews at $49 USD each year.

All Access · 25 sites

More websites

$99USD / year
  • All 1007 current modules
  • Plugin downloads and updates for one year
  • New releases during the paid term
  • Product support
Choose 25 sites ↗

Renews at $99 USD each year.

Applicable taxes extra. Annual subscriptions renew automatically unless canceled in your customer account. Elementor Pro is required for Exclude current post. Read the terms and 14-day technical-issue refund policy.