What is CSV / JSON5 Converter?
CSV and JSON5 Converter supports development workflows that use both tables and relaxed JSON configuration. CSV rows become a JSON5 root array with header names as keys. Reverse conversion accepts row objects only, avoiding guesses about arbitrary nested settings. Comments, single quotes, unquoted keys, and trailing commas matter during parsing but normalize after conversion, so validate strict API output separately. Common workflows include the following. Turn CSV fixtures into JSON5. Export JSON5 records as a table. Review relaxed syntax and column data. The page also documents input boundaries, output behavior, and practical cautions so you can review the result before putting it into an application, configuration, test, or production workflow.
When to use it
- Turn CSV fixtures into JSON5.
- Export JSON5 records as a table.
- Review relaxed syntax and column data.
How to use it
- Select the delimiter.
- Check that CSV headers are unique.
- Use a JSON5 root array for reverse conversion.
- Review strings and spreadsheet safety.
- Load one of the realistic examples first to verify the selected options and processing direction before replacing it with your own data.
- Review the output, status message, and documented limits; copy, download, or continue only after the result matches your expectation.
Runnable examples
The “Example 1” and “Example 2” buttons load the matching inputs. They cover different structures, directions, or boundaries and can be run directly in the workspace.
Example 1
id,name,status
62,CSV JSON5,ready
63,CSV NDJSON,plannedExample 2
[{ id: '62', name: 'CSV JSON5', status: 'ready' }, { id: '63', name: 'CSV NDJSON', status: 'planned' }]Input rules
- CSV headers must be unique.
- JSON5 must be a root array of row objects.
- Dangerous keys and unsafe numbers are rejected.
- Text input is counted before processing and is limited to 1,000,000 characters on this page; file modes apply the separate file limit shown in the workspace.
- JSON5 comments and source formatting are not retained.
Output rules
- JSON5 output is a row-object array.
- CSV output treats fields as text.
- Comments and source formatting are lost.
- Output reflects only the current input, direction, and options; rerun after changing a mode or value instead of treating an earlier result as current.
- JSON5 to CSV requires an array of row objects.
Limitations and cautions
- JSON5 comments and source formatting are not retained.
- JSON5 to CSV requires an array of row objects.
- CSV cells import as strings.
How your data is handled
All parsing, conversion, Base64 work, and intermediate data remain in the current browser tab. JSONLane does not upload the input or retain it after refresh or close.