Processed online by Toolvito
Data Profiler & Cleaner
Choose a CSV, TSV, text or Excel file (or paste the data) to see what is in each column: its type, missing and distinct values, the most common values and shapes, extra spaces and duplicate rows. Then clean it with only the steps you tick and download the cleaned CSV with a log of every change.
How to use it
- Choose Profile to look at the data, or Clean to change it.
- Choose the file (CSV, TSV, TXT or the first sheet of an XLSX workbook, up to 32 MB, 200,000 rows and 200 columns), or paste the data with a header row first.
- For cleaning, tick the steps you want. For duplicates you can name key columns (such as email) so that rows with the same key count as duplicates; the first row is kept.
- Select Run. Read the findings and the counts; download the profile, or the cleaned file and changes.csv.
The profile
- Per column: the inferred type (whole number, number, date, true/false or text), present and missing cells, distinct values, values of another type, cells with extra spaces, the range or the length, the three most common values and the most common shapes (A for a letter, 9 for a digit, so 99-AAA shows a pattern).
- For the table: the number of rows and columns, exact duplicate rows, near duplicates (ignoring spaces and upper/lower case) and a list of things to look at. Every cell is read as text, so nothing is changed by reading.
The cleaning steps
- Trim spaces at the start and end, collapse runs of spaces inside, turn missing markers (NA, N/A, null, none, -, ?) into empty cells, remove empty rows and empty columns.
- Remove duplicate rows (all columns or the key columns), fix numbers written with thousands separators (1,200 → 1200) or a typographic minus, write dates as ISO 8601 (2024-02-05; choose whether 05/02/2024 is day first), change the case of text, fill missing cells (mean or median of a numeric column, a value, or the value above).
- Protect formulas: cells that start with =, +, - or @ can run as formulas when a spreadsheet opens the file; this step puts an apostrophe in front.
Checks and limits
- Every change is a row of changes.csv (row, column, before, after, step). The cleaned file is read back with Python’s csv module: the row count must equal the input minus the removed rows, and after trimming and deduplication no cell may have outer spaces and no duplicate may remain.
- The output is UTF-8 CSV. Only the first sheet of a workbook is read, as values (formulas give their last saved result). Not covered: database or SQL profilers, deduplicating photos, files or mailboxes, and site maps.