CSV to JSON Converter

Handles quoted commas & newlines · Auto type inference · CSV, TSV & semicolon support

CSV Input (RFC 4180)
0 B
JSON Output
0 B

        
Ready
Cmd/Ctrl+Enter to run · 100% browser-local
Advertisement
Reserved fixed-height slot (CLS = 0.00) 728×90 320×100 300×50

Reliable RFC 4180 CSV Parsing Without Breaking on Quoted Fields

Splitting CSV rows with naive regex or String.prototype.split(',') corrupts data as soon as a company name contains a comma ("Acme, Inc."), a note contains escaped quotes (""SSO""), or a cell spans multiple lines. A proper RFC 4180 state machine tracks quote boundaries across characters so every field lands in its exact JSON property.

When type inference is enabled, integers, decimals, and booleans convert into native JSON primitives instead of strings, while values with leading zeros (such as "00412" postal codes) stay strings to prevent data loss. Everything runs locally so customer exports and billing spreadsheets never leave your browser.

  • RFC 4180 LexerState-machine parser supporting quoted commas, escaped "" double quotes, and multiline quoted cells
  • Type InferenceOptional conversion of numeric strings, true/false booleans, and empty cells (null) while preserving leading-zero IDs like ZIP codes
  • Delimiter ModesAuto-detects comma (,), tab (\t), semicolon (;), or pipe (|) with manual override
Will leading zeros in ZIP codes or SKU IDs be stripped?

No. Numeric strings with leading zeros (like 07030) are preserved as JSON strings even when type inference is enabled.

How do I convert CSV without a header row?

Toggle 'First row is headers' off to emit a JSON array of arrays (string[][]) or auto-indexed column keys.

Does it support pasting directly from Excel or Google Sheets?

Yes. Clipboard copies from Excel and Google Sheets use tab-separated values (TSV), which the auto-delimiter detector handles immediately.