{"uid":"cap_895K3rraShRb1_aGuND_x","slug":"402utils-csv-to-json-converter-8099fa2e","name":"402utils CSV to JSON Converter","description":"Convert CSV to JSON with a strict RFC 4180 parser: quoted fields, doubled quotes, delimiters and line breaks inside quotes, mixed CRLF/LF, BOM. Auto-detects comma, semicolon, tab or pipe (or set delimiter). First row becomes object keys; headers:false yields string arrays. Ragged rows and unterminated quotes are repaired and reported in errors[], never a crash. All values stay strings. Send raw CSV text or JSON {csv}. Max 5 MB.","url":"https://402utils.com/v1/csv-to-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","description":"CSV text, max 5 MB UTF-8. A leading BOM is stripped; CRLF and LF row endings may be mixed."},"headers":{"type":"boolean","default":true,"description":"true (default): the first record is the header row and rows are objects — duplicate header names get _2/_3 suffixes, empty names become col_<n>. false: rows are string arrays and headers is null."},"delimiter":{"enum":[",",";","\t","|"],"type":"string","description":"Field delimiter. Omit to auto-detect from the first 20 records (quote-aware field-count consistency; ties prefer comma)."}}},"responseSchema":{"type":"json","example":{"rows":[{"city":"Paris","name":"Dupont, Jean","signup":"2026-05-01"},{"city":"Berlin","name":"Müller, Anna","signup":"2026-06-12"}],"errors":[],"headers":["name","city","signup"],"rowCount":2,"delimiter":";"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.2000","medianCents":"0.2000","p90Cents":"0.2000","minCents":"0.2000","maxCents":"0.2000","p95Cents":"0.2000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Rr0hEQVQJo1Wgj14vAK8l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts CSV text to JSON using a strict RFC 4180 parser with auto-delimiter detection, header mapping, and error repair for malformed input","exampleAgentPrompt":"Can you convert this CSV text to JSON for me? It uses semicolons as delimiters and the first row is headers — here's the data: 'name;age;city\\nAlice;30;NYC\\nBob;25;LA'","exampleUseCases":null,"resultDescription":"Returns a JSON array of objects (when headers:true) where each row becomes a key-value object with header names as keys, or an array of string arrays (when headers:false). Also returns a null or populated errors[] array describing any repaired issues like ragged rows or unterminated quotes. All values are strings.","failureModes":["CSV exceeds 5 MB limit — request rejected","Completely unparseable input with no recoverable structure — errors[] populated but output may be empty","Invalid delimiter value not in allowed enum — validation error","Malformed JSON envelope body — parsing error","Network timeout on large payloads near 5 MB limit"],"whenToPreferThis":"Use this endpoint when you need robust RFC 4180-compliant CSV parsing with auto-delimiter detection (comma, semicolon, tab, pipe), proper handling of quoted fields containing commas or line breaks, BOM stripping, and graceful repair of malformed rows. Prefer this over generic CSV parsers when data quality is uncertain and you need error reporting without crashes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:34:25.054Z","isFirstParty":false,"canonicalSlug":"402utils-csv-to-json-converter-8099fa2e"}