채팅 형식 변환기
AI & Agents채팅 트랜스크립트를 OpenAI messages[], Anthropic system+messages, Gemini contents[], 일반 Markdown 간에 변환합니다. 역할은 충실하게 매핑되고, 도구 호출은 가능한 경우 보존되며, 매핑되지 않는 항목은 조용히 버려지지 않고 표시됩니다. 브라우저에서만 전부 실행됩니다.
변환할 대화 내용을 붙여넣으세요.(문서는 영어)
What it does
The Chat Format Converter turns one chat transcript into another provider’s shape: OpenAI messages[], Anthropic messages[] with a top-level system, Gemini contents[] (where the assistant is model), or a plain Markdown transcript. Paste a transcript, pick the source and target formats, and get the equivalent payload ready for the other API. Everything runs 100% client-side — nothing you paste is ever sent to a server, so it is safe for real logs and payloads.
Conversion goes through a shared internal message list, so roles map faithfully (system becomes Anthropic’s top-level system and Gemini’s systemInstruction; Gemini’s model becomes assistant) and tool calls, tool results, and their correlation ids are preserved across formats. Fields a target format cannot represent (tool calls in Markdown, per-message names in Anthropic/Gemini) are flagged as warnings instead of being dropped silently, and an OpenAI → OpenAI round trip is lossless.
How to use it
- Paste your transcript into the Transcript box (or hit Sample to load a demo conversation).
- Pick the source format under From and the target under To — or press the swap button between them to reverse the direction.
- Read the converted transcript in Output; press Copy output to copy it.
- Check Warnings (shown only when present) for anything that could not be mapped, such as tool calls on the way to Markdown.
- Copy share link encodes the transcript and both formats in the URL, so a link reproduces the exact conversion.
Examples
OpenAI → Anthropic (system moves to the top level)
Input:
{
"messages": [
{ "role": "system", "content": "You are terse." },
{ "role": "user", "content": "Hi" },
{ "role": "assistant", "content": "Hello." }
]
}
Output:
{
"system": "You are terse.",
"messages": [
{ "role": "user", "content": "Hi" },
{ "role": "assistant", "content": "Hello." }
]
}
OpenAI → Gemini (assistant becomes model, system becomes systemInstruction)
Output:
{
"systemInstruction": { "parts": [{ "text": "You are terse." }] },
"contents": [
{ "role": "user", "parts": [{ "text": "Hi" }] },
{ "role": "model", "parts": [{ "text": "Hello." }] }
]
}
OpenAI → Markdown (a tool-using turn — tool calls are flagged, not lost)
An assistant message carrying tool_calls converts to **assistant**: / **tool**: blocks and reports message 0: tool calls are not representable in Markdown and were dropped so you know exactly what did not survive the trip.
Good to know
- Tool plumbing survives JSON formats: OpenAI
tool_calls↔ Anthropictool_use/tool_resultblocks ↔ GeminifunctionCall/functionResponseparts, with ids (or Gemini names) kept as the correlation key. - Lossless same-format round trip: converting OpenAI → OpenAI parses into the internal shape and back without changing string-content messages.
- Shareable: the transcript and both formats are encoded in the URL (
?t=…&from=…&to=…). - Private: all parsing happens locally — safe for real logs, prompts, and credentials.
- Related tools: Token Estimator, LLM Cost Calculator, JSON Formatter.