Raw terminal outputs, messy CSV dumps, and copied PDF tables frequently contain erratic tab spacing, duplicate line entries, trailing blank rows, and inconsistent indentation. Sanitizing these datasets manually line-by-line is inefficient and prone to missed anomalies.
The Text Cleaner provides an automated cleanup pipeline with customizable filters that sanitize raw datasets in volatile browser memory.
1. Available Cleanup Rules & Filters
TERMINAL // CODE
[ Raw Dirty Input ] ──▶ [ Filter Pipeline ] ──▶ [ Clean Output ]
A. Whitespace Normalization
- Trim Leading & Trailing Whitespace: Strips outer spaces from each individual line.
- Collapse Multiple Spaces: Reduces sequential interior spaces (
) to a single clean space (). - Remove Empty Lines: Discards blank rows or lines containing solely whitespace characters.
B. Deduplication
- Remove Duplicate Lines: Retains only the initial occurrence of any unique row, stripping identical repeated records.
- Case-Insensitive Deduplication: Treats
Server_01andserver_01as identical duplicates.
C. Sorting & Ordering
- Alphabetical Ascending (A ──▶ Z): Standard lexicographical collation.
- Alphabetical Descending (Z ──▶ A): Reverse ordering.
- Numeric Sorting: Orders integers and floats according to mathematical value rather than string code points (e.g.,
2precedes10).
D. Prefixing & Suffixing
- Prepend numbering (
1.,2.) or bullets (-) to each row. - Append custom delimiters (e.g. trailing commas
,for JSON arrays or SQLIN (...)statements).
2. Step-by-Step Cleaning Sequence
TERMINAL // CODE
[ Step 1: Paste Dirty Data ] ──▶ [ Step 2: Enable Desired Rules ] ──▶ [ Step 3: Copy Clean Output ]
- Paste your unformatted logs, list items, or messy text rows into the input field.
- Toggle the desired sanitation options (Trim Whitespace, Deduplicate, Sort, Remove Empty Rows).
- The cleaned text updates instantly in the output viewport, alongside updated row and character tallies.
- Click Copy Clean Text or download as a
.txtfile.