Check a JSONL fine-tuning file before you spend money on it - structure, token distribution, duplicates, and training cost
Tokens per example (approx, GPT-style BPE)
Fine-tune training cost
Prices are representative published rates as of the model's lastVerified date — always confirm current pricing in your provider dashboard. Cost = billable tokens × epochs × price.
Issues
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Fine-tuning fails on dumb, avoidable things: an example with no assistant message to learn from, a content field that is an object instead of a string, exact duplicates padding your token bill, or examples so long they blow the context window. Providers validate after you upload and, in some cases, after you pay.
This tool runs that validation locally. Drop a .jsonl file (up to 50 MB) or paste a few lines, and it parses every example, checks its structure, measures its token count, and totals the training cost - all in your browser, with nothing uploaded.
It recognizes both dataset shapes:
{"messages": [{"role": "...", "content": "..."}]}{"prompt": "...", "completion": "..."}And flags, with the exact line numbers:
messages, unknown roles, no assistant message to train on, missing prompt or completion, unrecognized shape.For every example it estimates the token count (a GPT-style ~4-chars-per-token approximation, plus per-message overhead for chat format) and reports the full distribution: minimum, mean, median, p95, and maximum, with a histogram so you can spot a long tail of oversized examples. The cost estimator multiplies your billable tokens by an editable price and epoch count. Model presets pre-fill representative training prices, but every field is editable so you can plug in your provider’s current rate.
Pair it with the Prompt Token Counter for single prompts and the LLM JSON Repair tool if some lines need fixing first.
For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.