Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

JSONL Converter — JSON Lines to JSON & Back

Turn JSON Lines (JSONL / NDJSON — one JSON object per line, as used by logs, BigQuery, OpenAI fine-tuning and data exports) into a JSON array, or an array back into JSONL. Every line is validated, with the line number of each error.

Atualizado em
Convert

    Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

    Como usar: JSONL Converter

    1. Choose JSONL → JSON or JSON → JSONL.
    2. Paste the data or drop a .jsonl / .ndjson / .json file onto the input.
    3. Invalid lines are listed with their line number; tick Skip invalid lines to convert the rest.
    4. Copy or download the result.

    What is JSON Lines?

    JSON Lines (also NDJSON, newline-delimited JSON) stores one complete JSON value per line. Because each line stands alone, files can be appended to, streamed and split without parsing the whole thing — which is why it is used for logs, analytics exports, BigQuery and Elasticsearch bulk imports, and OpenAI fine-tuning files.

    {"id": 1, "name": "Ada"}
    {"id": 2, "name": "Linus"}

    A JSON array holds the same records inside [ … ], which most tools and JSON.parse expect. This converter goes both ways and validates every line.

    Common errors

    • A record spread over several lines — every record must be on a single line.
    • A trailing comma at the end of a line, or [ ] wrappers left in the file.
    • Blank lines are ignored.

    Related: JSON Formatter, JSON to CSV, CSV to JSON.

    Também pesquisado como: jsonl to json, json to jsonl, ndjson to json, json lines, jsonl validator, convert jsonl, jsonl viewer, openai jsonl.

    Ferramentas que combinam com: JSONL Converter

    • JSON5 to JSON Converter — Paste JSON5 or JSON with comments (JSONC, like tsconfig.json or VS Code settings) and get strict, valid JSON.
    • JSON Validator — Paste JSON to check whether it is valid.
    • JSON to Excel — Turn a JSON array into a real Excel workbook.
    • JSON Schema Validator — Paste a schema and some JSON to see exactly which values break which rule — or generate a starting schema from example data.

    Perguntas frequentes

    How do I convert JSONL to JSON?
    Paste the JSON Lines (or drop the file) with JSONL → JSON selected. The output is a JSON array of all valid records.
    What is the difference between JSONL and NDJSON?
    None in practice — both mean one JSON value per line, separated by newlines.
    How do I make a JSONL file for OpenAI fine-tuning?
    Put your examples in a JSON array, choose JSON → JSONL and download the result: each example is written on its own line.
    Is my data uploaded?
    No. Everything runs in your browser.
    Posso instalar o JSONL Converter como um aplicativo da web e usá-lo offline?
    Sim. O JSONL Converter é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

    Ferramentas relacionadas