In this guide
Text-first CSV import preserves leading zeros and long IDs. The preview and download give another application an inspectable result, while your original remains separate.
Convert CSV and JSON files
Files and text are processed in this browser.
A comma inside a quoted field is still data
CSV needs a parser that understands field boundaries. A comma or line break inside a quoted cell belongs to that cell. A quotation mark inside it is represented by two quotation marks. Splitting the input at every comma or every line would damage those records, even though the file looks like an ordinary table in a spreadsheet.
The header row gives each JSON property its name. Duplicate or empty names create ambiguous records, while a row with the wrong number of cells cannot be mapped consistently to those headers. The converter reports header and row-width errors before producing output.
A comma inside a quoted CSV field belongs to that field, and values stay strings so an identifier like 00123 does not become 123. The row is an illustration.
- RFC 4180: CSV field examples
The published reference for headers, quoted fields, embedded line breaks and escaped quotes.
Preserve identifiers as strings
A value such as 00123 can identify a record even though a spreadsheet may interpret it as the number 123. Keeping CSV values as strings preserves that distinction. The same applies to long account, post or product identifiers: digits used as a label do not need arithmetic conversion.
JSON permits numbers, but receiving software has precision limits. RFC 8259 identifies the interoperable integer range around ±(2^53 − 1) for common binary64 implementations. Long integer IDs should therefore be quoted in JSON. This converter rejects unsafe integer values instead of exporting an identifier whose digits may already have changed.
- RFC 8259: JSON values and number interoperability
Primary reference for structured values, strings, Unicode and numeric precision.
One CSV row corresponds to one flat record
A flat JSON record contains scalar values such as text, numbers, booleans or null. Nested objects and arrays need an explicit table design: a list might become several rows, several columns or a separate file. This converter accepts flat records and reports nested values that require a separate mapping.
The export uses columns in first-seen key order. Missing values and null become empty cells, with a note when that occurs. CSV cannot retain those distinctions or JSON’s other type information, so a later text-first import returns strings. The source JSON remains useful when the original types matter.
Spreadsheet protection changes cell text
Spreadsheet programs can interpret cells beginning with characters such as = as formulas. The protected export, enabled by default, prefixes risky text with an apostrophe for literal display. That prefix changes the exported cell content and should be used deliberately; a data-processing pipeline that expects the original text may need the unmodified export instead.
Ordinary CSV quotation protects field boundaries, not spreadsheet formula interpretation. OWASP also documents that spreadsheet save-and-reopen behavior can affect escaping. The destination application and the export mode therefore belong with the file when it is handed to someone else.
- OWASP: CSV and formula injection
Primary explanation of formula-leading characters and spreadsheet handling limits.
Common questions
Why are CSV numbers returned as JSON strings?
Text-first import preserves leading zeros and identifiers without guessing types. A column’s meaning determines whether a later numeric conversion is appropriate.
Can it flatten nested JSON automatically?
The tool accepts flat object arrays. Nested structures need an explicit mapping before they can become a predictable table.
Do quotation marks stop spreadsheet formulas?
CSV quoting identifies field boundaries. Formula interpretation is separate; choose the protected export when handing text to a spreadsheet.
Sources and method
CSV parsing follows the common format documented in RFC 4180. JSON notes follow RFC 8259. Spreadsheet-export precautions reference OWASP’s formula-injection guidance.
Sources checked on .
- RFC 4180: Common CSV formatrfc-editor.org
- RFC 8259: JSON interchange formatrfc-editor.org
- OWASP: CSV injectioncommunity.owasp.org
