Clean an export before importing it
Use the CSV Cleaner & Merger when exported tables need whitespace cleanup, combined columns or reviewed duplicate removal. It accepts UTF-8 delimited text, keeps values as strings and returns CSV plus audit files in your browser. It is free and needs no account. It does not verify that a contact exists or that an amount, date or address is correct.
If the task is changing CSV into JSON, use the CSV to JSON Converter. This cleaner keeps the output tabular and makes removal decisions visible. Use the JSON to CSV Converter first when the source is a JSON array.
Worked example: overlapping CRM exports
The built-in example contains two fictional monthly exports. The first has customer_id, email, name and postal_code. The second has email, customer_id, name and status. The column order differs, but matching names align automatically. One customer appears in both sources with additional status information in the later export.
- Load the example and select Inspect sources.
- Review the mapped columns. The resulting table has five business columns.
- Keep trimming and blank-record removal enabled for this example.
- With duplicate removal enabled, choose Selected key columns and select customer_id.
- Keep the first record or change to Keep last record in source order, then select Clean & merge.
- Review both output previews and download the removed-row report.
For these exact example sources, the input contains seven data records. One blank record and one matching-key duplicate are removed, leaving five records. Keeping the first overlapping customer preserves its postal code; keeping the last preserves its later status. The tool does not fill missing fields from the discarded duplicate. Choose the rule that fits the destination, or retain both records and reconcile them separately.
Map column names deliberately
Output names determine which source columns align. Mapping Email Address to email joins those fields across files. Names are case-sensitive: Email and email remain different until you map them together. Missing mapped values become empty strings.
Inspection trims header labels, generates names for empty headers and gives duplicate headers unique suffixes. It reports those changes. Review the mapping before cleanup, particularly when a source intentionally contains repeated column labels.
Two columns from the same source cannot share an output name because one could overwrite the other. Rename one or explicitly exclude it. Excluding a column removes it from the output, blank-record detection and duplicate comparison. A record containing data only in excluded columns can therefore count as blank.
Choose a duplicate rule
| Comparison | Use it when | Review before removal |
|---|---|---|
| All included columns | Repeated exports contain identical complete records | Extra status or timestamp fields can make otherwise related contacts different |
| Selected key columns | A stable ID or reviewed combination identifies the same record | Shared names and reused email addresses can identify different people |
| Ignore letter case | Uppercase and lowercase should compare equally for this dataset | This changes matching only; it does not rewrite retained values |
Keep-first and keep-last follow the displayed source order and the order of records within each source. Move sources before inspection when that order matters. Retained records preserve their relative order.
Records missing any selected key remain separate. The cleaner does not group every empty email address into one contact. Matching does not remove punctuation, standardize phone numbers, infer country codes or perform fuzzy name matching.
Preserve identifiers and exact values
The parser does not convert numbers, booleans or dates. Values such as 000123, 02108 and 9007199254740993 remain strings. Trimming removes whitespace only when selected.
CSV cannot carry spreadsheet column types. Quoting a value does not guarantee that Excel or another importer will keep it as text. Choose text columns during import when identifiers, postal codes or version labels must retain their exact representation. Keep the original export.
Review spreadsheet formula handling
Formula-prefix escaping is enabled by default. It adds an apostrophe to formula-like exported cells, which can include negative numbers and +phone numbers. The preview shows those changes. Disable it only when the receiving workflow needs exact source text and you have reviewed the input.
This precaution is not a guarantee for spreadsheet software or later re-saves. See the OWASP CSV Injection guidance. Never treat a downloaded CSV as safe merely because its fields are quoted.
Understand inspection errors and limits
Choose a delimiter separately for each source. Auto detection considers comma, semicolon, tab and pipe. A one-column result is valid, but inspection warns so you can check whether the delimiter was wrong.
Quoted separators, doubled quotes and quoted multiline fields are parsed as CSV rather than split on each comma. A multiline value is one CSV record even when it occupies several physical lines. Report references use record numbers, including the header when present.
Short records receive empty cells and a warning. A record with extra cells beyond its header blocks that source. Correct the source or inspect without a header row; the tool does not discard the extra cells. Malformed quoting and invalid UTF-8 must be corrected before that source can be included.
Use no more than ten sources, five MiB per source and twenty MiB total. The merged table is limited to 50,000 data records, 200 business columns and one million cells. Exports together must fit within 32 MiB. Each operation stops after thirty seconds. Low-memory devices can fail below those limits.
Read the audit files
The cleaned CSV contains the selected business columns and optional source-file/record columns. The removed-row CSV contains normalized removed values, the removal reason and the retained record for duplicates. Blank removals have no retained-record reference.
The JSON audit records source order, mapped and excluded columns, settings, counts and excluded sources. It does not include a second complete copy of the retained dataset. Audit files can contain private filenames and source details; review them before sharing.
Both tables show up to twenty output records. A shortened preview is not a file-size limit or proof that every result has been inspected.
Privacy, reset and related tools
Files, pasted text, mappings and outputs stay in current-tab memory. This tool does not upload or autosave them. The interactive area is masked for session recording. Existing consent-aware analytics receive fixed operation/result labels without filenames, headers, cell values or error messages.
Reset stops processing and clears this tool's tab state and temporary download URLs. It cannot remove files already downloaded or text copied elsewhere. Cancel retains the sources and settings so you can reduce the batch or retry.
Compare small reviewed exports with Text Diff Checker, inspect converted records with JSON Formatter, or browse the Developer tools category. The guide JSON Tips Every Developer Should Know covers adjacent structured-data work.
Technical references
- RFC 4180 from the IETF documents common CSV formatting conventions.
- Papa Parse documentation describes the parser used by this tool.
- OWASP CSV Injection explains spreadsheet formula risks and mitigation limits.