Skip to main content
Trim Whitespace bulk action showing cleanup options for leading, trailing, and internal spaces Remove unwanted spaces and line breaks from text fields across multiple products. Essential for cleaning up imported data or fixing formatting issues from copy-paste.

How to use it

1

Select products

Check the products you want to clean up, or use filters and select all matching results.
2

Open Bulk Edit and choose Trim Whitespace

Click Bulk Edit, then search for “Trim Whitespace” or find it under Text & Content.
3

Select cleanup options

Choose which types of whitespace to remove — leading, trailing, internal duplicates, or extra line breaks.
4

Choose target fields and apply

Select the fields to clean, then click Apply.

Configuration options

OptionDescriptionDefault
Remove leading spacesStrip spaces from the beginning of textOn
Remove trailing spacesStrip spaces from the end of textOn
Normalize internal spacesConvert multiple consecutive spaces to a single spaceOff
Remove extra line breaksRemove redundant blank lines in multi-line text fieldsOff
Target fields: All text fields and custom text attributes.

Tips

  • Run this as a routine cleanup after importing product data — CSV and Excel imports often introduce hidden whitespace.
  • Enable Normalize internal spaces when you see double-spaced text scattered across product names or descriptions.
  • This is a safe action — trimming whitespace won’t change the meaning of your content, so it’s a good first step before other text operations.