CSV to JSON
CSV to JSON, with strings kept intact.
Customer IDs, ZIP codes and phone numbers look like numbers but are not. Converting them as numbers turns 02134 into 2134. This guide converts a CSV in your browser and keeps every cell exactly as written.
Runs in this browser. No account, wallet or API key. Your input and result are not sent to InvokePort. API automation uses a scoped key.
Many converters guess a type for every cell. 00042 parses as the number 42, 02134 as 2134, and a phone number such as 0049 30 123456 either loses its zeros or fails. The original value cannot be recovered from the number.
Spreadsheet apps do the same on open, so a file that went through a spreadsheet may already be damaged. Convert the original export, not a re-saved copy.
The converter above never guesses types. Run the example: customer_id stays "00042", zip stays "02134", the phone keeps its + and spaces, and "Paid, shipped" stays one cell because the comma is inside quotes.
{"customer_id": "00042", "zip": "02134", "phone": "+44 20 7946 0958", "note": "Paid, shipped"}The second row has =SUM(A1:A2) in the note column. It comes through as the literal string "=SUM(A1:A2)" — nothing is evaluated. If you later export to CSV for a spreadsheet, use an exporter that escapes formula-like cells; the JSON to CSV tool does.
Because nothing is converted, quantities and prices arrive as strings too. Convert only the columns you know are numeric, in your own code or schema, and leave identifiers as strings. If you need a starting schema for the result, paste a few rows into JSON → Schema + Types.
Agents can call the same converter as the invokeport_csv_json MCP tool with a scoped key. It accepts one header row, comma separators, up to 500 data rows and 32 columns.
Yes. Every cell is returned as a string exactly as it appears in the CSV, including leading zeros, plus signs and spaces.
Yes. Values wrapped in double quotes may contain commas; "Paid, shipped" stays a single cell.
Not on this page. Conversion runs in your browser and the data is not sent to InvokePort.
Comma separator, one header row with unique names, up to 500 data rows, 32 columns and 4,096 characters per cell.
CSV to JSON, with strings kept intact.
Repair, validate and export to CSV as MCP tool calls.
Repair the JSON a model returned — single quotes, unquoted keys, trailing commas, True/None, comments — then check that the repaired data is actually complete before the next step.
Replace API keys, JWTs, emails, card numbers, IPs and phone numbers in logs with consistent placeholders before an agent pastes them into a model, a ticket or a vector store.
Split documentation into retrieval chunks that keep their heading path, never cut a fenced code block and carry stable ids and line ranges for citations.