> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wisepim.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trim Whitespace

> Bulk remove stray leading, trailing, and extra spaces from product text fields. A safe first step to clean up imported or copy-pasted data.

Imports and copy-paste often leave hidden spaces and blank lines behind. They break sorting, search, and feeds, even though you cannot see them. This action strips that clutter from your text fields across many products at once.

It is a safe cleanup: trimming spaces never changes the meaning of your content. Run it first, before other text actions.

## Clean up the spaces

<img className="block dark:hidden" src="https://mintcdn.com/swiftsyncai/vT5bx0c0dDPVXf2p/images/marketing-screenshots/products/products-bulk-edit-trim-whitespace-light-transparent.webp?fit=max&auto=format&n=vT5bx0c0dDPVXf2p&q=85&s=f8e3dcc7ebf27b1dafbecb89e6dfd5b7" alt="Bulk editing, Trim Whitespace across many products at once in WISEPIM" width="2252" height="2004" data-path="images/marketing-screenshots/products/products-bulk-edit-trim-whitespace-light-transparent.webp" />

<img className="hidden dark:block" src="https://mintcdn.com/swiftsyncai/MyBPEkOfh-HXAC-1/images/marketing-screenshots/products/products-bulk-edit-trim-whitespace-dark-transparent.webp?fit=max&auto=format&n=MyBPEkOfh-HXAC-1&q=85&s=f9c65b1cc2056f858c45ef5a1dbc16ca" alt="Bulk editing, Trim Whitespace across many products at once in WISEPIM" width="2252" height="2004" data-path="images/marketing-screenshots/products/products-bulk-edit-trim-whitespace-dark-transparent.webp" />

<Steps>
  <Step title="Select products">
    Check the products you want to clean up. Or use filters and select all matching results.
  </Step>

  <Step title="Open Bulk Edit and choose Trim Whitespace">
    Click **Bulk Edit**, then search for "Trim Whitespace" or find it under **Text & Content**.
  </Step>

  <Step title="Choose what to remove">
    Pick the cleanup options: leading spaces, trailing spaces, internal duplicates, or extra line breaks.
  </Step>

  <Step title="Choose target fields and apply">
    Select the fields to clean, then click **Apply**.
  </Step>
</Steps>

## Cleanup options

| Option                        | What it does                                      | Default |
| ----------------------------- | ------------------------------------------------- | ------- |
| **Remove leading spaces**     | Strip spaces from the start of the text           | On      |
| **Remove trailing spaces**    | Strip spaces from the end of the text             | On      |
| **Normalize internal spaces** | Collapse multiple spaces into a single space      | Off     |
| **Remove extra line breaks**  | Remove redundant blank lines in multi-line fields | Off     |

**Target fields:** all text fields and custom text attributes.

<Tip>
  Turn on **Normalize internal spaces** when you spot double spaces scattered through names or descriptions. It is common after merging data from several sources.
</Tip>

## Related

<CardGroup cols={2}>
  <Card title="Standardize Text Case" icon="type" href="/en/essentials/bulk-editing/standardize-case">
    Convert text to a consistent Title Case, UPPERCASE, or lowercase style.
  </Card>

  <Card title="Find and Replace" icon="search" href="/en/essentials/bulk-editing/find-replace">
    Fix typos or swap words across many products at once.
  </Card>

  <Card title="Append/Prepend Text" icon="text-cursor-input" href="/en/essentials/bulk-editing/append-prepend">
    Add a prefix or suffix to any text field across your selection.
  </Card>

  <Card title="All bulk actions" icon="layers" href="/en/essentials/bulk-editing">
    Browse every bulk editing action by category.
  </Card>
</CardGroup>
