AI JSONLChatML JSONLStrict Schema

Convert Datasets to OpenAI JSONL

Normalize instruction/input/output rows and ShareGPT transcripts into OpenAI-compliant messages JSONL with custom system prompts locally.

100% Browser-Local — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tabUpdated: 2026-11-24
  • 0 bytes uploaded
  • Emits OpenAI messages[] JSONL
  • Custom system prompt injection

Select dataset file

accepts Alpaca JSONL, ShareGPT, JSON & CSV.jsonl · .json · .csv

Zero upload limits · Runs in browser RAM

Benchmark & Expected Output

Alpaca & ShareGPT → ChatML

Before (Input)
{"instruction":"Translate SQL to English","input":"SELECT COUNT(*) FROM orders WHERE paid = 1;","output":"Count all paid orders."}
{"instruction":"Explain JSONL","input":"","output":"JSONL stores one valid JSON object per line."}
After (Output)
{"messages":[{"role":"system","content":"You are a helpful, concise assistant."},{"role":"user","content":"Translate SQL to English\n\nSELECT COUNT(*) FROM orders WHERE paid = 1;"},{"role":"assistant","content":"Count all paid orders."}]}
{"messages":[{"role":"system","content":"You are a helpful, concise assistant."},{"role":"user","content":"Explain JSONL"},{"role":"assistant","content":"JSONL stores one valid JSON object per line."}]}
Source vs. target format specification comparison
PropertySource: JSONTarget: JSONL
File extension.json.jsonl
MIME typeapplication/jsonapplication/x-ndjson
Structure typeHierarchicalLine Stream
EncodingUTF-8 TextUTF-8 Text
Nesting supportYesYes
LLM token efficiencyLowMedium
Schema / typedNoNo
Best forREST/GraphQL API payloads, nested web state, structured AI outputs, and universal cross-language interchange.LLM fine-tuning datasets (OpenAI/Anthropic ChatML), evaluation benchmarks, batch APIs, and append-only structured logs.
How it works

How to use OpenAI Fine-Tune Converter locally in your browser

Convert Alpaca, ShareGPT, CSV, or prompt/completion pairs into validated OpenAI ChatML messages[] fine-tuning JSONL.

01

Load source dataset

Paste or drop Alpaca JSONL, ShareGPT JSON, or CSV prompt/completion columns.

02

Set prompt & columns

Customize the system prompt and map source prompt/completion column names.

03

Export & validate ChatML

Download ready-to-train .jsonl or pass straight into JSONL Validator.

Next step

Continue your data pipeline

Related tools

Related data & AI tools

Format specs

Formats · Guides · Compare

FAQ

Frequently asked questions

Which input dataset schemas are recognized automatically?

It handles Alpaca {instruction, input, output}, ShareGPT {conversations}, custom CSV columns, and existing messages JSONL.

Can I inject a unified system prompt on every row?

Yes. Edit Default system prompt and it prepends cleanly as { role: 'system', content: ... }.

Does it validate each output line?

Yes. Keep Validate OpenAI messages[] schema enabled for instant structural checks.