Development
CSV Malformed Row Surgeon
Surgically repair malformed CSV rows one at a time: unescaped (stray) quotes, mixed delimiters (tab/semicolon/comma in the same file), BOM-prefixed headers, CRLF/CR line endings and trailing empty lines. The surgeon parses tolerantly, shows a row-level red/green diff of every change it made (before → after, with the repair reason tagged), lists the rows it accepted unchanged, and emits the cleaned CSV. Optional AI repair can review suspicious rows after the deterministic pass. It complements the CSV Validator (which only reports problems) by actually fixing the damaged rows.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/csv-malformed-row-surgeon' \
-H 'Content-Type: application/json' \
-d '{"csvInput":"id,name,note\r\n1,Ada,\"loves, commas\"\r\n2,Grace\" Hopper,unescaped quote\r\n3\tLinus\ttab row\r\n","delimiter":",","targetDelimiter":",","stripBom":true,"unescapeStrayQuotes":true,"quoteFields":true,"normalizeLineEndings":true,"dropEmptyLines":true,"trimCells":false,"detectMixedDelimiters":true,"useAiRepair":false,"outputCsv":true}'