Conversor de CSV a JSON
Convert comma-separated values to JSON arrays or objects.
About CSV to JSON
CSV (Comma-Separated Values) is a simple tabular data format, while JSON (JavaScript Object Notation) is the standard format for APIs and web applications. This tool converts between them, handling quoted fields, escaped characters, and various delimiters. When "First row is header" is checked, column names become object keys in the JSON output.
How It Works
- Paste CSV or upload a file: Enter CSV data directly or upload a .csv file. The tool auto-detects the delimiter (comma, tab, semicolon, or pipe).
- Configure options: Set whether the first row is a header (used as JSON keys), how to handle empty values, and whether to auto-detect number types.
- Convert: Each CSV row becomes a JSON object with keys from the header row, or a plain array if there's no header.
- Copy or download: Copy the JSON array or download as a .json file for use in code or APIs.
Why Convert CSV to JSON?
CSV is the universal data export format for spreadsheets, databases, and analytics tools — but most modern APIs, JavaScript applications, and NoSQL databases work with JSON. Converting CSV exports from Google Sheets, Excel, Airtable, or database tools to JSON is a daily task in data engineering, web development, and API integration work. This converter handles common CSV edge cases: quoted fields containing commas, escaped quotes inside quoted fields, Windows-style line endings (CRLF), and mixed number/string columns with smart type detection.
Features
- Auto delimiter detection — comma, tab, semicolon, or pipe
- Header row support — first row used as JSON key names
- Type coercion — numbers and booleans detected automatically
- Large file support — handles files with thousands of rows
- Pretty-print option — indented or compact JSON output
Related Tools
JSON to CSV Converter
Convert JSON arrays to CSV format. Customizable delimiter, download as .csv file.
JSON Formatter & Validator
Format, minify, and validate JSON instantly. Configurable indentation and error messages.
HTML Table Generator
Build HTML tables visually with a spreadsheet editor. Customize styles, export clean HTML code.