# Transforms: Cleaning Values Step by Step

Source: https://ducted.app/help/kb/transforms
Category: Transforms & Logic

Transforms clean and reshape a value on its way to the output. Chain as many as you need on any field - they run top to bottom, each one acting on the result of the last.

![A field's transform pipeline with format and append steps](https://ducted.app/kb/transform.png)

## How the pipeline works

Open a field and add transforms in order. The value flows through each step:

`  t-shirt ` → **strip** → `t-shirt` → **Title Case** → `T-Shirt` → **prepend** → `Men's T-Shirt`

## Available transforms

- **lowercase / UPPERCASE / Title Case** - change text case
- **strip** - remove leading and trailing whitespace
- **number** - keep only digits and decimal separators (great for prices with currency symbols)
- **Format currency** - render a number as money: pick the symbol or currency code, decimal places, and the thousands separator - including **none** for platforms that want a plain `39990 USD`
- **prepend / append** - add fixed text before or after (e.g. prepend `https:` to protocol-relative URLs, append ` USD`)
- **replace** - find and replace text, including regex-driven find-and-replace
- **truncate** - cap the value at N characters (useful for title length limits)
- **Take from list** - split a delimited value (e.g. comma-separated image URLs) and keep just one item: the first, the last, or a specific position
- **Replace separator** - swap the delimiter in a list (e.g. turn a comma-separated list into a pipe-separated one), trimming each item
- **Default if empty** - substitute a fixed value whenever the field comes out blank (e.g. `in stock`), without writing a regex

## Transform presets

Save a multi-step chain you use often as a **preset**, then apply the whole pipeline to another field in one click - no rebuilding it step by step.

## Order matters

Because each step feeds the next, sequence changes the result: strip before Title Case, format a number before appending a unit. The Live Preview shows the output after every step, so you can see exactly where a value changes.
