REAL PAYMENTSBase (chain id 8453) · USDC payments have real value. Paid upstream failures are not automatically refunded.
Guide · CSV to JSON

CSV to JSON without losing leading zeros.

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.

Try with your own data

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.

01Why the zeros disappear

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.

02Keep every cell a string

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.

First converted row
{"customer_id": "00042", "zip": "02134", "phone": "+44 20 7946 0958", "note": "Paid, shipped"}

03Formulas stay text

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.

04Convert the real numbers yourself

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.

05Run it inside an agent

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.

Questions

Will 007 stay 007?

Yes. Every cell is returned as a string exactly as it appears in the CSV, including leading zeros, plus signs and spaces.

Does it handle commas inside values?

Yes. Values wrapped in double quotes may contain commas; "Paid, shipped" stays a single cell.

Is my CSV uploaded?

Not on this page. Conversion runs in your browser and the data is not sent to InvokePort.

What are the limits?

Comma separator, one header row with unique names, up to 500 data rows, 32 columns and 4,096 characters per cell.

Next steps

Free · in browser

CSV to JSON

CSV to JSON, with strings kept intact.

Guide

Fix invalid JSON from LLM output

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.