Skip to content
Convertto

Convert Fine-Tuning Datasets — ShareGPT, Alpaca, OpenAI, Anthropic

Convert training data between the six common chat formats, and validate the result against the rules the upload endpoints enforce.

This converter moves fine-tuning data between the OpenAI chat, Anthropic messages, ShareGPT, Alpaca, Gemini and ChatML formats. Everything passes through one canonical representation, so system prompts, role names and multi-turn structure survive the conversion, and the result is checked against the structural rules the training endpoints enforce — first turn must be user, roles must alternate, and there must be something for the model to learn from.

Runs in your browser
Formats
OpenAI, Anthropic, ShareGPT, Alpaca, Gemini, ChatML and plain text
Validates
Role alternation, first and last turn, empty content, format-specific limits
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Why does my dataset fail to upload even though the JSON is valid?

Almost always one of four structural rules: the first turn is not `user`, two turns share a role consecutively, there is no assistant turn at all, or a turn has empty content. The validator here checks exactly those, with line numbers.

What happens to multi-turn conversations converted to Alpaca?

Only the first exchange survives — Alpaca has one instruction and one output field and no way to represent a third turn. The tool counts how many rows this affects and says so rather than losing the data quietly.

Where does the system prompt go?

It depends on the target. OpenAI and ShareGPT carry it as the first message; Anthropic and Gemini put it in a sibling field; Alpaca has no slot for it, so it is folded into the `input` field. The converter handles each case and none of them lose it.

How to use the fine-tuning dataset converter

  1. 1Enter or paste your dataset.
  2. 2Choose the from.
  3. 3Choose the to.
  4. 4Turn "Validate structure" on or off as needed.
  5. 5Turn "Drop rows with errors" on or off as needed.
  6. 6Press Run, then download the result when it is ready.

Sources & specifications

Embed this tool

Put the working fine-tuning dataset converter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More ai & llm tools