How to use Data Text Cleaner
Paste the text, run the cleaner and copy the result.
Read more: How to Use Data Text Cleaner: Steps and a Worked Example
Column names
A trailing space in a column name copied from a spreadsheet can break a query.
Metric definitions
Clean definitions before adding them to a data catalogue.
How it works
Trims the full text and collapses repeated horizontal whitespace.
Examples
- With the default values
metric: daily_active_users source: events grain: day
Prepare your inputs
Paste prose with unwanted repeated horizontal whitespace. Preserve a copy when spacing conveys meaning.
Understand the result
Each line is trimmed and repeated spaces or tabs are collapsed. Line breaks remain, but indentation in code or tables is lost.
About this version
This page uses a shared calculation method. Industry and country labels provide a browsing context; they do not change the formula or imply specialist or local regulatory validation. Currency labels do not perform currency conversion.
Limitations and assumptions
Changes spacing only; it does not check SQL.
Frequently asked questions
SQL formatting?
No, only spaces.
Uploaded?
No.
Lines kept?
Yes.