CSV Workbench
Clean a Spreadsheet Without Excel
Load a CSV or TSV, see it in a fast grid, and fix it step by step. Profile every column, clean spaces, case, dates and numbers, remove duplicates, sort and filter, chart a column, then export CSV, TSV, JSON or a Markdown table. Every step can be undone, and the file never leaves your browser.
CSV Workbench
Your files and pasted data never leave this browser. Nothing is uploaded.
Steps apply to the columns chosen above (all columns when none are chosen).
Spaces and case
Empty rows and columns
Find and replace
Plain text: what you type is found as is. Turn on Regular expression to use a pattern, and pick the flavor of the program the data is going to.
Split a column
Merge the chosen columns
Dates to ISO (YYYY-MM-DD)
Normalize numbers
Removes currency signs, spaces and thousands separators; (5) becomes -5.
Rename a column
Rows count as duplicates when every column matches. Choose columns above to compare only those, for example just an email column.
Sort
Number and date columns sort by value, text sorts naturally (file2 before file10), empty cells go last.
Keep only rows where
Need SQL? to join, group and query it.
Need nested JSON, NDJSON or SQL INSERT statements? .
Common Use Cases
Mailing List Cleanup
Trim stray spaces, fix name case and remove duplicate email addresses before an import into your email or CRM tool.
Prepare an Import
Turn mixed dates into ISO, strip currency signs from prices and rename columns so a database or app accepts the file first time.
Check an Export
Profile a report from another system: empty columns, unexpected types, odd values and how many distinct entries each column has.
Quick Charts
Count orders by state, total sales by month or see the spread of a number column, then save the chart as a PNG for a slide.
No Excel on Hand
Work on a CSV on a Chromebook, a Linux machine or a locked-down laptop without installing a spreadsheet program.
Private Data
Customer lists, payroll and patient exports stay on your computer: nothing is uploaded, so there is no third party to trust.
How Each Step Works
Profile types
Integer, decimal, date, true / false, text or empty. A value with a leading zero, like a ZIP code 00501, stays text - the same rule the SQL Playground uses when it imports the file.
Dates
Reads 2024-03-07, 03/07/2024, 7.3.24, Mar 7, 2024, 7 March 2024 and times with AM / PM. A day over 12 decides day-first or month-first; otherwise month-first, and you are told.
Numbers
$1,234.50 becomes 1234.5, 1.234,50 becomes 1234.5 with a decimal comma, (75) becomes -75 and 12% becomes 12. Cells that are not numbers are left as they are and counted.
Duplicates
Compare every column or only the ones you choose, ignore case and stray spaces, keep the first or last copy, and see each removed row with its original row number.
Regular expressions
Pick the flavor of the program the data is going to: JavaScript, PCRE2 (PHP), Python, .NET or RE2 (Go, BigQuery), each run on its real engine in your browser. \D matches any non-digit, Whole cell only anchors the pattern to the cell, and the replacement uses that flavor's own group syntax ($1 in most, \1 in Python).
Exports
CSV and TSV follow RFC 4180 and read back identically in CSV to JSON and the SQL Playground. JSON types values the same way CSV to JSON does. Chart PNGs carry RJL.io image metadata.
Frequently Asked Questions
Why We Built the CSV Workbench
Cleaning a CSV is a chore everyone does and nobody enjoys: trimming spaces, fixing names in capitals, turning five date styles into one and finding the rows that appear twice. Spreadsheets can do it, but they also quietly change your data - stripping leading zeros from ZIP codes and turning long IDs into scientific notation. This workbench keeps every value as text until you decide to change it, and shows you exactly what each step did.
Customer lists and payroll exports should not be uploaded to a stranger's server to be tidied, so everything here runs in your browser, with an undo history so no step is ever a risk.
It is part of the free developer toolkit on RJL.io and reads files exactly like its neighbors: convert the result with CSV to JSON, query it with the SQL Playground, or make test data to practice on with the Mock Data Generator.
CSV parsing by Papa Parse (MIT). Grid by Tabulator 6.7.1 (MIT). Charts by Chart.js 4.5.1 (MIT). Dates read by Luxon 3.7.2 (MIT).