Add Calculated Columns, Group By and Extract Text in a CSV Online

Do the everyday spreadsheet formulas without a spreadsheet: calculate, group, extract and clean in a few clicks.

Open the Data Transformation

Data Transformation now includes seven more steps. A calculated column adds, subtracts, multiplies or divides a column by a number or another column, or gives a percentage. Round numbers works on any columns.

Extract part of text pulls the first number, an email, a URL or digits into a new column, or uses your own pattern. Pad with zeros makes fixed-width IDs such as 00042. Clean text collapses spaces, removes accents and hidden characters, or keeps only letters or digits.

Group and summarize counts rows, or sums, averages or finds the smallest or largest value, per group. Keep first or last rows trims a long file. Everything runs in your browser, and you can export the steps as code.

Open the Data Transformation

Related tool pages

Also try

How to use the Data Transformation: step by step

  1. Open Data Transformation and load a file.
  2. Add a step such as Calculated column or Group and summarize.
  3. Fill in the columns and check the preview.
  4. Download the result or export the code.

When to use the Data Transformation

  • Totals per customer, region or month
  • Computing price times quantity
  • Pulling emails or order numbers out of notes
  • Making IDs a fixed width for an import

Example

Input: plans.csv + customers.csv, key = id

Output: id, first_name, plan, amount

Frequently asked questions

Which transformations are available?

Join with a second file (inner, left, right, full), trim spaces, concatenate columns, change case, find and replace, split a column, rename, remove columns, reorder columns, remove empty rows or columns, filter rows, remove duplicates, sort and fill empty cells.

Can I run several steps?

Yes. Steps run from top to bottom and each one sees the result of the one before. You can reorder or remove them.

Can I join two files or combine columns?

Yes. Data Transformation lets you join two CSV or Excel files on a key (inner, left, right or full), and trim spaces, concatenate columns, change case, find and replace, split, rename, filter, sort, remove duplicates and fill empty cells. You choose the steps, check the result and download it. Your files stay in your browser.

Can I export my transformations as code?

Yes. After you add and fill in your steps, open Export recipe as code under the result. Choose DuckDB SQL, Python (pandas), PySpark or a dbt model, then copy or download the code. It is a readable starting point: run it on a small sample first and adapt it for your own pipeline. The DuckDB SQL is checked against the real DuckDB engine for every step.

Tip: Chain steps: add a calculated total, then group by customer and sum it.