Clean Data in Minutes – CSV & Excel Cleaning Toolkit (Python)
Clean messy CSV/Excel exports in minutes: dedupe, fix dates, phones, encoding, split, merge, validate. Dry-run + change report.

15 USD · Get it on Gumroad
✓ 30-day money-back promise – if it doesn't help, you get a full refund, no questions asked.
It is a quarter past five, and the export from the shop has just landed in your inbox. You open it and the names are shouting in capitals, half the dates read 03/04 and you honestly cannot tell which month that means, and "Café" has turned into "Café". Somewhere below, the same customer appears three times. You tell yourself you will just fix it quickly by hand, and you know that is not true. The evening is already shrinking, one cell at a time, and a small worry stays with you: did you miss a row?
Now the file is cleaned in one run, and you have already seen what would change before anything was touched. Your original stays as it was, and a short report tells you what was fixed, so you can close the laptop and trust it.
What you get – real screenshots
Stop spending hours fixing messy CSV and Excel exports by hand. This toolkit gives you eight ready-to-run Python command-line tools and one rules file that cleans a whole export in a single command – and shows you exactly what it changed.
What is included
- csv_clean – all-in-one cleaner driven by a YAML or JSON rules file (trim, null values, value mapping, case, dates, phones, numbers, dedupe, validation)
- csv_dedupe – remove duplicates by chosen columns, keep first, last or the most complete row
- csv_normalize – unify many date styles, phone formats (E.164, international, national) and numbers such as 1.234,50
- csv_trim – strip stray, double, non-breaking and zero-width whitespace
- csv_fix_encoding – convert to UTF-8, repair garbled text like Café, change delimiters, remove BOM
- csv_split / csv_merge – split by row count or column value; merge many files even with different column order, encodings and delimiters
- csv_validate – check a file against column rules (required, unique, type, regex, min/max, allowed) with an exit code for automation
- Fully commented example rules in YAML and JSON, sample messy datasets with the exact expected output (including an .xlsx), a cheat sheet, and 50+ unit and end-to-end tests
Safe by design
Dry-run mode and a CSV change report on every tool. Your original file is never modified or overwritten, values the toolkit cannot understand are left unchanged and flagged, and the scripts never use the network.
Who it is for
Small-business owners, analysts and freelancers who regularly receive messy CSV or Excel exports (CRM, shop, accounting or newsletter exports) and want a repeatable, auditable clean-up instead of manual work.
How to use
Unzip, open a terminal in the folder, run python scripts/csv_clean.py samples/customers_messy.csv --rules samples/customers.rules.yaml --dry-run, then copy and edit the example rules for your own columns. The README has step-by-step instructions for Windows PowerShell and Bash.
Requirements
Python 3.9 or newer on Windows, macOS or Linux. The scripts use only the standard library; install openpyxl (pip install openpyxl) only if you want to read or write .xlsx files. Personal and commercial use allowed; no resale or redistribution.
This product was created with AI assistance by an autonomous AI agent and checked automatically.
FAQ
What exactly is inside?
Eight command-line Python tools: csv_clean (rules-driven all-in-one), csv_dedupe, csv_normalize, csv_trim, csv_fix_encoding, csv_split, csv_merge and csv_validate. You also get example rules in YAML and JSON, sample messy files with the expected clean output (including an .xlsx), a cheat sheet, a README and 50+ tests.
Who is it for, and who is it not for?
It is for small-business owners, analysts and freelancers who regularly receive messy CSV or Excel exports (CRM, shop, accounting, newsletter) and want a repeatable clean-up. It is not for you if you want a point-and-click app with no terminal, or if you never work with exports. You will need to run a few commands.
How long does setup take?
Unzip, open a terminal in the folder and run the example command from the README, which uses a dry-run so nothing is written. You then copy the example rules and edit them for your own columns. The README has step-by-step instructions for Windows PowerShell and Bash.
Can I edit and customise it?
Yes. The cleaning rules live in a YAML or JSON file that you copy and adapt to your columns, and the example files are fully commented. The scripts are plain Python, so you can read them. Personal and commercial use is allowed; resale and redistribution are not.
What do I need to run it, and does it work with my spreadsheet software?
You need Python 3.9 or newer on Windows, macOS or Linux. The scripts use only the standard library; install openpyxl (pip install openpyxl) only if you want to read or write .xlsx files. The tools work on CSV and Excel files, but they do not open them in a spreadsheet app, and we make no claims about Google Sheets or Numbers.
Is my original data safe, and what if it doesn't help?
Your original file is never modified or overwritten. Every tool has a dry-run mode and a CSV change report, values it cannot understand are left unchanged and flagged, and the scripts never use the network. If the toolkit doesn't help you, ask within 30 days for a full refund, no questions asked.
- Nombre y apellidos en una sola columna: 3000 contactos
- Bank Statement CSV Messy Columns? The Twenty-Minute Wait
- BUSCARV no encuentra datos que sí existen: entrego hoy
- Las comas en mis celdas rompen el CSV: martes en el tren
- Country Names Spelled Differently in Excel? The Globe
- CRM Export Full of Duplicate Contacts? The Lobby at 8:40
- Mi CSV se abre con caracteres raros en Excel y lo entrego hoy
- The Export That Ate Your Evening: Cleaning Messy CSV and Excel Files
- CSV Commas Shifting Columns? The Changing Room Bench
- CSV Dates Day and Month Swapped? The Corridor Chairs
- CSV Decimal Comma Won't Add Up in Excel? The Balcony Sum
- CSV Export Full of Blank Rows? The Jammed Photocopier
- Messy CSV Export Every Week? The Conference Coffee Line
- CSV Full of Trailing Spaces and Mixed Dates? The Lunch Break Fix
- CSV Full of Duplicates Every Week? The Friday 11:00 Call
- CSV File Keeps Breaking My Import? The Tide Table
- CSV Header Repeated Mid-File? The Dance Studio Lobby
- CSV Import Failed: Encoding Error, Deadline in an Hour
- CSV Import Keeps Failing on One Bad Row? The Tea Urn
- CSV Column Names Change Every Export? The Park Bench
- CSV Junk Header Rows Breaking Import? The Blood Test Queue
- CSV Line Breaks Splitting Rows? The Loading Bay Thursday
- CSV Messy Dates and Duplicates, Due Today? The 9:05 Text
- CSV Mixed Dates and Duplicates, No Time? The Badge Table
- CSV Names ALL CAPS and lowercase Mixed? The Lanyard Box
- CSV Brackets for Negatives Won't Sum? The Pickup Line
- CSV Opens in Excel All in One Column? The Kitchen Table
- CSV Prices With Symbols Won't Convert? The Hardware Till
- Mi CSV se abre en una sola columna en Excel y lo entrego hoy
- CSV Weird Characters Every Time? The Greenhouse Thursday
- Dos listas de clientes en Excel y no sé cuáles me faltan
- Excel me borró los ceros de los códigos y ya lo envié al cliente
- Excel cambió los decimales de mi CSV y no cuadra el total
- Excel cambió las fechas de mi CSV y no sé cuáles son las originales
- Ciudades escritas de mil formas en Excel: entrego hoy
- Excel con correos mal escritos y duplicados: boletín hoy
- US and UK Dates Mixed in Excel? The Hallway Calendar
- Excel Dates Mixed Formats, Can't Sort? The Print Shop
- Mi Excel tiene duplicados y fechas mal escritas: el lunes del cierre
- Excel con espacios y nombres mal escritos: no lo limpio a mano
- Excel con filas vacías y celdas combinadas: no importa
- Merged Cells and Blank Rows Before the Deadline? The 8:15 Train
- Excel Keeps Crashing on a Huge CSV? The Replacement Bus
- CSV Long IDs Turn to 4.9E+12 in Excel? The Station Bakery
- Miles de filas desordenadas en Excel: ¿por dónde empiezo?
- Excel no suma porque los números son texto: entrego hoy
- Excel Numbers Stored as Text Again? The 10 am Report Call
- Excel cambió mis números a 1,2E+15 y ya lo mandé
- Excel Remove Duplicates Deleted Wrong Rows? Counter 31
- Excel Removed Leading Zeros From My CSV? The Courier Desk
- Saltos de línea en Excel rompen mi importación: es hoy
- Excel se cuelga al abrir un CSV enorme y lo entrego hoy
- Excel Turned My CSV Dates and Zip Codes Into Garbage
- Invalid Emails in CSV Before CRM Import? Swim Lesson Wait
- Limpio los mismos Excel a mano cada semana: ¿se puede automatizar?
- Limpio los mismos 20 Excel cada mes y ya no puedo más
- Mail Merge, State Names All Different? The Parcel Counter
- Mailchimp Import Failed? The Van Outside the Job
- Mandé el mismo correo dos veces por duplicados en Excel
- Same Company, Four Spellings in Your CSV? The 10 am Call
- CSV Column Names Don't Match? The Fair Booth
- Merging Dozens of CSV Files Every Month? The Dentist Queue
- Messy CSV Exports Every Week? The Cabin Draining Board
- Messy Excel, 40 Columns, Needed Today? The Foil Timer
- No puedo importar mi Excel de clientes al CRM: el lunes
- Nombres en mayúsculas y minúsculas en Excel: entrego hoy
- Pandas Won't Convert CSV Prices? The Rental Flat Balcony
- DtypeWarning Mixed Types in pandas CSV? The Chess Clock
- read_csv Error Tokenizing Data? The Trampoline Bench
- Phone Numbers Messy in Your CSV? The Market Stall Texts
- Mi script de Python falla con un CSV roto y entrego hoy
- Duplicates and Dates Gone Wrong: A CSV, pandas, and 11 pm
- Same Customer Spelled 5 Ways in Excel? The Fair Stand
- Same Customer Twice in Your CSV? The Two Name Badges
- Separar la dirección en Excel: 5000 filas y una llamada
- Sorted One Column in Excel, Rows Mixed Up? The Van Call
- Fixing a Messy CSV Again? The Sunday Roast Interruption
- Addresses in One Excel Column? The Copy Shop Counter
- Full Name in One Column? The Print Counter Moment
- Teléfonos en Excel en mil formatos y los necesito hoy
- UnicodeDecodeError al leer un CSV en Python y entrego hoy
- Tengo 50 archivos CSV y debo unirlos en uno hoy
- Unir varios Excel con columnas distintas y que salga desordenado
- VLOOKUP Not Working? The Hidden Space in Row 212
