01 / Example
Example
name,city
Ada,Hello
Lin,Welcome[
{
"name": "Ada",
"city": "Hello"
},
{
"name": "Lin",
"city": "Welcome"
}
]Code Beautify / MULTIVERTO
Turn a header-based CSV table into JSON objects.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
name,city
Ada,Hello
Lin,Welcome[
{
"name": "Ada",
"city": "Hello"
},
{
"name": "Lin",
"city": "Welcome"
}
]02 / Guide
A CSV file containing the header sku,qty and the row A7,02 becomes a JSON array with one object, where sku is "A7" and qty is "02". The leading zero survives because this converter treats every CSV cell as a string; it does not infer a number. That is useful for product codes but means arithmetic requires an explicit type conversion later. Check that each row has the same column count and that header names are unique before relying on the output.
CSV is a table of records and cells, not a typed object model. The first row is treated as a header; commas inside a cell require quotation marks and a quotation mark inside a quoted cell is doubled. The parser accepts line breaks within quoted fields and rejects inconsistent row widths or duplicate header names. CSV-to-JSON therefore produces strings for every cell, even when a value looks like a number or boolean.
Begin with a CSV table whose first record contains nonempty, unique column names. The parser reads quoted commas, doubled quotes and line breaks inside cells before assigning fields to object properties. Every later record must have the same number of cells as the header. The output is an array of objects, with each cell retained as a string rather than guessed into a number, date or boolean. Try a row with an empty field to see which property receives it. A duplicate header would overwrite data in an ordinary object, so this tool rejects it instead of producing a misleading JSON result. In the live example, with line breaks shown as JSON escapes, input "name,city\r\nAda,Hello\r\nLin,Welcome" produces output "[\n {\n \"name\": \"Ada\",\n \"city\": \"Hello\"\n },\n {\n \"name\": \"Lin\",\n \"city\": \"Welcome\"\n }\n]". A CSV header such as user_id and a row containing 0012 exposes a common import trap. The JSON output correctly stores 0012 as text; a later spreadsheet may coerce it to a number. Keep the identifier as a string in the receiving schema and verify quoted delimiters in another row.
Read a CSV export into JSON objects to inspect named columns in an API test. A quoted comma belongs to one cell, and doubled quotation marks represent a literal quote. Every imported cell stays a string, including 42 and true. Check header uniqueness and row width before assuming records can be matched by property name. Count the parsed objects and inspect the first and last rows after conversion. Confirm that a comma within a quoted source cell stayed inside one JSON string, and that an embedded line break did not create an extra record. If the receiving API expects typed numbers or booleans, validate and convert those fields separately after parsing. Check header spelling and case against the API schema; a syntactically valid JSON object may still use the wrong property names. Keep the original CSV while investigating row-width errors instead of deleting fields until the parser accepts it.
Explore guides