jsonlkit.com
JSONL (JSON Lines) utilities, in the browser
Say hi →

OpenAI Batch API Validator

updated 28 July 2026

Validate a Batch API input file before you upload it. Checks every line for a unique custom_id, the required method, a supported url, and a well-formed body — plus the file-level 50,000-request and 200 MB limits. Runs in your browser.

Validate

Drop a .jsonl file here, or Up to 1 GB · in your browser

What gets checked

Batch format vs fine-tuning format

These two JSONL formats look similar and are not interchangeable — a mistake that costs people a rejected upload surprisingly often.

The practical tell: if your lines start with {"custom_id" you want this validator; if they start with {"messages" you want the fine-tune one.

After validation

Use Token counter to estimate the cost before you submit — batch pricing is discounted but 50,000 requests still add up. Splitter breaks an over-limit file into compliant chunks, and Filter pulls out just the requests you want to retry.

Privacy

Nothing is uploaded. The whole thing runs in this tab, in your own browser. That matters here more than on most tool sites — training data is usually the most sensitive file a team owns.

Frequently asked questions

My custom_ids are unique but validation still complains.

Check for trailing whitespace or invisible characters — "req-1" and "req-1 " are different ids but look identical. The Encoding fixer strips zero-width characters and trailing whitespace.

Why is an unrecognised url only a warning?

OpenAI adds endpoints over time, and a warning that is really fine is less annoying than an error that is wrong. Turn on strict mode if you would rather fail closed.

Does it validate the model name?

No — model availability depends on your account and changes often. It only checks that body.model is present and a non-empty string.

Can I use this for Anthropic's Message Batches API?

Not directly. Anthropic's batch format uses custom_id plus params rather than method / url / body, so the required keys differ.

Related tools