CSV → JSON Lines
Convert CSV to JSONL (one JSON object per line). Common format in logs, ML pipelines and document databases.
JSONL:
—
One JSON object per line, from CSV
You exported data as CSV from a spreadsheet or a database, and the tool on the other end wants JSONL: document database imports, ML training pipelines, BigQuery loads. Unlike a regular JSON array, JSONL puts one complete object on each line with no surrounding brackets — you can stream it, append to it, and merge files with a plain cat. Paste the CSV: the first line becomes the field names and every following line becomes one object.
The parser covers the essentials of RFC 4180: a quoted field may contain commas and line breaks, quotes inside a field are written doubled, and the \r from Windows files is ignored. Two behaviors worth knowing: every value comes out as text, with no type guessing — the 30 in an age column becomes the string '30' — and the separator is always a comma. Excel in many European and Brazilian locales exports CSV with semicolons; replace them first or everything lands in a single column.
Check the header line before converting: the names become JSON keys exactly as written, spaces and accents included — valid JSON, but awkward to access in code. A row with fewer columns than the header gets empty strings for the missing fields; extra cells beyond the header are dropped. The conversion runs in your browser with no upload, so a customer spreadsheet never leaves your machine.
Frequently asked questions
What is the difference between JSON and JSONL?
Do numbers stay numbers?
My CSV uses semicolons, what now?
Related Tools
JSON Lines → CSV
Convert JSONL (NDJSON) file to CSV, deriving headers from the union of all observed object keys.
Fixed-Width ↔ CSV/JSON Converter
Converts fixed-width text files to CSV, TSV or JSON and back, with automatic column detection, a position map and per-line warnings.
CSV to JSON
Convert CSV to JSON. The first row becomes object keys, the rest become array items. Supports separators , ; and \t. Auto-detects numbers and booleans. Everything in your browser.
JSON to Java Class
Convert JSON to a Java POJO class with getters/setters and inferred types. Supports nested classes and arrays as List. Everything in your browser.
JSON to TOML
Convert JSON to TOML, the readable config format used by Cargo (Rust), pyproject.toml, Hugo, etc. Supports strings, numbers, booleans, arrays and nested tables. Everything in your browser.
JSON to YAML
Convert JSON data to YAML format.